mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Test with promremotewrite
This commit is contained in:
parent
2a3fa14ad7
commit
161b30e921
2 changed files with 33 additions and 0 deletions
|
@ -16,6 +16,22 @@ services:
|
|||
networks:
|
||||
- vm_net
|
||||
restart: always
|
||||
prometheus:
|
||||
container_name: prometheus
|
||||
image: prom/prometheus:v2.14.0
|
||||
depends_on:
|
||||
- "victoriametrics"
|
||||
ports:
|
||||
- 9090:9090
|
||||
volumes:
|
||||
- promdata:/prometheus
|
||||
- ./prometheus-prom.yml:/etc/prometheus/prometheus.yml
|
||||
command:
|
||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||
- '--storage.tsdb.path=/prometheus'
|
||||
networks:
|
||||
- vm_net
|
||||
restart: always
|
||||
victoriametrics:
|
||||
container_name: victoriametrics
|
||||
image: victoriametrics/victoria-metrics:v1.93.1
|
||||
|
@ -96,5 +112,6 @@ volumes:
|
|||
vmagentdata: {}
|
||||
vmdata: {}
|
||||
grafanadata: {}
|
||||
promdata: {}
|
||||
networks:
|
||||
vm_net:
|
||||
|
|
16
deployment/docker/prometheus-prom.yml
Normal file
16
deployment/docker/prometheus-prom.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
global:
|
||||
scrape_interval: 10s
|
||||
|
||||
remote_write:
|
||||
- url: http://vmagent:8429/api/v1/write
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'vmagent'
|
||||
static_configs:
|
||||
- targets: ['vmagent:8429']
|
||||
- job_name: 'vmalert'
|
||||
static_configs:
|
||||
- targets: ['vmalert:8880']
|
||||
- job_name: 'victoriametrics'
|
||||
static_configs:
|
||||
- targets: ['victoriametrics:8428']
|
Loading…
Reference in a new issue