mirror of
https://github.com/NohamR/prometheus-qbittorrent-exporter.git
synced 2025-05-24 00:59:28 +00:00
Merge pull request #18 from chrisjohnson00/issue-17
fix: update grafana dashboard for v8 and k8s issue-17
This commit is contained in:
commit
1d0707674a
@ -1,101 +1,60 @@
|
|||||||
{
|
{
|
||||||
"__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,
|
"id": 5,
|
||||||
"iteration": 1603732792335,
|
|
||||||
"links": [],
|
"links": [],
|
||||||
|
"liveNow": false,
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
"datasource": "${DS_PROMETHEUS}",
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "${data_source}"
|
||||||
|
},
|
||||||
"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": {
|
||||||
@ -139,9 +98,13 @@
|
|||||||
},
|
},
|
||||||
"textMode": "auto"
|
"textMode": "auto"
|
||||||
},
|
},
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "${data_source}"
|
||||||
|
},
|
||||||
"expr": "qbittorrent_up",
|
"expr": "qbittorrent_up",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
@ -150,41 +113,31 @@
|
|||||||
"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": "${data_source}"
|
||||||
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {},
|
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"from": "",
|
"options": {
|
||||||
"id": 0,
|
"0": {
|
||||||
"text": "Connected",
|
"text": "Disconnected"
|
||||||
"to": "",
|
},
|
||||||
"type": 1,
|
"1": {
|
||||||
"value": "1"
|
"text": "Connected"
|
||||||
},
|
},
|
||||||
{
|
"-1": {
|
||||||
"from": "",
|
"text": "Firewalled"
|
||||||
"id": 1,
|
}
|
||||||
"text": "Disconnected",
|
},
|
||||||
"to": "",
|
"type": "value"
|
||||||
"type": 1,
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": "",
|
|
||||||
"id": 2,
|
|
||||||
"text": "Firewalled",
|
|
||||||
"to": "",
|
|
||||||
"type": 1,
|
|
||||||
"value": "-1"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
@ -228,7 +181,7 @@
|
|||||||
},
|
},
|
||||||
"textMode": "auto"
|
"textMode": "auto"
|
||||||
},
|
},
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "qbittorrent_connected - qbittorrent_firewalled",
|
"expr": "qbittorrent_connected - qbittorrent_firewalled",
|
||||||
@ -239,33 +192,28 @@
|
|||||||
"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": "${data_source}"
|
||||||
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {},
|
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"from": "",
|
"options": {
|
||||||
"id": 1,
|
"0": {
|
||||||
"text": "No DHT",
|
"text": "No DHT"
|
||||||
"to": "",
|
},
|
||||||
"type": 1,
|
"-1": {
|
||||||
"value": "0"
|
"text": "Firewalled"
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"from": "",
|
"type": "value"
|
||||||
"id": 2,
|
|
||||||
"text": "Firewalled",
|
|
||||||
"to": "",
|
|
||||||
"type": 1,
|
|
||||||
"value": "-1"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
@ -309,7 +257,7 @@
|
|||||||
},
|
},
|
||||||
"textMode": "auto"
|
"textMode": "auto"
|
||||||
},
|
},
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "qbittorrent_dht_nodes",
|
"expr": "qbittorrent_dht_nodes",
|
||||||
@ -319,17 +267,17 @@
|
|||||||
"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": "${data_source}"
|
||||||
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {},
|
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -340,7 +288,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "decbytes"
|
"unit": "bytes"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
@ -365,26 +313,31 @@
|
|||||||
},
|
},
|
||||||
"textMode": "auto"
|
"textMode": "auto"
|
||||||
},
|
},
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "increase(qbittorrent_dl_info_data_total[100y])",
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "${data_source}"
|
||||||
|
},
|
||||||
|
"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": "${data_source}"
|
||||||
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {},
|
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -395,7 +348,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "decbytes"
|
"unit": "bytes"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
@ -420,26 +373,31 @@
|
|||||||
},
|
},
|
||||||
"textMode": "auto"
|
"textMode": "auto"
|
||||||
},
|
},
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "increase(qbittorrent_up_info_data_total[100y])",
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "${data_source}"
|
||||||
|
},
|
||||||
|
"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": "${data_source}"
|
||||||
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {},
|
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
@ -475,26 +433,31 @@
|
|||||||
},
|
},
|
||||||
"textMode": "auto"
|
"textMode": "auto"
|
||||||
},
|
},
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "increase(qbittorrent_up_info_data_total[100y]) / increase(qbittorrent_dl_info_data_total[100y])",
|
"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,
|
"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": "${data_source}"
|
||||||
|
},
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {},
|
|
||||||
"decimals": 1,
|
"decimals": 1,
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"max": 48000000,
|
"max": 48000000,
|
||||||
@ -535,36 +498,28 @@
|
|||||||
"showThresholdLabels": false,
|
"showThresholdLabels": false,
|
||||||
"showThresholdMarkers": true
|
"showThresholdMarkers": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"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": "${data_source}"
|
||||||
|
},
|
||||||
"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,
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
@ -603,10 +558,10 @@
|
|||||||
"showThresholdLabels": false,
|
"showThresholdLabels": false,
|
||||||
"showThresholdMarkers": true
|
"showThresholdMarkers": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"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,8 +569,6 @@
|
|||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"timeFrom": null,
|
|
||||||
"timeShift": null,
|
|
||||||
"title": "Upload speed",
|
"title": "Upload speed",
|
||||||
"type": "gauge"
|
"type": "gauge"
|
||||||
},
|
},
|
||||||
@ -624,12 +577,9 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": "${DS_PROMETHEUS}",
|
"datasource": {
|
||||||
"fieldConfig": {
|
"type": "prometheus",
|
||||||
"defaults": {
|
"uid": "${data_source}"
|
||||||
"custom": {}
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
},
|
||||||
"fill": 1,
|
"fill": 1,
|
||||||
"fillGradient": 0,
|
"fillGradient": 0,
|
||||||
@ -657,7 +607,7 @@
|
|||||||
"alertThreshold": true
|
"alertThreshold": true
|
||||||
},
|
},
|
||||||
"percentage": false,
|
"percentage": false,
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"pointradius": 2,
|
"pointradius": 2,
|
||||||
"points": false,
|
"points": false,
|
||||||
"renderer": "flot",
|
"renderer": "flot",
|
||||||
@ -667,23 +617,21 @@
|
|||||||
"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": [],
|
"timeRegions": [],
|
||||||
"timeShift": null,
|
"title": "Transfer Rates",
|
||||||
"title": "Transfer ratio",
|
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"shared": true,
|
"shared": true,
|
||||||
"sort": 0,
|
"sort": 0,
|
||||||
@ -691,47 +639,34 @@
|
|||||||
},
|
},
|
||||||
"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": "${data_source}"
|
||||||
"custom": {}
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
},
|
||||||
"fill": 1,
|
"fill": 1,
|
||||||
"fillGradient": 0,
|
"fillGradient": 0,
|
||||||
@ -743,7 +678,6 @@
|
|||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 11,
|
"id": 11,
|
||||||
"interval": null,
|
|
||||||
"legend": {
|
"legend": {
|
||||||
"alignAsTable": true,
|
"alignAsTable": true,
|
||||||
"avg": false,
|
"avg": false,
|
||||||
@ -763,7 +697,7 @@
|
|||||||
"alertThreshold": true
|
"alertThreshold": true
|
||||||
},
|
},
|
||||||
"percentage": false,
|
"percentage": false,
|
||||||
"pluginVersion": "7.2.2",
|
"pluginVersion": "9.4.3",
|
||||||
"pointradius": 2,
|
"pointradius": 2,
|
||||||
"points": false,
|
"points": false,
|
||||||
"renderer": "flot",
|
"renderer": "flot",
|
||||||
@ -780,9 +714,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"thresholds": [],
|
"thresholds": [],
|
||||||
"timeFrom": null,
|
|
||||||
"timeRegions": [],
|
"timeRegions": [],
|
||||||
"timeShift": null,
|
|
||||||
"title": "Torrents by status",
|
"title": "Torrents by status",
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"shared": true,
|
"shared": true,
|
||||||
@ -791,65 +723,47 @@
|
|||||||
},
|
},
|
||||||
"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": "${data_source}"
|
||||||
"combine": {
|
|
||||||
"label": "Others",
|
|
||||||
"threshold": 0
|
|
||||||
},
|
},
|
||||||
"datasource": "${DS_PROMETHEUS}",
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {
|
"color": {
|
||||||
"align": null,
|
"mode": "palette-classic"
|
||||||
"filterable": false
|
|
||||||
},
|
},
|
||||||
"mappings": [],
|
"custom": {
|
||||||
"thresholds": {
|
"hideFrom": {
|
||||||
"mode": "absolute",
|
"legend": false,
|
||||||
"steps": [
|
"tooltip": false,
|
||||||
{
|
"viz": false
|
||||||
"color": "green",
|
}
|
||||||
"value": null
|
},
|
||||||
}
|
"mappings": []
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
"fontSize": "80%",
|
|
||||||
"format": "short",
|
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"h": 10,
|
"h": 10,
|
||||||
"w": 10,
|
"w": 10,
|
||||||
@ -857,19 +771,27 @@
|
|||||||
"y": 14
|
"y": 14
|
||||||
},
|
},
|
||||||
"id": 12,
|
"id": 12,
|
||||||
"interval": null,
|
|
||||||
"legend": {
|
|
||||||
"percentage": true,
|
|
||||||
"show": true,
|
|
||||||
"sideWidth": null,
|
|
||||||
"values": true
|
|
||||||
},
|
|
||||||
"legendType": "Right side",
|
|
||||||
"links": [],
|
"links": [],
|
||||||
"nullPointMode": "connected",
|
"options": {
|
||||||
"pieType": "donut",
|
"legend": {
|
||||||
|
"displayMode": "list",
|
||||||
|
"placement": "bottom",
|
||||||
|
"showLegend": true
|
||||||
|
},
|
||||||
|
"pieType": "pie",
|
||||||
|
"reduceOptions": {
|
||||||
|
"calcs": [
|
||||||
|
"lastNotNull"
|
||||||
|
],
|
||||||
|
"fields": "",
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"tooltip": {
|
||||||
|
"mode": "single",
|
||||||
|
"sort": "none"
|
||||||
|
}
|
||||||
|
},
|
||||||
"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,23 +800,28 @@
|
|||||||
"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,
|
"revision": 1,
|
||||||
|
"schemaVersion": 38,
|
||||||
"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": "${data_source}"
|
||||||
|
},
|
||||||
"definition": "label_values(qbittorrent_torrents_count, category)",
|
"definition": "label_values(qbittorrent_torrents_count, category)",
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"includeAll": true,
|
"includeAll": true,
|
||||||
@ -902,26 +829,48 @@
|
|||||||
"multi": true,
|
"multi": true,
|
||||||
"name": "categories",
|
"name": "categories",
|
||||||
"options": [],
|
"options": [],
|
||||||
"query": "label_values(qbittorrent_torrents_count, category)",
|
"query": {
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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": {
|
"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