Introduce prometheus for metrics collection.
This commit is contained in:
@@ -19,6 +19,8 @@ volumes:
|
||||
name: telegraf
|
||||
influxdb:
|
||||
name: influxdb
|
||||
prometheus-config:
|
||||
name: prometheus-config
|
||||
|
||||
services:
|
||||
netdata:
|
||||
@@ -96,6 +98,7 @@ services:
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.influx.rule=Host(`influx.lan`)"
|
||||
@@ -103,6 +106,22 @@ services:
|
||||
- "traefik.http.routers.influx.service=influx"
|
||||
- "traefik.http.services.influx.loadbalancer.server.port=8086"
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
container_name: prometheus
|
||||
volumes:
|
||||
- prometheus-config:/etc/prometheus
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.prometheus.rule=Host(`prometheus.lan`)"
|
||||
- "traefik.http.routers.prometheus.entrypoints=web"
|
||||
- "traefik.http.routers.prometheus.service=prometheus"
|
||||
- "traefik.http.services.prometheus.loadbalancer.server.port=9090"
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana-oss
|
||||
container_name: grafana
|
||||
|
||||
Reference in New Issue
Block a user