Add grafana to prometheus monitoring

Christian Mäder 2020-10-26 15:43:51 +01:00
parent 3fd9c79505
commit 4db937a4d0

@ -76,6 +76,7 @@ services:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_SECURITY_SECRET_KEY: oew5RCBGGBba0MdsEKrj
GF_METRICS_ENABLED: 'true'
ports:
- '3000:3000'
volumes:
@ -114,6 +115,10 @@ scrape_configs:
- job_name: redis
static_configs:
- targets: ['redis-worker-exporter:9121', 'redis-cache-exporter:9121']
- job_name: grafana
static_configs:
- targets: ['grafana:3000']
```
Then run `docker-compose up`.