Files
grafana-dashboards/dashboards/platform/qbittorrent.json
2025-06-02 22:37:03 -05:00

1018 lines
25 KiB
JSON

{
"annotations": {
"list": [
{
"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"
},
"type": "dashboard"
}
]
},
"editable": false,
"graphTooltip": 0,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"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"
},
{
"color": "semi-dark-red",
"value": 0
},
{
"color": "semi-dark-green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "max(max_over_time(qbittorrent_up{server=\"$server\"}[10m]))",
"format": "time_series",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "A",
"useBackend": false
}
],
"title": "Qbittorrent Status",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"mappings": [
{
"options": {
"0": {
"text": "No DHT"
},
"-1": {
"text": "Firewalled"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "yellow"
},
{
"color": "dark-red",
"value": 0
},
{
"color": "semi-dark-green",
"value": 100
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 3,
"y": 0
},
"id": 13,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "qbittorrent_dht_nodes{server=\"$server\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": true,
"interval": "",
"legendFormat": "DHT nodes",
"refId": "B",
"useBackend": false
}
],
"title": "DHT nodes",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 8,
"x": 6,
"y": 0
},
"id": 5,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["last"],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"editorMode": "code",
"expr": "sum by (app) (qbittorrent_dl_info_data_total{server=\"$server\"})",
"instant": false,
"interval": "",
"legendFormat": " In session",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"editorMode": "code",
"expr": "sum by (app) (qbittorrent_alltime_dl_total{server=\"$server\"})",
"hide": false,
"instant": false,
"legendFormat": "All time",
"range": true,
"refId": "B"
}
],
"title": "Data downloaded",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"decimals": 1,
"mappings": [],
"max": 48000000,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-red"
},
{
"color": "dark-green",
"value": 8000000
}
]
},
"unit": "binBps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 14,
"y": 0
},
"id": 16,
"options": {
"minVizHeight": 200,
"minVizWidth": 200,
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "sum by(server) (rate(qbittorrent_dl_info_data_total{server=\"$server\"}[2m]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "A",
"useBackend": false
}
],
"title": "Download speed",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"decimals": 1,
"mappings": [],
"max": 18000000,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-red"
},
{
"color": "dark-green",
"value": 4000000
}
]
},
"unit": "binBps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 19,
"y": 0
},
"id": 17,
"options": {
"minVizHeight": 200,
"minVizWidth": 200,
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(server) (rate(qbittorrent_up_info_data_total{server=\"$server\"}[2m]))",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "A",
"useBackend": false
}
],
"title": "Upload speed",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"mappings": [
{
"options": {
"0": {
"text": "Disconnected"
},
"1": {
"text": "Connected"
},
"-1": {
"text": "Firewalled"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "yellow"
},
{
"color": "dark-red",
"value": 0
},
{
"color": "semi-dark-green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 0,
"y": 4
},
"id": 3,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "qbittorrent_connected{server=\"$server\"} - qbittorrent_firewalled{server=\"$server\"}",
"format": "time_series",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": true,
"interval": "",
"legendFormat": "Status",
"refId": "A",
"useBackend": false
}
],
"title": "Bittorrent network",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "dark-red",
"value": 0
},
{
"color": "orange",
"value": 0.5
},
{
"color": "green",
"value": 0.8
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 3,
"y": 4
},
"id": 7,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["last"],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(app) (qbittorrent_alltime_ul_total{server=\"$server\"}) / sum by(app) (qbittorrent_alltime_dl_total{server=\"$server\"})",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"interval": "",
"legendFormat": "{{label_name}}",
"refId": "A",
"useBackend": false
}
],
"title": "Accumulated ratio in session",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 8,
"x": 6,
"y": 4
},
"id": 6,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["last"],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"editorMode": "code",
"expr": "sum by (app) (qbittorrent_up_info_data_total{server=\"$server\"})",
"instant": false,
"interval": "",
"legendFormat": "In session ",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"editorMode": "code",
"expr": "sum by (app) (qbittorrent_alltime_ul_total{server=\"$server\"})",
"hide": false,
"instant": false,
"legendFormat": "All time",
"range": true,
"refId": "B"
}
],
"title": "Data uploaded",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "binBps"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 8
},
"id": 15,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(server) (rate(qbittorrent_dl_info_data_total{server=\"$server\"}[2m]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"interval": "",
"legendFormat": "Download $server",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(server) (rate(qbittorrent_up_info_data_total{server=\"$server\"}[2m]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"interval": "",
"legendFormat": "Upload $server",
"range": true,
"refId": "B",
"useBackend": false
}
],
"title": "Transfer Rates",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic-by-name"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.5,
"drawStyle": "bars",
"fillOpacity": 50,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "stepAfter",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 14,
"x": 0,
"y": 18
},
"id": 11,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(status) (qbittorrent_torrents_count{category=~\"${categories}\", status!=\"complete\", server=\"$server\"})",
"fullMetaSearch": false,
"includeNullMetadata": true,
"interval": "",
"legendFormat": "{{status}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Torrents by status",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 10,
"x": 14,
"y": 18
},
"id": 12,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"pieType": "pie",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.0.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"editorMode": "code",
"expr": "sum(qbittorrent_torrents_count{category=~\"${categories}\",status!=\"complete\",server=\"$server\"}) by (category)",
"interval": "",
"legendFormat": "{{category}}",
"range": true,
"refId": "A"
}
],
"title": "Torrents by categories",
"type": "piechart"
}
],
"preload": true,
"tags": ["platform", "storage"],
"templating": {
"list": [
{
"current": {
"text": "Prometheus",
"value": "kube-prometheus-stack"
},
"includeAll": false,
"label": "Data Source",
"name": "data_source",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"allValue": ".*",
"current": {
"text": "localhost:8080",
"value": "localhost:8080"
},
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"definition": "label_values(qbittorrent_up,server)",
"includeAll": false,
"label": "Server",
"name": "server",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(qbittorrent_up,server)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"type": "query"
},
{
"allValue": ".*",
"current": {
"text": "All",
"value": ["$__all"]
},
"datasource": {
"type": "prometheus",
"uid": "kube-prometheus-stack"
},
"definition": "label_values(qbittorrent_torrents_count{server=\"$server\"},category)",
"includeAll": true,
"label": "Categories",
"multi": true,
"name": "categories",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(qbittorrent_torrents_count{server=\"$server\"},category)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"type": "query"
}
]
},
"time": {
"from": "now-24h",
"to": "now"
},
"timezone": "browser",
"title": "Qbittorrent",
"uid": "eKyTETFMk",
"version": 11
}