This commit is contained in:
√(noham)² 2024-01-08 22:46:22 +01:00
parent 2602383484
commit 6b9c2e5a50
2 changed files with 227 additions and 166 deletions

View File

@ -28,96 +28,6 @@
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"fieldConfig": {
"defaults": {
"mappings": [
{
"options": {
"0": {
"text": "Offline"
},
"1": {
"text": "Online"
}
},
"type": "value"
},
{
"options": {
"match": "null",
"result": {
"text": "Unknown"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "yellow",
"value": null
},
{
"color": "semi-dark-red",
"value": 0
},
{
"color": "semi-dark-green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"expr": "qbittorrent_up",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Qbittorrent Status",
"transformations": [],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
@ -163,8 +73,8 @@
},
"gridPos": {
"h": 4,
"w": 2,
"x": 2,
"w": 4,
"x": 0,
"y": 0
},
"id": 3,
@ -297,7 +207,7 @@
},
"gridPos": {
"h": 4,
"w": 2,
"w": 4,
"x": 7,
"y": 0
},
@ -358,8 +268,8 @@
},
"gridPos": {
"h": 4,
"w": 2,
"x": 9,
"w": 4,
"x": 11,
"y": 0
},
"id": 6,
@ -419,8 +329,8 @@
},
"gridPos": {
"h": 4,
"w": 2,
"x": 11,
"w": 3,
"x": 15,
"y": 0
},
"id": 5,
@ -480,8 +390,8 @@
},
"gridPos": {
"h": 4,
"w": 2,
"x": 13,
"w": 3,
"x": 18,
"y": 0
},
"id": 19,
@ -518,67 +428,6 @@
"title": "Session uploaded",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 15,
"y": 0
},
"id": 7,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"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"
}
],
"title": "Accumulated ratio",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
@ -610,7 +459,7 @@
"gridPos": {
"h": 4,
"w": 3,
"x": 18,
"x": 21,
"y": 0
},
"id": 16,
@ -641,6 +490,218 @@
"title": "Download speed",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"fieldConfig": {
"defaults": {
"mappings": [
{
"options": {
"0": {
"text": "Offline"
},
"1": {
"text": "Online"
}
},
"type": "value"
},
{
"options": {
"match": "null",
"result": {
"text": "Unknown"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "yellow",
"value": null
},
{
"color": "semi-dark-red",
"value": 0
},
{
"color": "semi-dark-green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 7,
"x": 0,
"y": 4
},
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"expr": "qbittorrent_up",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"title": "Qbittorrent Status",
"transformations": [],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 8,
"x": 7,
"y": 4
},
"id": 20,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"editorMode": "code",
"expr": "(sum by (app) (qbittorrent_alltime_ul_total)) / (sum by (app) (qbittorrent_alltime_dl_total))",
"instant": false,
"interval": "",
"legendFormat": "{{label_name}}",
"refId": "A"
}
],
"title": "Total ratio",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${data_source}"
},
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 15,
"y": 4
},
"id": 7,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"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"
}
],
"title": "Session ratio",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
@ -673,7 +734,7 @@
"h": 4,
"w": 3,
"x": 21,
"y": 0
"y": 4
},
"id": 17,
"options": {
@ -719,7 +780,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 4
"y": 8
},
"hiddenSeries": false,
"id": 15,
@ -806,7 +867,7 @@
"h": 10,
"w": 14,
"x": 0,
"y": 14
"y": 18
},
"hiddenSeries": false,
"id": 11,
@ -900,7 +961,7 @@
"h": 10,
"w": 10,
"x": 14,
"y": 14
"y": 18
},
"id": 12,
"links": [],
@ -1002,6 +1063,6 @@
"timezone": "",
"title": "Qb",
"uid": "eKyTETFMj",
"version": 1,
"version": 4,
"weekStart": ""
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 KiB

After

Width:  |  Height:  |  Size: 684 KiB