From 5b2ed75850a543efe2b9359e025501c49a513325 Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Sat, 7 May 2022 10:17:09 -0700 Subject: [PATCH 1/2] fix: update grafana dashboard for v8 and k8s issue-17 This fixed issues #17 --- grafana/dashboard.json | 1418 ++++++++++++++++++++-------------------- 1 file changed, 706 insertions(+), 712 deletions(-) diff --git a/grafana/dashboard.json b/grafana/dashboard.json index f420ff7..d592056 100644 --- a/grafana/dashboard.json +++ b/grafana/dashboard.json @@ -1,927 +1,921 @@ { - "__inputs": [ - { - "name": "DS_PROMETHEUS", - "label": "Prometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__requires": [ - { - "type": "panel", - "id": "gauge", - "name": "Gauge", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "7.2.2" - }, - { - "type": "panel", - "id": "grafana-piechart-panel", - "name": "Pie Chart", - "version": "1.6.1" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - } - ], - "annotations": { - "list": [ + "annotations":{ + "list":[ { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" + "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" } ] }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1603732792335, - "links": [], - "panels": [ + "editable":true, + "fiscalYearStartMonth":0, + "graphTooltip":0, + "iteration":1651440933266, + "links":[ + + ], + "liveNow":false, + "panels":[ { - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {}, - "mappings": [ + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "fieldConfig":{ + "defaults":{ + "mappings":[ { - "from": "", - "id": 0, - "text": "Online", - "to": "", - "type": 1, - "value": "1" + "options":{ + "0":{ + "text":"Offline" + }, + "1":{ + "text":"Online" + } + }, + "type":"value" }, { - "from": "", - "id": 1, - "text": "Offline", - "to": "", - "type": 1, - "value": "0" - }, - { - "from": "", - "id": 2, - "text": "Unknown", - "to": "", - "type": 1, - "value": "null" + "options":{ + "match":"null", + "result":{ + "text":"Unknown" + } + }, + "type":"special" } ], - "thresholds": { - "mode": "absolute", - "steps": [ + "thresholds":{ + "mode":"absolute", + "steps":[ { - "color": "yellow", - "value": null + "color":"yellow", + "value":null }, { - "color": "semi-dark-red", - "value": 0 + "color":"semi-dark-red", + "value":0 }, { - "color": "semi-dark-green", - "value": 1 + "color":"semi-dark-green", + "value":1 } ] } }, - "overrides": [] + "overrides":[ + + ] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 0 + "gridPos":{ + "h":4, + "w":3, + "x":0, + "y":0 }, - "id": 2, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ + "id":2, + "options":{ + "colorMode":"value", + "graphMode":"area", + "justifyMode":"auto", + "orientation":"auto", + "reduceOptions":{ + "calcs":[ "last" ], - "fields": "", - "values": false + "fields":"", + "values":false }, - "textMode": "auto" + "textMode":"auto" }, - "pluginVersion": "7.2.2", - "targets": [ + "pluginVersion":"8.5.0", + "targets":[ { - "expr": "qbittorrent_up", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" + "expr":"qbittorrent_up", + "format":"time_series", + "instant":false, + "interval":"", + "legendFormat":"", + "refId":"A" } ], - "timeFrom": null, - "timeShift": null, - "title": "Qbittorrent Status", - "transformations": [], - "type": "stat" + "title":"Qbittorrent Status", + "transformations":[ + + ], + "type":"stat" }, { - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {}, - "mappings": [ + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "fieldConfig":{ + "defaults":{ + "mappings":[ { - "from": "", - "id": 0, - "text": "Connected", - "to": "", - "type": 1, - "value": "1" - }, - { - "from": "", - "id": 1, - "text": "Disconnected", - "to": "", - "type": 1, - "value": "0" - }, - { - "from": "", - "id": 2, - "text": "Firewalled", - "to": "", - "type": 1, - "value": "-1" + "options":{ + "0":{ + "text":"Disconnected" + }, + "1":{ + "text":"Connected" + }, + "-1":{ + "text":"Firewalled" + } + }, + "type":"value" } ], - "thresholds": { - "mode": "absolute", - "steps": [ + "thresholds":{ + "mode":"absolute", + "steps":[ { - "color": "yellow", - "value": null + "color":"yellow", + "value":null }, { - "color": "dark-red", - "value": 0 + "color":"dark-red", + "value":0 }, { - "color": "semi-dark-green", - "value": 1 + "color":"semi-dark-green", + "value":1 } ] } }, - "overrides": [] + "overrides":[ + + ] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 3, - "y": 0 + "gridPos":{ + "h":4, + "w":3, + "x":3, + "y":0 }, - "id": 3, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ + "id":3, + "options":{ + "colorMode":"value", + "graphMode":"none", + "justifyMode":"auto", + "orientation":"auto", + "reduceOptions":{ + "calcs":[ "lastNotNull" ], - "fields": "", - "values": false + "fields":"", + "values":false }, - "textMode": "auto" + "textMode":"auto" }, - "pluginVersion": "7.2.2", - "targets": [ + "pluginVersion":"8.5.0", + "targets":[ { - "expr": "qbittorrent_connected - qbittorrent_firewalled", - "format": "time_series", - "instant": true, - "interval": "", - "legendFormat": "Status", - "refId": "A" + "expr":"qbittorrent_connected - qbittorrent_firewalled", + "format":"time_series", + "instant":true, + "interval":"", + "legendFormat":"Status", + "refId":"A" } ], - "timeFrom": null, - "timeShift": null, - "title": "Bittorrent network", - "transformations": [], - "type": "stat" + "title":"Bittorrent network", + "transformations":[ + + ], + "type":"stat" }, { - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {}, - "mappings": [ + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "fieldConfig":{ + "defaults":{ + "mappings":[ { - "from": "", - "id": 1, - "text": "No DHT", - "to": "", - "type": 1, - "value": "0" - }, - { - "from": "", - "id": 2, - "text": "Firewalled", - "to": "", - "type": 1, - "value": "-1" + "options":{ + "0":{ + "text":"No DHT" + }, + "-1":{ + "text":"Firewalled" + } + }, + "type":"value" } ], - "thresholds": { - "mode": "absolute", - "steps": [ + "thresholds":{ + "mode":"absolute", + "steps":[ { - "color": "yellow", - "value": null + "color":"yellow", + "value":null }, { - "color": "dark-red", - "value": 0 + "color":"dark-red", + "value":0 }, { - "color": "semi-dark-green", - "value": 100 + "color":"semi-dark-green", + "value":100 } ] } }, - "overrides": [] + "overrides":[ + + ] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 0 + "gridPos":{ + "h":4, + "w":3, + "x":6, + "y":0 }, - "id": 13, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ + "id":13, + "options":{ + "colorMode":"value", + "graphMode":"none", + "justifyMode":"auto", + "orientation":"auto", + "reduceOptions":{ + "calcs":[ "lastNotNull" ], - "fields": "", - "values": false + "fields":"", + "values":false }, - "textMode": "auto" + "textMode":"auto" }, - "pluginVersion": "7.2.2", - "targets": [ + "pluginVersion":"8.5.0", + "targets":[ { - "expr": "qbittorrent_dht_nodes", - "instant": true, - "interval": "", - "legendFormat": "DHT nodes", - "refId": "B" + "expr":"qbittorrent_dht_nodes", + "instant":true, + "interval":"", + "legendFormat":"DHT nodes", + "refId":"B" } ], - "timeFrom": null, - "timeShift": null, - "title": "DHT nodes", - "transformations": [], - "type": "stat" + "title":"DHT nodes", + "transformations":[ + + ], + "type":"stat" }, { - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {}, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "fieldConfig":{ + "defaults":{ + "mappings":[ + + ], + "thresholds":{ + "mode":"absolute", + "steps":[ { - "color": "green", - "value": null + "color":"green", + "value":null } ] }, - "unit": "decbytes" + "unit":"bytes" }, - "overrides": [] + "overrides":[ + + ] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 9, - "y": 0 + "gridPos":{ + "h":4, + "w":3, + "x":9, + "y":0 }, - "id": 5, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ + "id":5, + "options":{ + "colorMode":"value", + "graphMode":"none", + "justifyMode":"auto", + "orientation":"auto", + "reduceOptions":{ + "calcs":[ "last" ], - "fields": "", - "values": false + "fields":"", + "values":false }, - "textMode": "auto" + "textMode":"auto" }, - "pluginVersion": "7.2.2", - "targets": [ + "pluginVersion":"8.5.0", + "targets":[ { - "expr": "increase(qbittorrent_dl_info_data_total[100y])", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "editorMode":"code", + "expr":"sum by (app) (qbittorrent_dl_info_data_total)", + "instant":false, + "interval":"", + "legendFormat":" ", + "refId":"A" } ], - "timeFrom": null, - "timeShift": null, - "title": "Data downloaded", - "type": "stat" + "title":"Data downloaded", + "type":"stat" }, { - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {}, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "fieldConfig":{ + "defaults":{ + "mappings":[ + + ], + "thresholds":{ + "mode":"absolute", + "steps":[ { - "color": "green", - "value": null + "color":"green", + "value":null } ] }, - "unit": "decbytes" + "unit":"bytes" }, - "overrides": [] + "overrides":[ + + ] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 12, - "y": 0 + "gridPos":{ + "h":4, + "w":3, + "x":12, + "y":0 }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ + "id":6, + "options":{ + "colorMode":"value", + "graphMode":"none", + "justifyMode":"auto", + "orientation":"auto", + "reduceOptions":{ + "calcs":[ "last" ], - "fields": "", - "values": false + "fields":"", + "values":false }, - "textMode": "auto" + "textMode":"auto" }, - "pluginVersion": "7.2.2", - "targets": [ + "pluginVersion":"8.5.0", + "targets":[ { - "expr": "increase(qbittorrent_up_info_data_total[100y])", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "editorMode":"code", + "expr":"sum by (app) (qbittorrent_up_info_data_total)", + "instant":false, + "interval":"", + "legendFormat":" ", + "refId":"A" } ], - "timeFrom": null, - "timeShift": null, - "title": "Data uploaded", - "type": "stat" + "title":"Data uploaded", + "type":"stat" }, { - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {}, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "fieldConfig":{ + "defaults":{ + "mappings":[ + + ], + "thresholds":{ + "mode":"absolute", + "steps":[ { - "color": "green", - "value": null + "color":"green", + "value":null } ] }, - "unit": "none" + "unit":"none" }, - "overrides": [] + "overrides":[ + + ] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 15, - "y": 0 + "gridPos":{ + "h":4, + "w":3, + "x":15, + "y":0 }, - "id": 7, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ + "id":7, + "options":{ + "colorMode":"value", + "graphMode":"area", + "justifyMode":"auto", + "orientation":"auto", + "reduceOptions":{ + "calcs":[ "last" ], - "fields": "", - "values": false + "fields":"", + "values":false }, - "textMode": "auto" + "textMode":"auto" }, - "pluginVersion": "7.2.2", - "targets": [ + "pluginVersion":"8.5.0", + "targets":[ { - "expr": "increase(qbittorrent_up_info_data_total[100y]) / increase(qbittorrent_dl_info_data_total[100y])", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "editorMode":"code", + "expr":"(sum by (app) (qbittorrent_up_info_data_total)) / (sum by (app) (qbittorrent_dl_info_data_total))", + "instant":false, + "interval":"", + "legendFormat":"{{label_name}}", + "refId":"A" } ], - "timeFrom": null, - "timeShift": null, - "title": "Accumulated ratio", - "type": "stat" + "title":"Accumulated ratio", + "type":"stat" }, { - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {}, - "decimals": 1, - "mappings": [], - "max": 48000000, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "fieldConfig":{ + "defaults":{ + "decimals":1, + "mappings":[ + + ], + "max":48000000, + "min":0, + "thresholds":{ + "mode":"absolute", + "steps":[ { - "color": "dark-red", - "value": null + "color":"dark-red", + "value":null }, { - "color": "dark-green", - "value": 8000000 + "color":"dark-green", + "value":8000000 } ] }, - "unit": "binBps" + "unit":"binBps" }, - "overrides": [] + "overrides":[ + + ] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 18, - "y": 0 + "gridPos":{ + "h":4, + "w":3, + "x":18, + "y":0 }, - "id": 16, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ + "id":16, + "options":{ + "orientation":"auto", + "reduceOptions":{ + "calcs":[ "last" ], - "fields": "", - "values": false + "fields":"", + "values":false }, - "showThresholdLabels": false, - "showThresholdMarkers": true + "showThresholdLabels":false, + "showThresholdMarkers":true }, - "pluginVersion": "7.2.2", - "targets": [ + "pluginVersion":"8.5.0", + "targets":[ { - "expr": "rate(qbittorrent_dl_info_data_total[1m])", - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" + "expr":"rate(qbittorrent_dl_info_data_total[2m])", + "instant":false, + "interval":"", + "legendFormat":"", + "refId":"A" } ], - "timeFrom": null, - "timeShift": null, - "title": "Download speed", - "type": "gauge" + "title":"Download speed", + "type":"gauge" }, { - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {}, - "decimals": 1, - "mappings": [ - { - "from": "", - "id": 1, - "text": "", - "to": "", - "type": 1 - } + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "fieldConfig":{ + "defaults":{ + "decimals":1, + "mappings":[ + ], - "max": 18000000, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ + "max":18000000, + "min":0, + "thresholds":{ + "mode":"absolute", + "steps":[ { - "color": "dark-red", - "value": null + "color":"dark-red", + "value":null }, { - "color": "dark-green", - "value": 4000000 + "color":"dark-green", + "value":4000000 } ] }, - "unit": "binBps" + "unit":"binBps" }, - "overrides": [] + "overrides":[ + + ] }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 0 + "gridPos":{ + "h":4, + "w":3, + "x":21, + "y":0 }, - "id": 17, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ + "id":17, + "options":{ + "orientation":"auto", + "reduceOptions":{ + "calcs":[ "last" ], - "fields": "", - "values": false + "fields":"", + "values":false }, - "showThresholdLabels": false, - "showThresholdMarkers": true + "showThresholdLabels":false, + "showThresholdMarkers":true }, - "pluginVersion": "7.2.2", - "targets": [ + "pluginVersion":"8.5.0", + "targets":[ { - "expr": "rate(qbittorrent_up_info_data_total[1m])", - "hide": false, - "instant": false, - "interval": "", - "legendFormat": "", - "refId": "A" + "expr":"rate(qbittorrent_up_info_data_total[2m])", + "hide":false, + "instant":false, + "interval":"", + "legendFormat":"", + "refId":"A" } ], - "timeFrom": null, - "timeShift": null, - "title": "Upload speed", - "type": "gauge" + "title":"Upload speed", + "type":"gauge" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] + "aliasColors":{ + }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 4 + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" }, - "hiddenSeries": false, - "id": 15, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false + "fill":1, + "fillGradient":0, + "gridPos":{ + "h":10, + "w":24, + "x":0, + "y":4 }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true + "hiddenSeries":false, + "id":15, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":true, + "total":false, + "values":false }, - "percentage": false, - "pluginVersion": "7.2.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ + "lines":true, + "linewidth":1, + "nullPointMode":"null", + "options":{ + "alertThreshold":true + }, + "percentage":false, + "pluginVersion":"8.5.0", + "pointradius":2, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ { - "expr": "rate(qbittorrent_dl_info_data_total[1m])", - "interval": "", - "legendFormat": "Download", - "refId": "A" + "expr":"rate(qbittorrent_dl_info_data_total[2m])", + "interval":"", + "legendFormat":"Download", + "refId":"A" }, { - "expr": "rate(qbittorrent_up_info_data_total[1m])", - "interval": "", - "legendFormat": "Upload", - "refId": "B" + "expr":"rate(qbittorrent_up_info_data_total[2m])", + "interval":"", + "legendFormat":"Upload", + "refId":"B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Transfer ratio", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + "thresholds":[ + + ], + "timeRegions":[ + + ], + "title":"Transfer Rates", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + "type":"graph", + "xaxis":{ + "mode":"time", + "show":true, + "values":[ + + ] }, - "yaxes": [ + "yaxes":[ { - "format": "binBps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "format":"binBps", + "logBase":1, + "show":true }, { - "format": "binBps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "format":"binBps", + "logBase":1, + "show":true } ], - "yaxis": { - "align": false, - "alignLevel": null + "yaxis":{ + "align":false } }, { - "aliasColors": {}, - "bars": true, - "cacheTimeout": null, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] + "aliasColors":{ + }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 14, - "x": 0, - "y": 14 + "bars":true, + "dashLength":10, + "dashes":false, + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" }, - "hiddenSeries": false, - "id": 11, - "interval": null, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false + "fill":1, + "fillGradient":0, + "gridPos":{ + "h":10, + "w":14, + "x":0, + "y":14 }, - "lines": false, - "linewidth": 0, - "links": [], - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true + "hiddenSeries":false, + "id":11, + "legend":{ + "alignAsTable":true, + "avg":false, + "current":false, + "max":false, + "min":false, + "rightSide":true, + "show":true, + "total":false, + "values":false }, - "percentage": false, - "pluginVersion": "7.2.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": true, - "targets": [ + "lines":false, + "linewidth":0, + "links":[ + + ], + "nullPointMode":"null as zero", + "options":{ + "alertThreshold":true + }, + "percentage":false, + "pluginVersion":"8.5.0", + "pointradius":2, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":true, + "steppedLine":true, + "targets":[ { - "expr": "sum(qbittorrent_torrents_count{category=~\"${categories}\", status!=\"complete\"}) by (status)", - "interval": "", - "legendFormat": "{{status}}", - "refId": "A" + "expr":"sum(qbittorrent_torrents_count{category=~\"${categories}\", status!=\"complete\"}) by (status)", + "interval":"", + "legendFormat":"{{status}}", + "refId":"A" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Torrents by status", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + "thresholds":[ + + ], + "timeRegions":[ + + ], + "title":"Torrents by status", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + "type":"graph", + "xaxis":{ + "mode":"time", + "show":true, + "values":[ + + ] }, - "yaxes": [ + "yaxes":[ { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "format":"short", + "logBase":1, + "show":true }, { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "format":"short", + "logBase":1, + "show":true } ], - "yaxis": { - "align": false, - "alignLevel": null + "yaxis":{ + "align":false } }, { - "aliasColors": {}, - "breakPoint": "50%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" }, - "datasource": "${DS_PROMETHEUS}", - "fieldConfig": { - "defaults": { - "custom": { - "align": null, - "filterable": false + "fieldConfig":{ + "defaults":{ + "color":{ + "mode":"palette-classic" }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } + "custom":{ + "hideFrom":{ + "legend":false, + "tooltip":false, + "viz":false + } + }, + "mappings":[ + + ] }, - "overrides": [] + "overrides":[ + + ] }, - "fontSize": "80%", - "format": "short", - "gridPos": { - "h": 10, - "w": 10, - "x": 14, - "y": 14 + "gridPos":{ + "h":10, + "w":10, + "x":14, + "y":14 }, - "id": 12, - "interval": null, - "legend": { - "percentage": true, - "show": true, - "sideWidth": null, - "values": true + "id":12, + "links":[ + + ], + "options":{ + "legend":{ + "displayMode":"list", + "placement":"bottom" + }, + "pieType":"pie", + "reduceOptions":{ + "calcs":[ + "lastNotNull" + ], + "fields":"", + "values":false + }, + "tooltip":{ + "mode":"single", + "sort":"none" + } }, - "legendType": "Right side", - "links": [], - "nullPointMode": "connected", - "pieType": "donut", - "pluginVersion": "7.2.0", - "strokeWidth": 1, - "targets": [ + "pluginVersion":"7.2.0", + "targets":[ { - "expr": "sum(qbittorrent_torrents_count{category=~\"${categories}\",status!=\"complete\"}) by (category)", - "interval": "", - "legendFormat": "{{category}}", - "refId": "A" + "expr":"sum(qbittorrent_torrents_count{category=~\"${categories}\",status!=\"complete\"}) by (category)", + "interval":"", + "legendFormat":"{{category}}", + "refId":"A" } ], - "timeFrom": null, - "timeShift": null, - "title": "Torrents by categories", - "type": "grafana-piechart-panel", - "valueName": "current" + "title":"Torrents by categories", + "type":"piechart" } ], - "refresh": "30s", - "schemaVersion": 26, - "style": "dark", - "tags": [], - "templating": { - "list": [ + "refresh":"10s", + "schemaVersion":36, + "style":"dark", + "tags":[ + + ], + "templating":{ + "list":[ { - "allValue": ".*", - "current": {}, - "datasource": "${DS_PROMETHEUS}", - "definition": "label_values(qbittorrent_torrents_count, category)", - "hide": 0, - "includeAll": true, - "label": "Categories", - "multi": true, - "name": "categories", - "options": [], - "query": "label_values(qbittorrent_torrents_count, category)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false + "allValue":".*", + "current":{ + "selected":false, + "text":"All", + "value":"$__all" + }, + "datasource":{ + "type":"prometheus", + "uid":"PBFA97CFB590B2093" + }, + "definition":"label_values(qbittorrent_torrents_count, category)", + "hide":0, + "includeAll":true, + "label":"Categories", + "multi":true, + "name":"categories", + "options":[ + + ], + "query":{ + "query":"label_values(qbittorrent_torrents_count, category)", + "refId":"Prometheus-categories-Variable-Query" + }, + "refresh":1, + "regex":"", + "skipUrlSync":false, + "sort":0, + "tagValuesQuery":"", + "tagsQuery":"", + "type":"query", + "useTags":false } ] }, - "time": { - "from": "now-5m", - "to": "now" + "time":{ + "from":"now-1h", + "to":"now" }, - "timepicker": {}, - "timezone": "", - "title": "Qbittorrent", - "uid": "eKyTETFMk", - "version": 40 + "timepicker":{ + + }, + "timezone":"", + "title":"Qbittorrent", + "uid":"eKyTETFMk", + "version":1, + "weekStart":"" } From 1b2cf9065ba32dc2fa987e84343c7e6990848c1e Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Thu, 16 Mar 2023 12:03:33 -0700 Subject: [PATCH 2/2] fix: data source was hardcoded --- grafana/dashboard.json | 1299 +++++++++++++++++++--------------------- 1 file changed, 627 insertions(+), 672 deletions(-) diff --git a/grafana/dashboard.json b/grafana/dashboard.json index d592056..6d762ee 100644 --- a/grafana/dashboard.json +++ b/grafana/dashboard.json @@ -1,921 +1,876 @@ { - "annotations":{ - "list":[ + "annotations": { + "list": [ { - "builtIn":1, - "datasource":{ - "type":"datasource", - "uid":"grafana" + "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" + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" }, - "type":"dashboard" + "type": "dashboard" } ] }, - "editable":true, - "fiscalYearStartMonth":0, - "graphTooltip":0, - "iteration":1651440933266, - "links":[ - - ], - "liveNow":false, - "panels":[ + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 5, + "links": [], + "liveNow": false, + "panels": [ { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "mappings":[ + "fieldConfig": { + "defaults": { + "mappings": [ { - "options":{ - "0":{ - "text":"Offline" + "options": { + "0": { + "text": "Offline" }, - "1":{ - "text":"Online" + "1": { + "text": "Online" } }, - "type":"value" + "type": "value" }, { - "options":{ - "match":"null", - "result":{ - "text":"Unknown" + "options": { + "match": "null", + "result": { + "text": "Unknown" } }, - "type":"special" + "type": "special" } ], - "thresholds":{ - "mode":"absolute", - "steps":[ + "thresholds": { + "mode": "absolute", + "steps": [ { - "color":"yellow", - "value":null + "color": "yellow", + "value": null }, { - "color":"semi-dark-red", - "value":0 + "color": "semi-dark-red", + "value": 0 }, { - "color":"semi-dark-green", - "value":1 + "color": "semi-dark-green", + "value": 1 } ] } }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":4, - "w":3, - "x":0, - "y":0 + "gridPos": { + "h": 4, + "w": 3, + "x": 0, + "y": 0 }, - "id":2, - "options":{ - "colorMode":"value", - "graphMode":"area", - "justifyMode":"auto", - "orientation":"auto", - "reduceOptions":{ - "calcs":[ + "id": 2, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ "last" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "textMode":"auto" + "textMode": "auto" }, - "pluginVersion":"8.5.0", - "targets":[ + "pluginVersion": "9.4.3", + "targets": [ { - "expr":"qbittorrent_up", - "format":"time_series", - "instant":false, - "interval":"", - "legendFormat":"", - "refId":"A" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" + }, + "expr": "qbittorrent_up", + "format": "time_series", + "instant": false, + "interval": "", + "legendFormat": "", + "refId": "A" } ], - "title":"Qbittorrent Status", - "transformations":[ - - ], - "type":"stat" + "title": "Qbittorrent Status", + "transformations": [], + "type": "stat" }, { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "mappings":[ + "fieldConfig": { + "defaults": { + "mappings": [ { - "options":{ - "0":{ - "text":"Disconnected" + "options": { + "0": { + "text": "Disconnected" }, - "1":{ - "text":"Connected" + "1": { + "text": "Connected" }, - "-1":{ - "text":"Firewalled" + "-1": { + "text": "Firewalled" } }, - "type":"value" + "type": "value" } ], - "thresholds":{ - "mode":"absolute", - "steps":[ + "thresholds": { + "mode": "absolute", + "steps": [ { - "color":"yellow", - "value":null + "color": "yellow", + "value": null }, { - "color":"dark-red", - "value":0 + "color": "dark-red", + "value": 0 }, { - "color":"semi-dark-green", - "value":1 + "color": "semi-dark-green", + "value": 1 } ] } }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":4, - "w":3, - "x":3, - "y":0 + "gridPos": { + "h": 4, + "w": 3, + "x": 3, + "y": 0 }, - "id":3, - "options":{ - "colorMode":"value", - "graphMode":"none", - "justifyMode":"auto", - "orientation":"auto", - "reduceOptions":{ - "calcs":[ + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ "lastNotNull" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "textMode":"auto" + "textMode": "auto" }, - "pluginVersion":"8.5.0", - "targets":[ + "pluginVersion": "9.4.3", + "targets": [ { - "expr":"qbittorrent_connected - qbittorrent_firewalled", - "format":"time_series", - "instant":true, - "interval":"", - "legendFormat":"Status", - "refId":"A" + "expr": "qbittorrent_connected - qbittorrent_firewalled", + "format": "time_series", + "instant": true, + "interval": "", + "legendFormat": "Status", + "refId": "A" } ], - "title":"Bittorrent network", - "transformations":[ - - ], - "type":"stat" + "title": "Bittorrent network", + "transformations": [], + "type": "stat" }, { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "mappings":[ + "fieldConfig": { + "defaults": { + "mappings": [ { - "options":{ - "0":{ - "text":"No DHT" + "options": { + "0": { + "text": "No DHT" }, - "-1":{ - "text":"Firewalled" + "-1": { + "text": "Firewalled" } }, - "type":"value" + "type": "value" } ], - "thresholds":{ - "mode":"absolute", - "steps":[ + "thresholds": { + "mode": "absolute", + "steps": [ { - "color":"yellow", - "value":null + "color": "yellow", + "value": null }, { - "color":"dark-red", - "value":0 + "color": "dark-red", + "value": 0 }, { - "color":"semi-dark-green", - "value":100 + "color": "semi-dark-green", + "value": 100 } ] } }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":4, - "w":3, - "x":6, - "y":0 + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 0 }, - "id":13, - "options":{ - "colorMode":"value", - "graphMode":"none", - "justifyMode":"auto", - "orientation":"auto", - "reduceOptions":{ - "calcs":[ + "id": 13, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ "lastNotNull" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "textMode":"auto" + "textMode": "auto" }, - "pluginVersion":"8.5.0", - "targets":[ + "pluginVersion": "9.4.3", + "targets": [ { - "expr":"qbittorrent_dht_nodes", - "instant":true, - "interval":"", - "legendFormat":"DHT nodes", - "refId":"B" + "expr": "qbittorrent_dht_nodes", + "instant": true, + "interval": "", + "legendFormat": "DHT nodes", + "refId": "B" } ], - "title":"DHT nodes", - "transformations":[ - - ], - "type":"stat" + "title": "DHT nodes", + "transformations": [], + "type": "stat" }, { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "mappings":[ - - ], - "thresholds":{ - "mode":"absolute", - "steps":[ + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "color":"green", - "value":null + "color": "green", + "value": null } ] }, - "unit":"bytes" + "unit": "bytes" }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":4, - "w":3, - "x":9, - "y":0 + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 0 }, - "id":5, - "options":{ - "colorMode":"value", - "graphMode":"none", - "justifyMode":"auto", - "orientation":"auto", - "reduceOptions":{ - "calcs":[ + "id": 5, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ "last" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "textMode":"auto" + "textMode": "auto" }, - "pluginVersion":"8.5.0", - "targets":[ + "pluginVersion": "9.4.3", + "targets": [ { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "editorMode":"code", - "expr":"sum by (app) (qbittorrent_dl_info_data_total)", - "instant":false, - "interval":"", - "legendFormat":" ", - "refId":"A" + "editorMode": "code", + "expr": "sum by (app) (qbittorrent_dl_info_data_total)", + "instant": false, + "interval": "", + "legendFormat": " ", + "refId": "A" } ], - "title":"Data downloaded", - "type":"stat" + "title": "Data downloaded", + "type": "stat" }, { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "mappings":[ - - ], - "thresholds":{ - "mode":"absolute", - "steps":[ + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "color":"green", - "value":null + "color": "green", + "value": null } ] }, - "unit":"bytes" + "unit": "bytes" }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":4, - "w":3, - "x":12, - "y":0 + "gridPos": { + "h": 4, + "w": 3, + "x": 12, + "y": 0 }, - "id":6, - "options":{ - "colorMode":"value", - "graphMode":"none", - "justifyMode":"auto", - "orientation":"auto", - "reduceOptions":{ - "calcs":[ + "id": 6, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ "last" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "textMode":"auto" + "textMode": "auto" }, - "pluginVersion":"8.5.0", - "targets":[ + "pluginVersion": "9.4.3", + "targets": [ { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "editorMode":"code", - "expr":"sum by (app) (qbittorrent_up_info_data_total)", - "instant":false, - "interval":"", - "legendFormat":" ", - "refId":"A" + "editorMode": "code", + "expr": "sum by (app) (qbittorrent_up_info_data_total)", + "instant": false, + "interval": "", + "legendFormat": " ", + "refId": "A" } ], - "title":"Data uploaded", - "type":"stat" + "title": "Data uploaded", + "type": "stat" }, { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "mappings":[ - - ], - "thresholds":{ - "mode":"absolute", - "steps":[ + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "color":"green", - "value":null + "color": "green", + "value": null } ] }, - "unit":"none" + "unit": "none" }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":4, - "w":3, - "x":15, - "y":0 + "gridPos": { + "h": 4, + "w": 3, + "x": 15, + "y": 0 }, - "id":7, - "options":{ - "colorMode":"value", - "graphMode":"area", - "justifyMode":"auto", - "orientation":"auto", - "reduceOptions":{ - "calcs":[ + "id": 7, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ "last" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "textMode":"auto" + "textMode": "auto" }, - "pluginVersion":"8.5.0", - "targets":[ + "pluginVersion": "9.4.3", + "targets": [ { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "editorMode":"code", - "expr":"(sum by (app) (qbittorrent_up_info_data_total)) / (sum by (app) (qbittorrent_dl_info_data_total))", - "instant":false, - "interval":"", - "legendFormat":"{{label_name}}", - "refId":"A" + "editorMode": "code", + "expr": "(sum by (app) (qbittorrent_up_info_data_total)) / (sum by (app) (qbittorrent_dl_info_data_total))", + "instant": false, + "interval": "", + "legendFormat": "{{label_name}}", + "refId": "A" } ], - "title":"Accumulated ratio", - "type":"stat" + "title": "Accumulated ratio", + "type": "stat" }, { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "decimals":1, - "mappings":[ - - ], - "max":48000000, - "min":0, - "thresholds":{ - "mode":"absolute", - "steps":[ + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "max": 48000000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ { - "color":"dark-red", - "value":null + "color": "dark-red", + "value": null }, { - "color":"dark-green", - "value":8000000 + "color": "dark-green", + "value": 8000000 } ] }, - "unit":"binBps" + "unit": "binBps" }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":4, - "w":3, - "x":18, - "y":0 + "gridPos": { + "h": 4, + "w": 3, + "x": 18, + "y": 0 }, - "id":16, - "options":{ - "orientation":"auto", - "reduceOptions":{ - "calcs":[ + "id": 16, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ "last" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "showThresholdLabels":false, - "showThresholdMarkers":true + "showThresholdLabels": false, + "showThresholdMarkers": true }, - "pluginVersion":"8.5.0", - "targets":[ + "pluginVersion": "9.4.3", + "targets": [ { - "expr":"rate(qbittorrent_dl_info_data_total[2m])", - "instant":false, - "interval":"", - "legendFormat":"", - "refId":"A" + "expr": "rate(qbittorrent_dl_info_data_total[2m])", + "instant": false, + "interval": "", + "legendFormat": "", + "refId": "A" } ], - "title":"Download speed", - "type":"gauge" + "title": "Download speed", + "type": "gauge" }, { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "decimals":1, - "mappings":[ - - ], - "max":18000000, - "min":0, - "thresholds":{ - "mode":"absolute", - "steps":[ + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [], + "max": 18000000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ { - "color":"dark-red", - "value":null + "color": "dark-red", + "value": null }, { - "color":"dark-green", - "value":4000000 + "color": "dark-green", + "value": 4000000 } ] }, - "unit":"binBps" + "unit": "binBps" }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":4, - "w":3, - "x":21, - "y":0 + "gridPos": { + "h": 4, + "w": 3, + "x": 21, + "y": 0 }, - "id":17, - "options":{ - "orientation":"auto", - "reduceOptions":{ - "calcs":[ + "id": 17, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ "last" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "showThresholdLabels":false, - "showThresholdMarkers":true + "showThresholdLabels": false, + "showThresholdMarkers": true }, - "pluginVersion":"8.5.0", - "targets":[ + "pluginVersion": "9.4.3", + "targets": [ { - "expr":"rate(qbittorrent_up_info_data_total[2m])", - "hide":false, - "instant":false, - "interval":"", - "legendFormat":"", - "refId":"A" + "expr": "rate(qbittorrent_up_info_data_total[2m])", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "", + "refId": "A" } ], - "title":"Upload speed", - "type":"gauge" + "title": "Upload speed", + "type": "gauge" }, { - "aliasColors":{ - + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 4 }, - "fill":1, - "fillGradient":0, - "gridPos":{ - "h":10, - "w":24, - "x":0, - "y":4 + "hiddenSeries": false, + "id": 15, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false }, - "hiddenSeries":false, - "id":15, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":true, - "total":false, - "values":false + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true }, - "lines":true, - "linewidth":1, - "nullPointMode":"null", - "options":{ - "alertThreshold":true - }, - "percentage":false, - "pluginVersion":"8.5.0", - "pointradius":2, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ + "percentage": false, + "pluginVersion": "9.4.3", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ { - "expr":"rate(qbittorrent_dl_info_data_total[2m])", - "interval":"", - "legendFormat":"Download", - "refId":"A" + "expr": "rate(qbittorrent_dl_info_data_total[2m])", + "interval": "", + "legendFormat": "Download", + "refId": "A" }, { - "expr":"rate(qbittorrent_up_info_data_total[2m])", - "interval":"", - "legendFormat":"Upload", - "refId":"B" + "expr": "rate(qbittorrent_up_info_data_total[2m])", + "interval": "", + "legendFormat": "Upload", + "refId": "B" } ], - "thresholds":[ - - ], - "timeRegions":[ - - ], - "title":"Transfer Rates", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" + "thresholds": [], + "timeRegions": [], + "title": "Transfer Rates", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - "type":"graph", - "xaxis":{ - "mode":"time", - "show":true, - "values":[ - - ] + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] }, - "yaxes":[ + "yaxes": [ { - "format":"binBps", - "logBase":1, - "show":true + "format": "binBps", + "logBase": 1, + "show": true }, { - "format":"binBps", - "logBase":1, - "show":true + "format": "binBps", + "logBase": 1, + "show": true } ], - "yaxis":{ - "align":false + "yaxis": { + "align": false } }, { - "aliasColors":{ - + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "bars":true, - "dashLength":10, - "dashes":false, - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 10, + "w": 14, + "x": 0, + "y": 14 }, - "fill":1, - "fillGradient":0, - "gridPos":{ - "h":10, - "w":14, - "x":0, - "y":14 + "hiddenSeries": false, + "id": 11, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": false }, - "hiddenSeries":false, - "id":11, - "legend":{ - "alignAsTable":true, - "avg":false, - "current":false, - "max":false, - "min":false, - "rightSide":true, - "show":true, - "total":false, - "values":false + "lines": false, + "linewidth": 0, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true }, - "lines":false, - "linewidth":0, - "links":[ - - ], - "nullPointMode":"null as zero", - "options":{ - "alertThreshold":true - }, - "percentage":false, - "pluginVersion":"8.5.0", - "pointradius":2, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":true, - "steppedLine":true, - "targets":[ + "percentage": false, + "pluginVersion": "9.4.3", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": true, + "targets": [ { - "expr":"sum(qbittorrent_torrents_count{category=~\"${categories}\", status!=\"complete\"}) by (status)", - "interval":"", - "legendFormat":"{{status}}", - "refId":"A" + "expr": "sum(qbittorrent_torrents_count{category=~\"${categories}\", status!=\"complete\"}) by (status)", + "interval": "", + "legendFormat": "{{status}}", + "refId": "A" } ], - "thresholds":[ - - ], - "timeRegions":[ - - ], - "title":"Torrents by status", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" + "thresholds": [], + "timeRegions": [], + "title": "Torrents by status", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - "type":"graph", - "xaxis":{ - "mode":"time", - "show":true, - "values":[ - - ] + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] }, - "yaxes":[ + "yaxes": [ { - "format":"short", - "logBase":1, - "show":true + "format": "short", + "logBase": 1, + "show": true }, { - "format":"short", - "logBase":1, - "show":true + "format": "short", + "logBase": 1, + "show": true } ], - "yaxis":{ - "align":false + "yaxis": { + "align": false } }, { - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "fieldConfig":{ - "defaults":{ - "color":{ - "mode":"palette-classic" + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" }, - "custom":{ - "hideFrom":{ - "legend":false, - "tooltip":false, - "viz":false + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false } }, - "mappings":[ - - ] + "mappings": [] }, - "overrides":[ - - ] + "overrides": [] }, - "gridPos":{ - "h":10, - "w":10, - "x":14, - "y":14 + "gridPos": { + "h": 10, + "w": 10, + "x": 14, + "y": 14 }, - "id":12, - "links":[ - - ], - "options":{ - "legend":{ - "displayMode":"list", - "placement":"bottom" + "id": 12, + "links": [], + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "pieType":"pie", - "reduceOptions":{ - "calcs":[ + "pieType": "pie", + "reduceOptions": { + "calcs": [ "lastNotNull" ], - "fields":"", - "values":false + "fields": "", + "values": false }, - "tooltip":{ - "mode":"single", - "sort":"none" + "tooltip": { + "mode": "single", + "sort": "none" } }, - "pluginVersion":"7.2.0", - "targets":[ + "pluginVersion": "7.2.0", + "targets": [ { - "expr":"sum(qbittorrent_torrents_count{category=~\"${categories}\",status!=\"complete\"}) by (category)", - "interval":"", - "legendFormat":"{{category}}", - "refId":"A" + "expr": "sum(qbittorrent_torrents_count{category=~\"${categories}\",status!=\"complete\"}) by (category)", + "interval": "", + "legendFormat": "{{category}}", + "refId": "A" } ], - "title":"Torrents by categories", - "type":"piechart" + "title": "Torrents by categories", + "type": "piechart" } ], - "refresh":"10s", - "schemaVersion":36, - "style":"dark", - "tags":[ - - ], - "templating":{ - "list":[ + "refresh": "10s", + "revision": 1, + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [ { - "allValue":".*", - "current":{ - "selected":false, - "text":"All", - "value":"$__all" + "allValue": ".*", + "current": { + "selected": false, + "text": "All", + "value": "$__all" }, - "datasource":{ - "type":"prometheus", - "uid":"PBFA97CFB590B2093" + "datasource": { + "type": "prometheus", + "uid": "${data_source}" }, - "definition":"label_values(qbittorrent_torrents_count, category)", - "hide":0, - "includeAll":true, - "label":"Categories", - "multi":true, - "name":"categories", - "options":[ - - ], - "query":{ - "query":"label_values(qbittorrent_torrents_count, category)", - "refId":"Prometheus-categories-Variable-Query" + "definition": "label_values(qbittorrent_torrents_count, category)", + "hide": 0, + "includeAll": true, + "label": "Categories", + "multi": true, + "name": "categories", + "options": [], + "query": { + "query": "label_values(qbittorrent_torrents_count, category)", + "refId": "Prometheus-categories-Variable-Query" }, - "refresh":1, - "regex":"", - "skipUrlSync":false, - "sort":0, - "tagValuesQuery":"", - "tagsQuery":"", - "type":"query", - "useTags":false + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": true, + "text": "Prometheus", + "value": "Prometheus" + }, + "hide": 0, + "includeAll": false, + "label": "Data Source", + "multi": false, + "name": "data_source", + "options": [], + "query": "prometheus", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" } ] }, - "time":{ - "from":"now-1h", - "to":"now" + "time": { + "from": "now-1h", + "to": "now" }, - "timepicker":{ - - }, - "timezone":"", - "title":"Qbittorrent", - "uid":"eKyTETFMk", - "version":1, - "weekStart":"" + "timepicker": {}, + "timezone": "", + "title": "Qbittorrent", + "uid": "eKyTETFMk", + "version": 1, + "weekStart": "" }