diff --git a/cluster/apps/download/radarr/dashboard.yaml b/cluster/apps/download/radarr/dashboard.yaml new file mode 100644 index 0000000..1cb24fb --- /dev/null +++ b/cluster/apps/download/radarr/dashboard.yaml @@ -0,0 +1,523 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: radarr-grafana-dashboard + namespace: monitoring + labels: + grafana_dashboard: "1" +data: + radarr-metrics.json: |- + { + "__inputs": [ + { + "name": "DS_VICTORIA", + "label": "Victoria", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.4.7" + }, + { + "type": "panel", + "id": "piechart", + "name": "Pie chart", + "version": "" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "This is a dashboard for Radarr v3 (exportarr does not work with Radarr v2). You will need to install exportarr (https://github.com/onedr0p/exportarr) in order to use this dashboard.\r\n\r\nBased on: https://grafana.com/grafana/dashboards/12530", + "editable": true, + "fiscalYearStartMonth": 0, + "gnetId": 12896, + "graphTooltip": 0, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "victoria-metrics-server" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 6, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "victoria-metrics-server" + }, + "refId": "A" + } + ], + "title": "Movies Information", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgb(255, 255, 255)", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 0, + "y": 1 + }, + "id": 16, + "interval": "", + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "editorMode": "code", + "expr": "radrr_queue_total OR on() vector(0)", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "Queued", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "expr": "radarr_history_total", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Completed", + "refId": "B" + } + ], + "title": "Downloads", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgb(255, 255, 255)", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 7, + "x": 4, + "y": 1 + }, + "id": 8, + "interval": "", + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "radarr_movie_missing_total", + "instant": true, + "interval": "", + "legendFormat": "Missing", + "range": false, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "radarr_movie_monitored_total", + "instant": true, + "interval": "", + "legendFormat": "Monitored", + "range": false, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "radarr_movie_total", + "instant": true, + "interval": "", + "legendFormat": "Total", + "range": false, + "refId": "B" + } + ], + "title": "Movies", + "type": "stat" + }, + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "victoria-metrics-server" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 12, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "victoria-metrics-server" + }, + "refId": "A" + } + ], + "title": "Storage", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgb(255, 255, 255)", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 7 + }, + "id": 10, + "interval": "", + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "radarr_movie_filesize_total", + "instant": true, + "interval": "", + "legendFormat": "", + "range": false, + "refId": "A" + } + ], + "title": "Storage Used", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [] + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 3, + "y": 7 + }, + "id": 17, + "links": [], + "maxDataPoints": 1, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sort_desc(sum(radarr_movie_quality_total) by (quality))", + "instant": true, + "interval": "", + "legendFormat": "{{ quality }}", + "range": false, + "refId": "A" + } + ], + "title": "Episode quality", + "type": "piechart" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgb(255, 255, 255)", + "value": null + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 12 + }, + "id": 13, + "interval": "", + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIA}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "radarr_rootfolder_freespace_bytes", + "instant": true, + "interval": "", + "legendFormat": "{{ path }}", + "range": false, + "refId": "A" + } + ], + "title": "Storage Available", + "type": "stat" + } + ], + "refresh": "5s", + "revision": 1, + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "Radarr v3", + "uid": "F2vfZUNGz", + "version": 1, + "weekStart": "" + } \ No newline at end of file diff --git a/cluster/apps/download/radarr/kustomization.yaml b/cluster/apps/download/radarr/kustomization.yaml index 3f72535..57a2b3e 100644 --- a/cluster/apps/download/radarr/kustomization.yaml +++ b/cluster/apps/download/radarr/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./helm-release.yaml -- ./radarr-exportarr-metrics.yaml \ No newline at end of file +- ./radarr-exportarr-metrics.yaml +- ./dashboard.yaml \ No newline at end of file diff --git a/cluster/apps/download/sonarr/dashboard.yaml b/cluster/apps/download/sonarr/dashboard.yaml index fb6c801..f539118 100644 --- a/cluster/apps/download/sonarr/dashboard.yaml +++ b/cluster/apps/download/sonarr/dashboard.yaml @@ -124,8 +124,8 @@ data: "overrides": [] }, "gridPos": { - "h": 8, - "w": 4, + "h": 7, + "w": 3, "x": 0, "y": 1 }, @@ -197,9 +197,9 @@ data: "overrides": [] }, "gridPos": { - "h": 8, - "w": 4, - "x": 4, + "h": 7, + "w": 3, + "x": 3, "y": 1 }, "id": 8, @@ -274,9 +274,9 @@ data: "overrides": [] }, "gridPos": { - "h": 8, - "w": 4, - "x": 8, + "h": 7, + "w": 3, + "x": 6, "y": 1 }, "id": 15, @@ -351,9 +351,9 @@ data: "overrides": [] }, "gridPos": { - "h": 8, - "w": 4, - "x": 12, + "h": 7, + "w": 3, + "x": 9, "y": 1 }, "id": 14, @@ -430,7 +430,7 @@ data: "h": 1, "w": 24, "x": 0, - "y": 9 + "y": 8 }, "id": 12, "panels": [], @@ -469,10 +469,10 @@ data: "overrides": [] }, "gridPos": { - "h": 5, + "h": 4, "w": 3, "x": 0, - "y": 10 + "y": 9 }, "id": 10, "interval": "", @@ -532,10 +532,10 @@ data: "overrides": [] }, "gridPos": { - "h": 14, - "w": 8, + "h": 12, + "w": 9, "x": 3, - "y": 10 + "y": 9 }, "id": 17, "links": [], @@ -601,10 +601,10 @@ data: "overrides": [] }, "gridPos": { - "h": 9, + "h": 8, "w": 3, "x": 0, - "y": 15 + "y": 13 }, "id": 13, "interval": "", @@ -673,6 +673,6 @@ data: "timezone": "", "title": "Sonarr", "uid": "vGjT_QWMk", - "version": 3, + "version": 4, "weekStart": "" } \ No newline at end of file