mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-06-26 04:41:28 +02:00
Add grafana to prometheus monitoring
parent
3fd9c79505
commit
4db937a4d0
@ -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`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user