Add grafana to prometheus monitoring
@@ -76,6 +76,7 @@ services:
|
|||||||
GF_SECURITY_ADMIN_USER: admin
|
GF_SECURITY_ADMIN_USER: admin
|
||||||
GF_SECURITY_ADMIN_PASSWORD: admin
|
GF_SECURITY_ADMIN_PASSWORD: admin
|
||||||
GF_SECURITY_SECRET_KEY: oew5RCBGGBba0MdsEKrj
|
GF_SECURITY_SECRET_KEY: oew5RCBGGBba0MdsEKrj
|
||||||
|
GF_METRICS_ENABLED: 'true'
|
||||||
ports:
|
ports:
|
||||||
- '3000:3000'
|
- '3000:3000'
|
||||||
volumes:
|
volumes:
|
||||||
@@ -114,6 +115,10 @@ scrape_configs:
|
|||||||
- job_name: redis
|
- job_name: redis
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['redis-worker-exporter:9121', 'redis-cache-exporter:9121']
|
- targets: ['redis-worker-exporter:9121', 'redis-cache-exporter:9121']
|
||||||
|
|
||||||
|
- job_name: grafana
|
||||||
|
static_configs:
|
||||||
|
- targets: ['grafana:3000']
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run `docker-compose up`.
|
Then run `docker-compose up`.
|
||||||
|
|||||||
Reference in New Issue
Block a user