add dashboards
This commit is contained in:
		| @@ -1,548 +0,0 @@ | ||||
| apiVersion: grafana.integreatly.org/v1beta1 | ||||
| kind: GrafanaDashboard | ||||
| metadata: | ||||
|   name: grafana-dashboard-sonarr | ||||
|   namespace: {{ .Release.Namespace }} | ||||
|   labels: | ||||
|     app.kubernetes.io/name: grafana-dashboard-sonarr | ||||
|     app.kubernetes.io/instance: {{ .Release.Name }} | ||||
|     app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||||
|     app.kubernetes.io/component: web | ||||
|     app.kubernetes.io/part-of: {{ .Release.Name }} | ||||
| spec: | ||||
|   instanceSelector: | ||||
|     matchLabels: | ||||
|       app: grafana-main | ||||
|   folderUID: grafana-folder-application | ||||
|   json: > | ||||
|     { | ||||
|       "annotations": { | ||||
|         "list": [ | ||||
|           { | ||||
|             "builtIn": 1, | ||||
|             "datasource": { | ||||
|               "type": "datasource", | ||||
|               "uid": "grafana" | ||||
|             }, | ||||
|             "enable": true, | ||||
|             "hide": true, | ||||
|             "iconColor": "rgba(0, 211, 255, 1)", | ||||
|             "name": "Annotations & Alerts", | ||||
|             "type": "dashboard" | ||||
|           } | ||||
|         ] | ||||
|       }, | ||||
|       "editable": false, | ||||
|       "fiscalYearStartMonth": 0, | ||||
|       "graphTooltip": 0, | ||||
|       "id": 55, | ||||
|       "links": [], | ||||
|       "panels": [ | ||||
|         { | ||||
|           "collapsed": false, | ||||
|           "gridPos": { | ||||
|             "h": 1, | ||||
|             "w": 24, | ||||
|             "x": 0, | ||||
|             "y": 0 | ||||
|           }, | ||||
|           "id": 6, | ||||
|           "panels": [], | ||||
|           "title": "Show Information", | ||||
|           "type": "row" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "prometheus" | ||||
|           }, | ||||
|           "description": "", | ||||
|           "fieldConfig": { | ||||
|             "defaults": { | ||||
|               "mappings": [], | ||||
|               "thresholds": { | ||||
|                 "mode": "absolute", | ||||
|                 "steps": [ | ||||
|                   { | ||||
|                     "color": "rgb(255, 255, 255)", | ||||
|                     "value": null | ||||
|                   } | ||||
|                 ] | ||||
|               } | ||||
|             }, | ||||
|             "overrides": [] | ||||
|           }, | ||||
|           "gridPos": { | ||||
|             "h": 16, | ||||
|             "w": 5, | ||||
|             "x": 0, | ||||
|             "y": 1 | ||||
|           }, | ||||
|           "id": 16, | ||||
|           "options": { | ||||
|             "colorMode": "value", | ||||
|             "graphMode": "none", | ||||
|             "justifyMode": "auto", | ||||
|             "orientation": "horizontal", | ||||
|             "percentChangeColorMode": "standard", | ||||
|             "reduceOptions": { | ||||
|               "calcs": ["lastNotNull"], | ||||
|               "fields": "", | ||||
|               "values": false | ||||
|             }, | ||||
|             "showPercentChange": false, | ||||
|             "textMode": "auto", | ||||
|             "wideLayout": true | ||||
|           }, | ||||
|           "pluginVersion": "11.4.0", | ||||
|           "targets": [ | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "expr": "sonarr_queue_total{namespace=\"$namespace\"} OR on() vector(0)", | ||||
|               "instant": true, | ||||
|               "interval": "", | ||||
|               "legendFormat": "Queued", | ||||
|               "refId": "A" | ||||
|             }, | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_episode_missing_total{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "hide": false, | ||||
|               "instant": true, | ||||
|               "interval": "", | ||||
|               "legendFormat": "Missing", | ||||
|               "refId": "B" | ||||
|             }, | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_history_total{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "hide": false, | ||||
|               "instant": false, | ||||
|               "legendFormat": "Completed", | ||||
|               "range": true, | ||||
|               "refId": "C" | ||||
|             } | ||||
|           ], | ||||
|           "title": "Downloads", | ||||
|           "type": "stat" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "prometheus" | ||||
|           }, | ||||
|           "description": "", | ||||
|           "fieldConfig": { | ||||
|             "defaults": { | ||||
|               "mappings": [], | ||||
|               "thresholds": { | ||||
|                 "mode": "absolute", | ||||
|                 "steps": [ | ||||
|                   { | ||||
|                     "color": "rgb(255, 255, 255)", | ||||
|                     "value": null | ||||
|                   } | ||||
|                 ] | ||||
|               } | ||||
|             }, | ||||
|             "overrides": [] | ||||
|           }, | ||||
|           "gridPos": { | ||||
|             "h": 5, | ||||
|             "w": 4, | ||||
|             "x": 5, | ||||
|             "y": 1 | ||||
|           }, | ||||
|           "id": 8, | ||||
|           "options": { | ||||
|             "colorMode": "value", | ||||
|             "graphMode": "none", | ||||
|             "justifyMode": "auto", | ||||
|             "orientation": "horizontal", | ||||
|             "percentChangeColorMode": "standard", | ||||
|             "reduceOptions": { | ||||
|               "calcs": ["lastNotNull"], | ||||
|               "fields": "", | ||||
|               "values": false | ||||
|             }, | ||||
|             "showPercentChange": false, | ||||
|             "textMode": "auto", | ||||
|             "wideLayout": true | ||||
|           }, | ||||
|           "pluginVersion": "11.4.0", | ||||
|           "targets": [ | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_series_monitored_total{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "instant": false, | ||||
|               "interval": "", | ||||
|               "legendFormat": "Monitored", | ||||
|               "refId": "A" | ||||
|             }, | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_series_total{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "interval": "", | ||||
|               "legendFormat": "Total", | ||||
|               "range": true, | ||||
|               "refId": "B" | ||||
|             } | ||||
|           ], | ||||
|           "title": "Series", | ||||
|           "type": "stat" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "prometheus" | ||||
|           }, | ||||
|           "description": "", | ||||
|           "fieldConfig": { | ||||
|             "defaults": { | ||||
|               "mappings": [], | ||||
|               "thresholds": { | ||||
|                 "mode": "absolute", | ||||
|                 "steps": [ | ||||
|                   { | ||||
|                     "color": "rgb(255, 255, 255)", | ||||
|                     "value": null | ||||
|                   } | ||||
|                 ] | ||||
|               } | ||||
|             }, | ||||
|             "overrides": [] | ||||
|           }, | ||||
|           "gridPos": { | ||||
|             "h": 6, | ||||
|             "w": 4, | ||||
|             "x": 5, | ||||
|             "y": 6 | ||||
|           }, | ||||
|           "id": 15, | ||||
|           "options": { | ||||
|             "colorMode": "value", | ||||
|             "graphMode": "none", | ||||
|             "justifyMode": "auto", | ||||
|             "orientation": "horizontal", | ||||
|             "percentChangeColorMode": "standard", | ||||
|             "reduceOptions": { | ||||
|               "calcs": ["lastNotNull"], | ||||
|               "fields": "", | ||||
|               "values": false | ||||
|             }, | ||||
|             "showPercentChange": false, | ||||
|             "textMode": "auto", | ||||
|             "wideLayout": true | ||||
|           }, | ||||
|           "pluginVersion": "11.4.0", | ||||
|           "targets": [ | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_season_monitored_total{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "instant": false, | ||||
|               "interval": "", | ||||
|               "legendFormat": "Monitored", | ||||
|               "refId": "A" | ||||
|             }, | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_season_total{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "interval": "", | ||||
|               "legendFormat": "Total", | ||||
|               "range": true, | ||||
|               "refId": "B" | ||||
|             } | ||||
|           ], | ||||
|           "title": "Seasons", | ||||
|           "type": "stat" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "prometheus" | ||||
|           }, | ||||
|           "description": "", | ||||
|           "fieldConfig": { | ||||
|             "defaults": { | ||||
|               "mappings": [], | ||||
|               "thresholds": { | ||||
|                 "mode": "absolute", | ||||
|                 "steps": [ | ||||
|                   { | ||||
|                     "color": "rgb(255, 255, 255)", | ||||
|                     "value": null | ||||
|                   } | ||||
|                 ] | ||||
|               } | ||||
|             }, | ||||
|             "overrides": [] | ||||
|           }, | ||||
|           "gridPos": { | ||||
|             "h": 5, | ||||
|             "w": 4, | ||||
|             "x": 5, | ||||
|             "y": 12 | ||||
|           }, | ||||
|           "id": 14, | ||||
|           "options": { | ||||
|             "colorMode": "value", | ||||
|             "graphMode": "none", | ||||
|             "justifyMode": "auto", | ||||
|             "orientation": "horizontal", | ||||
|             "percentChangeColorMode": "standard", | ||||
|             "reduceOptions": { | ||||
|               "calcs": ["lastNotNull"], | ||||
|               "fields": "", | ||||
|               "values": false | ||||
|             }, | ||||
|             "showPercentChange": false, | ||||
|             "textMode": "auto", | ||||
|             "wideLayout": true | ||||
|           }, | ||||
|           "pluginVersion": "11.4.0", | ||||
|           "targets": [ | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_episode_downloaded_total{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "instant": false, | ||||
|               "interval": "", | ||||
|               "legendFormat": "Downloaded", | ||||
|               "refId": "A" | ||||
|             }, | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_episode_total{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "interval": "", | ||||
|               "legendFormat": "Total", | ||||
|               "range": true, | ||||
|               "refId": "B" | ||||
|             } | ||||
|           ], | ||||
|           "title": "Episodes", | ||||
|           "type": "stat" | ||||
|         }, | ||||
|         { | ||||
|           "collapsed": false, | ||||
|           "gridPos": { | ||||
|             "h": 1, | ||||
|             "w": 24, | ||||
|             "x": 0, | ||||
|             "y": 17 | ||||
|           }, | ||||
|           "id": 12, | ||||
|           "panels": [], | ||||
|           "title": "Storage", | ||||
|           "type": "row" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "prometheus" | ||||
|           }, | ||||
|           "description": "", | ||||
|           "fieldConfig": { | ||||
|             "defaults": { | ||||
|               "mappings": [], | ||||
|               "thresholds": { | ||||
|                 "mode": "absolute", | ||||
|                 "steps": [ | ||||
|                   { | ||||
|                     "color": "rgb(255, 255, 255)", | ||||
|                     "value": null | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               "unit": "decbytes" | ||||
|             }, | ||||
|             "overrides": [] | ||||
|           }, | ||||
|           "gridPos": { | ||||
|             "h": 5, | ||||
|             "w": 8, | ||||
|             "x": 0, | ||||
|             "y": 18 | ||||
|           }, | ||||
|           "id": 10, | ||||
|           "options": { | ||||
|             "colorMode": "value", | ||||
|             "graphMode": "none", | ||||
|             "justifyMode": "auto", | ||||
|             "orientation": "horizontal", | ||||
|             "percentChangeColorMode": "standard", | ||||
|             "reduceOptions": { | ||||
|               "calcs": ["lastNotNull"], | ||||
|               "fields": "", | ||||
|               "values": false | ||||
|             }, | ||||
|             "showPercentChange": false, | ||||
|             "textMode": "auto", | ||||
|             "wideLayout": true | ||||
|           }, | ||||
|           "pluginVersion": "11.4.0", | ||||
|           "targets": [ | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_series_filesize_bytes{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "instant": false, | ||||
|               "interval": "", | ||||
|               "legendFormat": "__auto", | ||||
|               "refId": "A" | ||||
|             } | ||||
|           ], | ||||
|           "title": "Storage Used", | ||||
|           "type": "stat" | ||||
|         }, | ||||
|         { | ||||
|           "datasource": { | ||||
|             "type": "prometheus", | ||||
|             "uid": "prometheus" | ||||
|           }, | ||||
|           "description": "", | ||||
|           "fieldConfig": { | ||||
|             "defaults": { | ||||
|               "mappings": [], | ||||
|               "thresholds": { | ||||
|                 "mode": "absolute", | ||||
|                 "steps": [ | ||||
|                   { | ||||
|                     "color": "rgb(255, 255, 255)", | ||||
|                     "value": null | ||||
|                   } | ||||
|                 ] | ||||
|               }, | ||||
|               "unit": "decbytes" | ||||
|             }, | ||||
|             "overrides": [] | ||||
|           }, | ||||
|           "gridPos": { | ||||
|             "h": 5, | ||||
|             "w": 8, | ||||
|             "x": 8, | ||||
|             "y": 18 | ||||
|           }, | ||||
|           "id": 13, | ||||
|           "options": { | ||||
|             "colorMode": "value", | ||||
|             "graphMode": "none", | ||||
|             "justifyMode": "auto", | ||||
|             "orientation": "horizontal", | ||||
|             "percentChangeColorMode": "standard", | ||||
|             "reduceOptions": { | ||||
|               "calcs": ["lastNotNull"], | ||||
|               "fields": "", | ||||
|               "values": false | ||||
|             }, | ||||
|             "showPercentChange": false, | ||||
|             "textMode": "auto", | ||||
|             "wideLayout": true | ||||
|           }, | ||||
|           "pluginVersion": "11.4.0", | ||||
|           "targets": [ | ||||
|             { | ||||
|               "datasource": { | ||||
|                 "type": "prometheus", | ||||
|                 "uid": "prometheus" | ||||
|               }, | ||||
|               "editorMode": "code", | ||||
|               "expr": "sum(sonarr_rootfolder_freespace_bytes{namespace=\"$namespace\"}) by (namespace)", | ||||
|               "instant": false, | ||||
|               "interval": "", | ||||
|               "legendFormat": "__auto", | ||||
|               "refId": "A" | ||||
|             } | ||||
|           ], | ||||
|           "title": "Storage Available", | ||||
|           "type": "stat" | ||||
|         } | ||||
|       ], | ||||
|       "preload": true, | ||||
|       "refresh": "", | ||||
|       "schemaVersion": 40, | ||||
|       "tags": ["apps"], | ||||
|       "templating": { | ||||
|         "list": [ | ||||
|           { | ||||
|             "current": { | ||||
|               "text": "Prometheus", | ||||
|               "value": "prometheus" | ||||
|             }, | ||||
|             "includeAll": false, | ||||
|             "label": "Datasource", | ||||
|             "name": "DS_PROMETHEUS", | ||||
|             "options": [], | ||||
|             "query": "prometheus", | ||||
|             "refresh": 1, | ||||
|             "regex": "", | ||||
|             "type": "datasource" | ||||
|           }, | ||||
|           { | ||||
|             "current": { | ||||
|               "text": "sonarr4", | ||||
|               "value": "sonarr4" | ||||
|             }, | ||||
|             "datasource": "${DS_PROMETHEUS}", | ||||
|             "definition": "label_values(sonarr_system_status,namespace)", | ||||
|             "includeAll": false, | ||||
|             "label": "Instance", | ||||
|             "name": "namespace", | ||||
|             "options": [], | ||||
|             "query": { | ||||
|               "qryType": 1, | ||||
|               "query": "label_values(sonarr_system_status,namespace)", | ||||
|               "refId": "PrometheusVariableQueryEditor-VariableQuery" | ||||
|             }, | ||||
|             "refresh": 1, | ||||
|             "regex": "", | ||||
|             "type": "query" | ||||
|           } | ||||
|         ] | ||||
|       }, | ||||
|       "time": { | ||||
|         "from": "now-24h", | ||||
|         "to": "now" | ||||
|       }, | ||||
|       "timepicker": {}, | ||||
|       "timezone": "browser", | ||||
|       "title": "Sonarr", | ||||
|       "uid": "f28ecb46adfc02a0262e3d4c9b77fed0", | ||||
|       "weekStart": "" | ||||
|     } | ||||
		Reference in New Issue
	
	Block a user