Skip to content

Commit

Permalink
chore: update dockprom stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Aug 20, 2023
1 parent c027758 commit 4dd7568
Showing 1 changed file with 48 additions and 31 deletions.
79 changes: 48 additions & 31 deletions docker-compose.dockprom.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '2.1'
version: '3.9'

networks:
monitor-net:
Expand Down Expand Up @@ -31,13 +31,17 @@ services:
- monitor-net
- tsuwari
- traefik-public
labels:
org.label-schema.group: "monitoring"
traefik.enable: true
traefik.http.routers.twir-prometheus.rule: Host(`prometheus.twir.app`)
traefik.http.routers.twir-prometheus.middlewares: admin-auth
traefik.http.services.twir-prometheus.loadbalancer.server.port: 9090
traefik.docker.network: traefik-public
deploy:
labels:
org.label-schema.group: "monitoring"
traefik.enable: true
traefik.http.routers.twir-prometheus.rule: Host(`prometheus.twir.app`)
traefik.http.routers.twir-prometheus.middlewares: admin-auth
traefik.http.services.twir-prometheus.loadbalancer.server.port: 9090
traefik.docker.network: traefik-public
placement:
constraints:
- node.role == manager

alertmanager:
image: prom/alertmanager:v0.24.0
Expand All @@ -51,13 +55,17 @@ services:
- monitor-net
- tsuwari
- traefik-public
labels:
org.label-schema.group: "monitoring"
traefik.enable: true
traefik.http.routers.twir-alertmanager.rule: Host(`alertmanager.twir.app`)
traefik.http.routers.twir-alertmanager.middlewares: admin-auth
traefik.http.services.twir-alertmanager.loadbalancer.server.port: 9093
traefik.docker.network: traefik-public
deploy:
labels:
org.label-schema.group: "monitoring"
traefik.enable: true
traefik.http.routers.twir-alertmanager.rule: Host(`alertmanager.twir.app`)
traefik.http.routers.twir-alertmanager.middlewares: admin-auth
traefik.http.services.twir-alertmanager.loadbalancer.server.port: 9093
traefik.docker.network: traefik-public
placement:
constraints:
- node.role == manager

nodeexporter:
image: prom/node-exporter:v1.4.0
Expand All @@ -75,8 +83,9 @@ services:
- monitor-net
- tsuwari
- traefik-public
labels:
org.label-schema.group: "monitoring"
deploy:
labels:
org.label-schema.group: "monitoring"

cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.46.0
Expand All @@ -93,13 +102,17 @@ services:
- monitor-net
- tsuwari
- traefik-public
labels:
org.label-schema.group: "monitoring"
traefik.enable: true
traefik.http.routers.twir-cadvisor.rule: Host(`cadvisor.twir.app`)
traefik.http.routers.twir-cadvisor.middlewares: admin-auth
traefik.http.services.twir-cadvisor.loadbalancer.server.port: 8080
traefik.docker.network: traefik-public
deploy:
labels:
org.label-schema.group: "monitoring"
traefik.enable: true
traefik.http.routers.twir-cadvisor.rule: Host(`cadvisor.twir.app`)
traefik.http.routers.twir-cadvisor.middlewares: admin-auth
traefik.http.services.twir-cadvisor.loadbalancer.server.port: 8080
traefik.docker.network: traefik-public
placement:
constraints:
- node.role == manager

grafana:
image: grafana/grafana:9.2.4
Expand All @@ -114,10 +127,14 @@ services:
- monitor-net
- tsuwari
- traefik-public
labels:
org.label-schema.group: "monitoring"
traefik.enable: true
traefik.http.routers.twir-grafana.rule: Host(`grafana.twir.app`)
traefik.http.routers.twir-grafana.middlewares: admin-auth
traefik.http.services.twir-grafana.loadbalancer.server.port: 3000
traefik.docker.network: traefik-public
deploy:
labels:
org.label-schema.group: "monitoring"
traefik.enable: true
traefik.http.routers.twir-grafana.rule: Host(`grafana.twir.app`)
traefik.http.routers.twir-grafana.middlewares: admin-auth
traefik.http.services.twir-grafana.loadbalancer.server.port: 3000
traefik.docker.network: traefik-public
placement:
constraints:
- node.role == manager

0 comments on commit 4dd7568

Please sign in to comment.