Advertisement
BoogeyCZ

Untitled

Feb 17th, 2019
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.56 KB | None | 0 0
  1.  prometheus:
  2.     image: prom/prometheus:v2.7.1
  3.     networks:
  4.      - default
  5.       - utils_traefik
  6.     deploy:
  7.       replicas: 1
  8.       restart_policy:
  9.         condition: on-failure
  10.         delay: 5s
  11.         max_attempts: 5
  12.         window: 60s
  13.       labels:
  14.      - "traefik.enable=true"
  15.       - "traefik.port=9090"
  16.       - "traefik.docker.network=utils_traefik"
  17.       - "traefik.frontend.rule=Host: prometheus.int.tucnak.eu"
  18.    command:
  19.      - "--config.file=/etc/prometheus/prometheus.yml"
  20.      - "--storage.tsdb.retention.time=8760h"
  21.      - "--storage.tsdb.path=/prometheus"
  22.      - "--web.external-url=https://prometheus.int.tucnak.eu"
  23.      - "--web.console.libraries=/usr/share/prometheus/console_libraries"
  24.      - "--web.console.templates=/usr/share/prometheus/consoles"
  25.    user: 65534:65534
  26.    volumes:
  27.      - /data/docker/prometheus/config:/etc/prometheus:ro
  28.      - /data/docker/prometheus/data:/prometheus
  29.  
  30.  node-exporter:
  31.    image: prom/node-exporter:v0.17.0
  32.    command:
  33.    - '--path.procfs'
  34.    - '/host/proc'
  35.    - '--path.sysfs'
  36.    - '/host/sys'
  37.    - '--path.rootfs'
  38.    - '/rootfs'
  39.    - '--collector.filesystem.ignored-mount-points'
  40.    - '^/(sys|proc|dev|host|etc)($$|/)'
  41.    networks:
  42.    - host
  43.    deploy:
  44.      mode: global
  45.      restart_policy:
  46.        condition: on-failure
  47.        delay: 5s
  48.        max_attempts: 5
  49.        window: 60s
  50.      placement:
  51.        constraints:
  52.        - node.platform.arch == x86_64
  53.    volumes:
  54.      - /proc:/host/proc
  55.      - /sys:/host/sys
  56.      - /:/rootfs:ro,rslave
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement