From fc93f9a85ed8d7df48067f217808a636f8d3673f Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 5 Jan 2025 17:18:54 -0600 Subject: [PATCH] update dashboards --- dashboards/application/immich.json | 2 -- dashboards/application/radarr.json | 29 ++++++++++++++-------- dashboards/application/sonarr.json | 39 ++++++++++++++++++------------ 3 files changed, 43 insertions(+), 27 deletions(-) diff --git a/dashboards/application/immich.json b/dashboards/application/immich.json index f3bbfef..b006b72 100644 --- a/dashboards/application/immich.json +++ b/dashboards/application/immich.json @@ -18,7 +18,6 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 300, "links": [], "panels": [ { @@ -1377,6 +1376,5 @@ "timezone": "browser", "title": "Immich", "uid": "0d41a8234bdf8d25079f759c2e3f3d0a", - "version": 2, "weekStart": "" } diff --git a/dashboards/application/radarr.json b/dashboards/application/radarr.json index 7a08425..0c413be 100644 --- a/dashboards/application/radarr.json +++ b/dashboards/application/radarr.json @@ -18,7 +18,6 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 301, "links": [], "panels": [ { @@ -84,7 +83,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "radrr_queue_total OR on() vector(0)", + "expr": "radrr_queue_total{namespace=\"$namespace\"} OR on() vector(0)", "instant": true, "interval": "", "legendFormat": "Queued", @@ -95,7 +94,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "radarr_history_total", + "expr": "radarr_history_total{namespace=\"$namespace\"}", "hide": false, "instant": true, "interval": "", @@ -156,7 +155,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "radarr_movie_missing_total", + "expr": "radarr_movie_missing_total{namespace=\"$namespace\"}", "interval": "", "legendFormat": "Missing", "refId": "C" @@ -166,7 +165,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "radarr_movie_monitored_total", + "expr": "radarr_movie_monitored_total{namespace=\"$namespace\"}", "instant": false, "interval": "", "legendFormat": "Monitored", @@ -177,7 +176,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "radarr_movie_total", + "expr": "radarr_movie_total{namespace=\"$namespace\"}", "interval": "", "legendFormat": "Total", "refId": "B" @@ -243,7 +242,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sort_desc(sum(radarr_movie_quality_total) by (quality))", + "expr": "sort_desc(sum(radarr_movie_quality_total{namespace=\"$namespace\"}) by (quality))", "interval": "", "legendFormat": "{{ quality }}", "refId": "A" @@ -317,7 +316,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "radarr_movie_filesize_total", + "expr": "radarr_movie_filesize_total{namespace=\"$namespace\"}", "instant": false, "interval": "", "legendFormat": "{{job}}", @@ -379,7 +378,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "radarr_rootfolder_freespace_bytes, radarr_", + "expr": "radarr_rootfolder_freespace_bytes{namespace=\"$namespace\"}", "instant": false, "interval": "", "legendFormat": "{{job}}", @@ -405,6 +404,17 @@ "refresh": 1, "regex": "", "type": "datasource" + }, + { + "datasource": "${DS_PROMETHEUS}", + "includeAll": false, + "label": "Instance", + "name": "namespace", + "options": [], + "query": "label_values(namespace)", + "refresh": 1, + "regex": "", + "type": "query" } ] }, @@ -416,6 +426,5 @@ "timezone": "browser", "title": "Radarr", "uid": "2a6acbba669631b2f359bd9e2ce84162", - "version": 4, "weekStart": "" } diff --git a/dashboards/application/sonarr.json b/dashboards/application/sonarr.json index 0dcf9bd..dc47022 100644 --- a/dashboards/application/sonarr.json +++ b/dashboards/application/sonarr.json @@ -18,7 +18,6 @@ "editable": false, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 302, "links": [], "panels": [ { @@ -84,7 +83,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_queue_total OR on() vector(0)", + "expr": "sonarr_queue_total{namespace=\"$namespace\"} OR on() vector(0)", "instant": true, "interval": "", "legendFormat": "Queued", @@ -95,7 +94,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_history_total", + "expr": "sonarr_history_total{namespace=\"$namespace\"}", "hide": false, "instant": true, "interval": "", @@ -156,7 +155,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_series_monitored_total", + "expr": "sonarr_series_monitored_total{namespace=\"$namespace\"}", "instant": false, "interval": "", "legendFormat": "Monitored", @@ -167,7 +166,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_series_total", + "expr": "sonarr_series_total{namespace=\"$namespace\"}", "interval": "", "legendFormat": "Total", "refId": "B" @@ -226,7 +225,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_season_monitored_total", + "expr": "sonarr_season_monitored_total{namespace=\"$namespace\"}", "instant": false, "interval": "", "legendFormat": "Monitored", @@ -237,7 +236,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_season_total", + "expr": "sonarr_season_total{namespace=\"$namespace\"}", "interval": "", "legendFormat": "Total", "refId": "B" @@ -296,7 +295,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_episode_downloaded_total", + "expr": "sonarr_episode_downloaded_total{namespace=\"$namespace\"}", "instant": false, "interval": "", "legendFormat": "Downloaded", @@ -307,7 +306,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_episode_total", + "expr": "sonarr_episode_total{namespace=\"$namespace\"}", "interval": "", "legendFormat": "Total", "refId": "B" @@ -317,7 +316,7 @@ "type": "prometheus", "uid": "prometheus" }, - "expr": "sonarr_episode_missing_total", + "expr": "sonarr_episode_missing_total{namespace=\"$namespace\"}", "interval": "", "legendFormat": "Missing", "refId": "C" @@ -391,7 +390,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sonarr_series_filesize_bytes", + "expr": "sonarr_series_filesize_bytes{namespace=\"$namespace\"}", "instant": false, "interval": "", "legendFormat": "{{job}}", @@ -426,8 +425,8 @@ "gridPos": { "h": 5, "w": 8, - "x": 0, - "y": 15 + "x": 8, + "y": 10 }, "id": 13, "options": { @@ -453,7 +452,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sonarr_rootfolder_freespace_bytes", + "expr": "sonarr_rootfolder_freespace_bytes{namespace=\"$namespace\"}", "instant": false, "interval": "", "legendFormat": "{{ job }}", @@ -479,6 +478,17 @@ "refresh": 1, "regex": "", "type": "datasource" + }, + { + "datasource": "${DS_PROMETHEUS}", + "includeAll": false, + "label": "Instance", + "name": "namespace", + "options": [], + "query": "label_values(namespace)", + "refresh": 1, + "regex": "", + "type": "query" } ] }, @@ -490,6 +500,5 @@ "timezone": "browser", "title": "Sonarr", "uid": "f28ecb46adfc02a0262e3d4c9b77fed0", - "version": 3, "weekStart": "" }