Add monitoring stack

This commit is contained in:
Marty Oehme 2025-02-14 20:58:14 +01:00
parent 711f419bf0
commit f4cbbd7bca
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

28
monitoring.yaml Normal file
View file

@ -0,0 +1,28 @@
version: '2'
services:
influxdb:
image: influxdb:1.8.10-alpine
ports:
- '8086:8086'
volumes:
- influxdb-storage:/var/lib/influxdb
environment:
- INFLUXDB_DB=db0
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
grafana:
image: grafana/grafana:latest
ports:
- '3000:3000'
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana-provisioning/:/etc/grafana/provisioning
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
volumes:
influxdb-storage:
chronograf-storage:
grafana-storage: