Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prometheus:
- image: prom/prometheus:v2.7.1
- networks:
- - default
- - utils_traefik
- deploy:
- replicas: 1
- restart_policy:
- condition: on-failure
- delay: 5s
- max_attempts: 5
- window: 60s
- labels:
- - "traefik.enable=true"
- - "traefik.port=9090"
- - "traefik.docker.network=utils_traefik"
- - "traefik.frontend.rule=Host: prometheus.int.tucnak.eu"
- command:
- - "--config.file=/etc/prometheus/prometheus.yml"
- - "--storage.tsdb.retention.time=8760h"
- - "--storage.tsdb.path=/prometheus"
- - "--web.external-url=https://prometheus.int.tucnak.eu"
- - "--web.console.libraries=/usr/share/prometheus/console_libraries"
- - "--web.console.templates=/usr/share/prometheus/consoles"
- user: 65534:65534
- volumes:
- - /data/docker/prometheus/config:/etc/prometheus:ro
- - /data/docker/prometheus/data:/prometheus
- node-exporter:
- image: prom/node-exporter:v0.17.0
- command:
- - '--path.procfs'
- - '/host/proc'
- - '--path.sysfs'
- - '/host/sys'
- - '--path.rootfs'
- - '/rootfs'
- - '--collector.filesystem.ignored-mount-points'
- - '^/(sys|proc|dev|host|etc)($$|/)'
- networks:
- - host
- deploy:
- mode: global
- restart_policy:
- condition: on-failure
- delay: 5s
- max_attempts: 5
- window: 60s
- placement:
- constraints:
- - node.platform.arch == x86_64
- volumes:
- - /proc:/host/proc
- - /sys:/host/sys
- - /:/rootfs:ro,rslave
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement