2023-06-21 00:18:52 +02:00
|
|
|
services:
|
2024-09-03 17:43:26 +02:00
|
|
|
telegraf:
|
|
|
|
image: bitnami/telegraf:1.31.0
|
2023-06-21 00:18:52 +02:00
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: /var/run/docker.sock
|
|
|
|
target: /var/run/docker.sock
|
|
|
|
- type: bind
|
|
|
|
source: /var/lib/docker
|
|
|
|
target: /var/lib/docker
|
2024-09-03 17:43:26 +02:00
|
|
|
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
|
|
|
command: --config /etc/telegraf/telegraf.conf
|
2023-06-21 00:18:52 +02:00
|
|
|
depends_on:
|
|
|
|
victorialogs:
|
|
|
|
condition: service_healthy
|
|
|
|
victoriametrics:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
victorialogs:
|
2024-09-03 17:43:26 +02:00
|
|
|
image: docker.io/victoriametrics/victoria-logs:v0.20.2-victorialogs
|
2023-06-21 00:18:52 +02:00
|
|
|
volumes:
|
|
|
|
- victorialogs-vector-docker-vl:/vlogs
|
|
|
|
ports:
|
|
|
|
- '9428:9428'
|
|
|
|
command:
|
|
|
|
- -storageDataPath=/vlogs
|
|
|
|
- -loggerFormat=json
|
2024-09-03 17:43:26 +02:00
|
|
|
- -syslog.listenAddr.tcp=0.0.0.0:8094
|
2023-06-21 00:18:52 +02:00
|
|
|
healthcheck:
|
2024-09-03 17:43:26 +02:00
|
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:9428/health"]
|
2023-06-21 00:18:52 +02:00
|
|
|
interval: 1s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
victoriametrics:
|
2023-06-21 14:15:42 +02:00
|
|
|
image: victoriametrics/victoria-metrics:latest
|
2023-06-21 00:18:52 +02:00
|
|
|
ports:
|
|
|
|
- '8428:8428'
|
|
|
|
command:
|
|
|
|
- -storageDataPath=/vmsingle
|
|
|
|
- -promscrape.config=/promscrape.yml
|
|
|
|
- -loggerFormat=json
|
|
|
|
volumes:
|
|
|
|
- victorialogs-vector-docker-vm:/vmsingle
|
|
|
|
- ./scrape.yml:/promscrape.yml
|
|
|
|
healthcheck:
|
2024-09-03 17:43:26 +02:00
|
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8428/health"]
|
2023-06-21 00:18:52 +02:00
|
|
|
interval: 1s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
victorialogs-vector-docker-vl:
|
2023-07-18 08:19:46 +02:00
|
|
|
victorialogs-vector-docker-vm:
|