2023-03-16 12:03:39 -07:00

922 lines
18 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":true,
"fiscalYearStartMonth":0,
"graphTooltip":0,
"iteration":1651440933266,
"links":[
],
"liveNow":false,
"panels":[
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"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":3,
"x":0,
"y":0
},
"id":2,
"options":{
"colorMode":"value",
"graphMode":"area",
"justifyMode":"auto",
"orientation":"auto",
"reduceOptions":{
"calcs":[
"last"
],
"fields":"",
"values":false
},
"textMode":"auto"
},
"pluginVersion":"8.5.0",
"targets":[
{
"expr":"qbittorrent_up",
"format":"time_series",
"instant":false,
"interval":"",
"legendFormat":"",
"refId":"A"
}
],
"title":"Qbittorrent Status",
"transformations":[
],
"type":"stat"
},
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fieldConfig":{
"defaults":{
"mappings":[
{
"options":{
"0":{
"text":"Disconnected"
},
"1":{
"text":"Connected"
},
"-1":{
"text":"Firewalled"
}
},
"type":"value"
}
],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"yellow",
"value":null
},
{
"color":"dark-red",
"value":0
},
{
"color":"semi-dark-green",
"value":1
}
]
}
},
"overrides":[
]
},
"gridPos":{
"h":4,
"w":3,
"x":3,
"y":0
},
"id":3,
"options":{
"colorMode":"value",
"graphMode":"none",
"justifyMode":"auto",
"orientation":"auto",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"textMode":"auto"
},
"pluginVersion":"8.5.0",
"targets":[
{
"expr":"qbittorrent_connected - qbittorrent_firewalled",
"format":"time_series",
"instant":true,
"interval":"",
"legendFormat":"Status",
"refId":"A"
}
],
"title":"Bittorrent network",
"transformations":[
],
"type":"stat"
},
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fieldConfig":{
"defaults":{
"mappings":[
{
"options":{
"0":{
"text":"No DHT"
},
"-1":{
"text":"Firewalled"
}
},
"type":"value"
}
],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"yellow",
"value":null
},
{
"color":"dark-red",
"value":0
},
{
"color":"semi-dark-green",
"value":100
}
]
}
},
"overrides":[
]
},
"gridPos":{
"h":4,
"w":3,
"x":6,
"y":0
},
"id":13,
"options":{
"colorMode":"value",
"graphMode":"none",
"justifyMode":"auto",
"orientation":"auto",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"textMode":"auto"
},
"pluginVersion":"8.5.0",
"targets":[
{
"expr":"qbittorrent_dht_nodes",
"instant":true,
"interval":"",
"legendFormat":"DHT nodes",
"refId":"B"
}
],
"title":"DHT nodes",
"transformations":[
],
"type":"stat"
},
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fieldConfig":{
"defaults":{
"mappings":[
],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
}
]
},
"unit":"bytes"
},
"overrides":[
]
},
"gridPos":{
"h":4,
"w":3,
"x":9,
"y":0
},
"id":5,
"options":{
"colorMode":"value",
"graphMode":"none",
"justifyMode":"auto",
"orientation":"auto",
"reduceOptions":{
"calcs":[
"last"
],
"fields":"",
"values":false
},
"textMode":"auto"
},
"pluginVersion":"8.5.0",
"targets":[
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"editorMode":"code",
"expr":"sum by (app) (qbittorrent_dl_info_data_total)",
"instant":false,
"interval":"",
"legendFormat":" ",
"refId":"A"
}
],
"title":"Data downloaded",
"type":"stat"
},
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fieldConfig":{
"defaults":{
"mappings":[
],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
}
]
},
"unit":"bytes"
},
"overrides":[
]
},
"gridPos":{
"h":4,
"w":3,
"x":12,
"y":0
},
"id":6,
"options":{
"colorMode":"value",
"graphMode":"none",
"justifyMode":"auto",
"orientation":"auto",
"reduceOptions":{
"calcs":[
"last"
],
"fields":"",
"values":false
},
"textMode":"auto"
},
"pluginVersion":"8.5.0",
"targets":[
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"editorMode":"code",
"expr":"sum by (app) (qbittorrent_up_info_data_total)",
"instant":false,
"interval":"",
"legendFormat":" ",
"refId":"A"
}
],
"title":"Data uploaded",
"type":"stat"
},
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"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"
},
"pluginVersion":"8.5.0",
"targets":[
{
"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":"{{label_name}}",
"refId":"A"
}
],
"title":"Accumulated ratio",
"type":"stat"
},
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fieldConfig":{
"defaults":{
"decimals":1,
"mappings":[
],
"max":48000000,
"min":0,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"dark-red",
"value":null
},
{
"color":"dark-green",
"value":8000000
}
]
},
"unit":"binBps"
},
"overrides":[
]
},
"gridPos":{
"h":4,
"w":3,
"x":18,
"y":0
},
"id":16,
"options":{
"orientation":"auto",
"reduceOptions":{
"calcs":[
"last"
],
"fields":"",
"values":false
},
"showThresholdLabels":false,
"showThresholdMarkers":true
},
"pluginVersion":"8.5.0",
"targets":[
{
"expr":"rate(qbittorrent_dl_info_data_total[2m])",
"instant":false,
"interval":"",
"legendFormat":"",
"refId":"A"
}
],
"title":"Download speed",
"type":"gauge"
},
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fieldConfig":{
"defaults":{
"decimals":1,
"mappings":[
],
"max":18000000,
"min":0,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"dark-red",
"value":null
},
{
"color":"dark-green",
"value":4000000
}
]
},
"unit":"binBps"
},
"overrides":[
]
},
"gridPos":{
"h":4,
"w":3,
"x":21,
"y":0
},
"id":17,
"options":{
"orientation":"auto",
"reduceOptions":{
"calcs":[
"last"
],
"fields":"",
"values":false
},
"showThresholdLabels":false,
"showThresholdMarkers":true
},
"pluginVersion":"8.5.0",
"targets":[
{
"expr":"rate(qbittorrent_up_info_data_total[2m])",
"hide":false,
"instant":false,
"interval":"",
"legendFormat":"",
"refId":"A"
}
],
"title":"Upload speed",
"type":"gauge"
},
{
"aliasColors":{
},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fill":1,
"fillGradient":0,
"gridPos":{
"h":10,
"w":24,
"x":0,
"y":4
},
"hiddenSeries":false,
"id":15,
"legend":{
"avg":false,
"current":false,
"max":false,
"min":false,
"show":true,
"total":false,
"values":false
},
"lines":true,
"linewidth":1,
"nullPointMode":"null",
"options":{
"alertThreshold":true
},
"percentage":false,
"pluginVersion":"8.5.0",
"pointradius":2,
"points":false,
"renderer":"flot",
"seriesOverrides":[
],
"spaceLength":10,
"stack":false,
"steppedLine":false,
"targets":[
{
"expr":"rate(qbittorrent_dl_info_data_total[2m])",
"interval":"",
"legendFormat":"Download",
"refId":"A"
},
{
"expr":"rate(qbittorrent_up_info_data_total[2m])",
"interval":"",
"legendFormat":"Upload",
"refId":"B"
}
],
"thresholds":[
],
"timeRegions":[
],
"title":"Transfer Rates",
"tooltip":{
"shared":true,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"mode":"time",
"show":true,
"values":[
]
},
"yaxes":[
{
"format":"binBps",
"logBase":1,
"show":true
},
{
"format":"binBps",
"logBase":1,
"show":true
}
],
"yaxis":{
"align":false
}
},
{
"aliasColors":{
},
"bars":true,
"dashLength":10,
"dashes":false,
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fill":1,
"fillGradient":0,
"gridPos":{
"h":10,
"w":14,
"x":0,
"y":14
},
"hiddenSeries":false,
"id":11,
"legend":{
"alignAsTable":true,
"avg":false,
"current":false,
"max":false,
"min":false,
"rightSide":true,
"show":true,
"total":false,
"values":false
},
"lines":false,
"linewidth":0,
"links":[
],
"nullPointMode":"null as zero",
"options":{
"alertThreshold":true
},
"percentage":false,
"pluginVersion":"8.5.0",
"pointradius":2,
"points":false,
"renderer":"flot",
"seriesOverrides":[
],
"spaceLength":10,
"stack":true,
"steppedLine":true,
"targets":[
{
"expr":"sum(qbittorrent_torrents_count{category=~\"${categories}\", status!=\"complete\"}) by (status)",
"interval":"",
"legendFormat":"{{status}}",
"refId":"A"
}
],
"thresholds":[
],
"timeRegions":[
],
"title":"Torrents by status",
"tooltip":{
"shared":true,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"mode":"time",
"show":true,
"values":[
]
},
"yaxes":[
{
"format":"short",
"logBase":1,
"show":true
},
{
"format":"short",
"logBase":1,
"show":true
}
],
"yaxis":{
"align":false
}
},
{
"datasource":{
"type":"prometheus",
"uid":"PBFA97CFB590B2093"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"palette-classic"
},
"custom":{
"hideFrom":{
"legend":false,
"tooltip":false,
"viz":false
}
},
"mappings":[
]
},
"overrides":[
]
},
"gridPos":{
"h":10,
"w":10,
"x":14,
"y":14
},
"id":12,
"links":[
],
"options":{
"legend":{
"displayMode":"list",
"placement":"bottom"
},
"pieType":"pie",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"tooltip":{
"mode":"single",
"sort":"none"
}
},
"pluginVersion":"7.2.0",
"targets":[
{
"expr":"sum(qbittorrent_torrents_count{category=~\"${categories}\",status!=\"complete\"}) by (category)",
"interval":"",
"legendFormat":"{{category}}",
"refId":"A"
}
],
"title":"Torrents by categories",
"type":"piechart"
}
],
"refresh":"10s",
"schemaVersion":36,
"style":"dark",
"tags":[
],
"templating":{
"list":[
{
"allValue":".*",
"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":[
],
"query":{
"query":"label_values(qbittorrent_torrents_count, category)",
"refId":"Prometheus-categories-Variable-Query"
},
"refresh":1,
"regex":"",
"skipUrlSync":false,
"sort":0,
"tagValuesQuery":"",
"tagsQuery":"",
"type":"query",
"useTags":false
}
]
},
"time":{
"from":"now-1h",
"to":"now"
},
"timepicker":{
},
"timezone":"",
"title":"Qbittorrent",
"uid":"eKyTETFMk",
"version":1,
"weekStart":""
}