Prometheus: Scrape even metrics from mimir promtail and loki
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
054bb32c64
commit
6a3cbe756c
@ -168,6 +168,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./loki.yml:/etc/loki/loki.yaml:ro,Z
|
- ./loki.yml:/etc/loki/loki.yaml:ro,Z
|
||||||
- loki_data:/loki
|
- loki_data:/loki
|
||||||
|
labels:
|
||||||
|
- "prometheus-scrape.enabled=true"
|
||||||
|
- "prometheus-scrape.port=3100"
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- default
|
- default
|
||||||
@ -183,6 +186,9 @@ services:
|
|||||||
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
command: -config.file=/etc/promtail/config.yml
|
command: -config.file=/etc/promtail/config.yml
|
||||||
|
labels:
|
||||||
|
- "prometheus-scrape.enabled=true"
|
||||||
|
- "prometheus-scrape.port=8080"
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
@ -196,6 +202,9 @@ services:
|
|||||||
- /bin/mimir
|
- /bin/mimir
|
||||||
- -config.file=/etc/mimir-config/mimir.yaml
|
- -config.file=/etc/mimir-config/mimir.yaml
|
||||||
- -validation.max-label-names-per-series=60
|
- -validation.max-label-names-per-series=60
|
||||||
|
labels:
|
||||||
|
- "prometheus-scrape.enabled=true"
|
||||||
|
- "prometheus-scrape.port=8080"
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- default
|
- default
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
positions:
|
positions:
|
||||||
filename: /positions.yaml
|
filename: /positions.yaml
|
||||||
|
server:
|
||||||
|
http_listen_port: 8080
|
||||||
|
|
||||||
clients:
|
clients:
|
||||||
- url: http://loki:3100/loki/api/v1/push
|
- url: http://loki:3100/loki/api/v1/push
|
||||||
|
Loading…
Reference in New Issue
Block a user