Add monitoring stack
This commit is contained in:
parent
711f419bf0
commit
f4cbbd7bca
1 changed files with 28 additions and 0 deletions
28
monitoring.yaml
Normal file
28
monitoring.yaml
Normal 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:
|
Loading…
Reference in a new issue