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": "" }