Prometheus: Scrape even metrics from mimir promtail and loki
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Tobias Manske 2023-08-09 02:56:23 +02:00
parent 054bb32c64
commit 6a3cbe756c
Signed by: tobias
GPG Key ID: 9164B527694A0709
2 changed files with 11 additions and 0 deletions

View File

@ -168,6 +168,9 @@ services:
volumes:
- ./loki.yml:/etc/loki/loki.yaml:ro,Z
- loki_data:/loki
labels:
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=3100"
networks:
- backend
- default
@ -183,6 +186,9 @@ services:
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock
command: -config.file=/etc/promtail/config.yml
labels:
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=8080"
networks:
- backend
@ -196,6 +202,9 @@ services:
- /bin/mimir
- -config.file=/etc/mimir-config/mimir.yaml
- -validation.max-label-names-per-series=60
labels:
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=8080"
networks:
- backend
- default

View File

@ -1,5 +1,7 @@
positions:
filename: /positions.yaml
server:
http_listen_port: 8080
clients:
- url: http://loki:3100/loki/api/v1/push