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