Init exporter_docker

This commit is contained in:
Joey Hafner 2022-08-07 14:46:51 -07:00
parent 3f150e469d
commit 9c4d6a677c
2 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,10 @@
version: '3'
services:
exporter-docker:
image: prometheusnet/docker_exporter
container_name: monitoring_exporter-docker
restart: "no"
ports:
- 50417:9417
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro

View File

@ -176,8 +176,23 @@ services:
- monitoring
volumes:
- ./exporter-ping/config.yml:/config/config.yml
exporter-docker:
image: prometheusnet/docker_exporter
container_name: monitoring_exporter-docker
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
restart: "no"
networks:
- monitoring
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
monitoring: