Loading docker-compose.dev.yml +0 −4 Original line number Diff line number Diff line version: '3.5' volumes: prometheus: name: prometheus-vol pushgateway: name: pushgateway-vol Loading docker-compose.prod.yml +0 −14 Original line number Diff line number Diff line Loading @@ -13,21 +13,7 @@ services: constraints: - node.role == worker prometheus: deploy: placement: constraints: - node.role == worker volumes: prometheus: name: prometheus-vol driver: "cloudstor:aws" driver_opts: backing: relocatable size: 5 ebstype: gp2 pushgateway: name: pushgateway-vol Loading docker-compose.tmpl.yml +0 −40 Original line number Diff line number Diff line Loading @@ -208,40 +208,6 @@ services: reservations: memory: 64M prometheus: image: stefanprodan/swarmprom-prometheus:v2.2.0-rc.0 command: - '--config.file=/etc/prometheus/prometheus.yml' - '--web.console.libraries=/etc/prometheus/console_libraries' - '--web.console.templates=/etc/prometheus/consoles' - '--storage.tsdb.path=/prometheus' - '--storage.tsdb.retention=30d' user: "0:0" networks: - metric-net - traefik-net environment: - JOBS volumes: - prometheus:/prometheus configs: - source: node_rules target: /etc/prometheus/swarm_node.rules.yml - source: task_rules target: /etc/prometheus/swarm_task.rules.yml deploy: mode: replicated replicas: 1 labels: traefik.port: "9090" traefik.docker.network: traefik-net traefik.frontend.auth.basic: ${UI_AUTH} traefik.frontend.rule: Host:prometheus.${PUBLIC_HOSTNAME} traefik.backend: prometheus restart_policy: delay: 1m window: 3m networks: metric-net: external: true Loading @@ -252,9 +218,3 @@ networks: configs: dockerd_config: file: ./swarmprom/dockerd-exporter/Caddyfile node_rules: file: ./swarmprom/prometheus/rules/swarm_node.rules.yml task_rules: file: ./prometheus/rules/swarm_task.rules.yml Loading
docker-compose.dev.yml +0 −4 Original line number Diff line number Diff line version: '3.5' volumes: prometheus: name: prometheus-vol pushgateway: name: pushgateway-vol Loading
docker-compose.prod.yml +0 −14 Original line number Diff line number Diff line Loading @@ -13,21 +13,7 @@ services: constraints: - node.role == worker prometheus: deploy: placement: constraints: - node.role == worker volumes: prometheus: name: prometheus-vol driver: "cloudstor:aws" driver_opts: backing: relocatable size: 5 ebstype: gp2 pushgateway: name: pushgateway-vol Loading
docker-compose.tmpl.yml +0 −40 Original line number Diff line number Diff line Loading @@ -208,40 +208,6 @@ services: reservations: memory: 64M prometheus: image: stefanprodan/swarmprom-prometheus:v2.2.0-rc.0 command: - '--config.file=/etc/prometheus/prometheus.yml' - '--web.console.libraries=/etc/prometheus/console_libraries' - '--web.console.templates=/etc/prometheus/consoles' - '--storage.tsdb.path=/prometheus' - '--storage.tsdb.retention=30d' user: "0:0" networks: - metric-net - traefik-net environment: - JOBS volumes: - prometheus:/prometheus configs: - source: node_rules target: /etc/prometheus/swarm_node.rules.yml - source: task_rules target: /etc/prometheus/swarm_task.rules.yml deploy: mode: replicated replicas: 1 labels: traefik.port: "9090" traefik.docker.network: traefik-net traefik.frontend.auth.basic: ${UI_AUTH} traefik.frontend.rule: Host:prometheus.${PUBLIC_HOSTNAME} traefik.backend: prometheus restart_policy: delay: 1m window: 3m networks: metric-net: external: true Loading @@ -252,9 +218,3 @@ networks: configs: dockerd_config: file: ./swarmprom/dockerd-exporter/Caddyfile node_rules: file: ./swarmprom/prometheus/rules/swarm_node.rules.yml task_rules: file: ./prometheus/rules/swarm_task.rules.yml