Test with promremotewrite

This commit is contained in:
Dima Lazerka 2023-08-30 13:44:49 -07:00
parent 2a3fa14ad7
commit 161b30e921
No known key found for this signature in database
GPG key ID: D3001D08FE698EFA
2 changed files with 33 additions and 0 deletions

View file

@ -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:

View 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']