mirror of
https://github.com/NohamR/prometheus-qbittorrent-exporter.git
synced 2025-05-24 00:59:28 +00:00
fix: update grafana dashboard for v8 and k8s issue-17
This fixed issues #17
This commit is contained in:
parent
bc8676ed30
commit
5b2ed75850
@ -1,101 +1,64 @@
|
||||
{
|
||||
"__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":[
|
||||
{
|
||||
"builtIn":1,
|
||||
"datasource": "-- Grafana --",
|
||||
"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,
|
||||
"fiscalYearStartMonth":0,
|
||||
"graphTooltip":0,
|
||||
"id": null,
|
||||
"iteration": 1603732792335,
|
||||
"links": [],
|
||||
"iteration":1651440933266,
|
||||
"links":[
|
||||
|
||||
],
|
||||
"liveNow":false,
|
||||
"panels":[
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"custom": {},
|
||||
"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"
|
||||
"options":{
|
||||
"match":"null",
|
||||
"result":{
|
||||
"text":"Unknown"
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": "",
|
||||
"id": 2,
|
||||
"text": "Unknown",
|
||||
"to": "",
|
||||
"type": 1,
|
||||
"value": "null"
|
||||
"type":"special"
|
||||
}
|
||||
],
|
||||
"thresholds":{
|
||||
@ -116,7 +79,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"gridPos":{
|
||||
"h":4,
|
||||
@ -139,7 +104,7 @@
|
||||
},
|
||||
"textMode":"auto"
|
||||
},
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"targets":[
|
||||
{
|
||||
"expr":"qbittorrent_up",
|
||||
@ -150,41 +115,33 @@
|
||||
"refId":"A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title":"Qbittorrent Status",
|
||||
"transformations": [],
|
||||
"transformations":[
|
||||
|
||||
],
|
||||
"type":"stat"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"custom": {},
|
||||
"mappings":[
|
||||
{
|
||||
"from": "",
|
||||
"id": 0,
|
||||
"text": "Connected",
|
||||
"to": "",
|
||||
"type": 1,
|
||||
"value": "1"
|
||||
"options":{
|
||||
"0":{
|
||||
"text":"Disconnected"
|
||||
},
|
||||
{
|
||||
"from": "",
|
||||
"id": 1,
|
||||
"text": "Disconnected",
|
||||
"to": "",
|
||||
"type": 1,
|
||||
"value": "0"
|
||||
"1":{
|
||||
"text":"Connected"
|
||||
},
|
||||
{
|
||||
"from": "",
|
||||
"id": 2,
|
||||
"text": "Firewalled",
|
||||
"to": "",
|
||||
"type": 1,
|
||||
"value": "-1"
|
||||
"-1":{
|
||||
"text":"Firewalled"
|
||||
}
|
||||
},
|
||||
"type":"value"
|
||||
}
|
||||
],
|
||||
"thresholds":{
|
||||
@ -205,7 +162,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"gridPos":{
|
||||
"h":4,
|
||||
@ -228,7 +187,7 @@
|
||||
},
|
||||
"textMode":"auto"
|
||||
},
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"targets":[
|
||||
{
|
||||
"expr":"qbittorrent_connected - qbittorrent_firewalled",
|
||||
@ -239,33 +198,30 @@
|
||||
"refId":"A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title":"Bittorrent network",
|
||||
"transformations": [],
|
||||
"transformations":[
|
||||
|
||||
],
|
||||
"type":"stat"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"custom": {},
|
||||
"mappings":[
|
||||
{
|
||||
"from": "",
|
||||
"id": 1,
|
||||
"text": "No DHT",
|
||||
"to": "",
|
||||
"type": 1,
|
||||
"value": "0"
|
||||
"options":{
|
||||
"0":{
|
||||
"text":"No DHT"
|
||||
},
|
||||
{
|
||||
"from": "",
|
||||
"id": 2,
|
||||
"text": "Firewalled",
|
||||
"to": "",
|
||||
"type": 1,
|
||||
"value": "-1"
|
||||
"-1":{
|
||||
"text":"Firewalled"
|
||||
}
|
||||
},
|
||||
"type":"value"
|
||||
}
|
||||
],
|
||||
"thresholds":{
|
||||
@ -286,7 +242,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"gridPos":{
|
||||
"h":4,
|
||||
@ -309,7 +267,7 @@
|
||||
},
|
||||
"textMode":"auto"
|
||||
},
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"targets":[
|
||||
{
|
||||
"expr":"qbittorrent_dht_nodes",
|
||||
@ -319,18 +277,22 @@
|
||||
"refId":"B"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title":"DHT nodes",
|
||||
"transformations": [],
|
||||
"transformations":[
|
||||
|
||||
],
|
||||
"type":"stat"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"custom": {},
|
||||
"mappings": [],
|
||||
"mappings":[
|
||||
|
||||
],
|
||||
"thresholds":{
|
||||
"mode":"absolute",
|
||||
"steps":[
|
||||
@ -340,9 +302,11 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "decbytes"
|
||||
"unit":"bytes"
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"gridPos":{
|
||||
"h":4,
|
||||
@ -365,27 +329,34 @@
|
||||
},
|
||||
"textMode":"auto"
|
||||
},
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"targets":[
|
||||
{
|
||||
"expr": "increase(qbittorrent_dl_info_data_total[100y])",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"custom": {},
|
||||
"mappings": [],
|
||||
"mappings":[
|
||||
|
||||
],
|
||||
"thresholds":{
|
||||
"mode":"absolute",
|
||||
"steps":[
|
||||
@ -395,9 +366,11 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "decbytes"
|
||||
"unit":"bytes"
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"gridPos":{
|
||||
"h":4,
|
||||
@ -420,27 +393,34 @@
|
||||
},
|
||||
"textMode":"auto"
|
||||
},
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"targets":[
|
||||
{
|
||||
"expr": "increase(qbittorrent_up_info_data_total[100y])",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"custom": {},
|
||||
"mappings": [],
|
||||
"mappings":[
|
||||
|
||||
],
|
||||
"thresholds":{
|
||||
"mode":"absolute",
|
||||
"steps":[
|
||||
@ -452,7 +432,9 @@
|
||||
},
|
||||
"unit":"none"
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"gridPos":{
|
||||
"h":4,
|
||||
@ -475,28 +457,35 @@
|
||||
},
|
||||
"textMode":"auto"
|
||||
},
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"targets":[
|
||||
{
|
||||
"expr": "increase(qbittorrent_up_info_data_total[100y]) / increase(qbittorrent_dl_info_data_total[100y])",
|
||||
"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": "",
|
||||
"legendFormat":"{{label_name}}",
|
||||
"refId":"A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title":"Accumulated ratio",
|
||||
"type":"stat"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"custom": {},
|
||||
"decimals":1,
|
||||
"mappings": [],
|
||||
"mappings":[
|
||||
|
||||
],
|
||||
"max":48000000,
|
||||
"min":0,
|
||||
"thresholds":{
|
||||
@ -514,7 +503,9 @@
|
||||
},
|
||||
"unit":"binBps"
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"gridPos":{
|
||||
"h":4,
|
||||
@ -535,35 +526,29 @@
|
||||
"showThresholdLabels":false,
|
||||
"showThresholdMarkers":true
|
||||
},
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"targets":[
|
||||
{
|
||||
"expr": "rate(qbittorrent_dl_info_data_total[1m])",
|
||||
"expr":"rate(qbittorrent_dl_info_data_total[2m])",
|
||||
"instant":false,
|
||||
"interval":"",
|
||||
"legendFormat":"",
|
||||
"refId":"A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title":"Download speed",
|
||||
"type":"gauge"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"custom": {},
|
||||
"decimals":1,
|
||||
"mappings":[
|
||||
{
|
||||
"from": "",
|
||||
"id": 1,
|
||||
"text": "",
|
||||
"to": "",
|
||||
"type": 1
|
||||
}
|
||||
|
||||
],
|
||||
"max":18000000,
|
||||
"min":0,
|
||||
@ -582,7 +567,9 @@
|
||||
},
|
||||
"unit":"binBps"
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"gridPos":{
|
||||
"h":4,
|
||||
@ -603,10 +590,10 @@
|
||||
"showThresholdLabels":false,
|
||||
"showThresholdMarkers":true
|
||||
},
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"targets":[
|
||||
{
|
||||
"expr": "rate(qbittorrent_up_info_data_total[1m])",
|
||||
"expr":"rate(qbittorrent_up_info_data_total[2m])",
|
||||
"hide":false,
|
||||
"instant":false,
|
||||
"interval":"",
|
||||
@ -614,22 +601,19 @@
|
||||
"refId":"A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title":"Upload speed",
|
||||
"type":"gauge"
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"aliasColors":{
|
||||
|
||||
},
|
||||
"bars":false,
|
||||
"dashLength":10,
|
||||
"dashes":false,
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fill":1,
|
||||
"fillGradient":0,
|
||||
@ -657,33 +641,37 @@
|
||||
"alertThreshold":true
|
||||
},
|
||||
"percentage":false,
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"pointradius":2,
|
||||
"points":false,
|
||||
"renderer":"flot",
|
||||
"seriesOverrides": [],
|
||||
"seriesOverrides":[
|
||||
|
||||
],
|
||||
"spaceLength":10,
|
||||
"stack":false,
|
||||
"steppedLine":false,
|
||||
"targets":[
|
||||
{
|
||||
"expr": "rate(qbittorrent_dl_info_data_total[1m])",
|
||||
"expr":"rate(qbittorrent_dl_info_data_total[2m])",
|
||||
"interval":"",
|
||||
"legendFormat":"Download",
|
||||
"refId":"A"
|
||||
},
|
||||
{
|
||||
"expr": "rate(qbittorrent_up_info_data_total[1m])",
|
||||
"expr":"rate(qbittorrent_up_info_data_total[2m])",
|
||||
"interval":"",
|
||||
"legendFormat":"Upload",
|
||||
"refId":"B"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Transfer ratio",
|
||||
"thresholds":[
|
||||
|
||||
],
|
||||
"timeRegions":[
|
||||
|
||||
],
|
||||
"title":"Transfer Rates",
|
||||
"tooltip":{
|
||||
"shared":true,
|
||||
"sort":0,
|
||||
@ -691,47 +679,38 @@
|
||||
},
|
||||
"type":"graph",
|
||||
"xaxis":{
|
||||
"buckets": null,
|
||||
"mode":"time",
|
||||
"name": null,
|
||||
"show":true,
|
||||
"values": []
|
||||
"values":[
|
||||
|
||||
]
|
||||
},
|
||||
"yaxes":[
|
||||
{
|
||||
"format":"binBps",
|
||||
"label": null,
|
||||
"logBase":1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show":true
|
||||
},
|
||||
{
|
||||
"format":"binBps",
|
||||
"label": null,
|
||||
"logBase":1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show":true
|
||||
}
|
||||
],
|
||||
"yaxis":{
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
"align":false
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"aliasColors":{
|
||||
|
||||
},
|
||||
"bars":true,
|
||||
"cacheTimeout": null,
|
||||
"dashLength":10,
|
||||
"dashes":false,
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"fill":1,
|
||||
"fillGradient":0,
|
||||
@ -743,7 +722,6 @@
|
||||
},
|
||||
"hiddenSeries":false,
|
||||
"id":11,
|
||||
"interval": null,
|
||||
"legend":{
|
||||
"alignAsTable":true,
|
||||
"avg":false,
|
||||
@ -757,17 +735,21 @@
|
||||
},
|
||||
"lines":false,
|
||||
"linewidth":0,
|
||||
"links": [],
|
||||
"links":[
|
||||
|
||||
],
|
||||
"nullPointMode":"null as zero",
|
||||
"options":{
|
||||
"alertThreshold":true
|
||||
},
|
||||
"percentage":false,
|
||||
"pluginVersion": "7.2.2",
|
||||
"pluginVersion":"8.5.0",
|
||||
"pointradius":2,
|
||||
"points":false,
|
||||
"renderer":"flot",
|
||||
"seriesOverrides": [],
|
||||
"seriesOverrides":[
|
||||
|
||||
],
|
||||
"spaceLength":10,
|
||||
"stack":true,
|
||||
"steppedLine":true,
|
||||
@ -779,10 +761,12 @@
|
||||
"refId":"A"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"thresholds":[
|
||||
|
||||
],
|
||||
"timeRegions":[
|
||||
|
||||
],
|
||||
"title":"Torrents by status",
|
||||
"tooltip":{
|
||||
"shared":true,
|
||||
@ -791,65 +775,53 @@
|
||||
},
|
||||
"type":"graph",
|
||||
"xaxis":{
|
||||
"buckets": null,
|
||||
"mode":"time",
|
||||
"name": null,
|
||||
"show":true,
|
||||
"values": []
|
||||
"values":[
|
||||
|
||||
]
|
||||
},
|
||||
"yaxes":[
|
||||
{
|
||||
"format":"short",
|
||||
"label": null,
|
||||
"logBase":1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show":true
|
||||
},
|
||||
{
|
||||
"format":"short",
|
||||
"label": null,
|
||||
"logBase":1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show":true
|
||||
}
|
||||
],
|
||||
"yaxis":{
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
"align":false
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"breakPoint": "50%",
|
||||
"cacheTimeout": null,
|
||||
"combine": {
|
||||
"label": "Others",
|
||||
"threshold": 0
|
||||
"datasource":{
|
||||
"type":"prometheus",
|
||||
"uid":"PBFA97CFB590B2093"
|
||||
},
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig":{
|
||||
"defaults":{
|
||||
"color":{
|
||||
"mode":"palette-classic"
|
||||
},
|
||||
"custom":{
|
||||
"align": null,
|
||||
"filterable": false
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
"hideFrom":{
|
||||
"legend":false,
|
||||
"tooltip":false,
|
||||
"viz":false
|
||||
}
|
||||
},
|
||||
"mappings":[
|
||||
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":[
|
||||
|
||||
]
|
||||
},
|
||||
"fontSize": "80%",
|
||||
"format": "short",
|
||||
"gridPos":{
|
||||
"h":10,
|
||||
"w":10,
|
||||
@ -857,19 +829,28 @@
|
||||
"y":14
|
||||
},
|
||||
"id":12,
|
||||
"interval": null,
|
||||
"links":[
|
||||
|
||||
],
|
||||
"options":{
|
||||
"legend":{
|
||||
"percentage": true,
|
||||
"show": true,
|
||||
"sideWidth": null,
|
||||
"values": true
|
||||
"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":[
|
||||
{
|
||||
"expr":"sum(qbittorrent_torrents_count{category=~\"${categories}\",status!=\"complete\"}) by (category)",
|
||||
@ -878,37 +859,47 @@
|
||||
"refId":"A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title":"Torrents by categories",
|
||||
"type": "grafana-piechart-panel",
|
||||
"valueName": "current"
|
||||
"type":"piechart"
|
||||
}
|
||||
],
|
||||
"refresh": "30s",
|
||||
"schemaVersion": 26,
|
||||
"refresh":"10s",
|
||||
"schemaVersion":36,
|
||||
"style":"dark",
|
||||
"tags": [],
|
||||
"tags":[
|
||||
|
||||
],
|
||||
"templating":{
|
||||
"list":[
|
||||
{
|
||||
"allValue":".*",
|
||||
"current": {},
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"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": [],
|
||||
"options":[
|
||||
|
||||
],
|
||||
"query":{
|
||||
"query":"label_values(qbittorrent_torrents_count, category)",
|
||||
"refId":"Prometheus-categories-Variable-Query"
|
||||
},
|
||||
"refresh":1,
|
||||
"regex":"",
|
||||
"skipUrlSync":false,
|
||||
"sort":0,
|
||||
"tagValuesQuery":"",
|
||||
"tags": [],
|
||||
"tagsQuery":"",
|
||||
"type":"query",
|
||||
"useTags":false
|
||||
@ -916,12 +907,15 @@
|
||||
]
|
||||
},
|
||||
"time":{
|
||||
"from": "now-5m",
|
||||
"from":"now-1h",
|
||||
"to":"now"
|
||||
},
|
||||
"timepicker": {},
|
||||
"timepicker":{
|
||||
|
||||
},
|
||||
"timezone":"",
|
||||
"title":"Qbittorrent",
|
||||
"uid":"eKyTETFMk",
|
||||
"version": 40
|
||||
"version":1,
|
||||
"weekStart":""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user