From a052368eaf45f5e9e838f3cd40e6ae1b2cc67b9d Mon Sep 17 00:00:00 2001 From: Robert Drake Date: Thu, 25 Sep 2025 12:05:32 -0400 Subject: [PATCH] Add information about a usable dashboard --- Monitoring.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Monitoring.md b/Monitoring.md index 27cb82d..823fe7b 100644 --- a/Monitoring.md +++ b/Monitoring.md @@ -104,6 +104,8 @@ scrape_configs: - job_name: netbox static_configs: - targets: ['netbox:8080'] + labels: + app: 'netbox' - job_name: postgresql static_configs: @@ -134,4 +136,11 @@ The default credentials are `admin:admin`. You will find several user-made [dashboards on the Grafana page](https://grafana.com/grafana/dashboards?dataSource=prometheus) which are easy to import using the Grafana Dashboard ID. There are already dashboard for Nginx, PostgreSQL, Redis, Prometheus and also Django (which is the framework on which NetBox is built). -For more information see the [_importing a dashboard_ and _discover dashboards on grafana.com_ articles](https://grafana.com/docs/grafana/latest/dashboards/export-import/#importing-a-dashboard). \ No newline at end of file +For more information see the [_importing a dashboard_ and _discover dashboards on grafana.com_ articles](https://grafana.com/docs/grafana/latest/dashboards/export-import/#importing-a-dashboard). + +https://grafana.com/grafana/dashboards/17658-django/ works well with django-prometheus. It needs "app: 'netbox'" assigned in the labels which I have added to the example prometheus.yml above. + +The "Cache Hit Ratio" does not work because netbox is not exposing it's cache information through django. I'm not sure if this is intentional or an oversite, but fixing the netbox settings.py file is an option if the django-prometheus caching is compatible. + + +