diff --git a/data/flux-dashboard-alt.json b/data/flux-dashboard-alt.json new file mode 100644 index 00000000..1ebcd30e --- /dev/null +++ b/data/flux-dashboard-alt.json @@ -0,0 +1,3513 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "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" + } + ] + }, + "description": "Dashboard for Varken using InfluxDB v2 and Flux", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 11, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e5a00d", + "value": null + }, + { + "color": "semi-dark-blue", + "value": 5 + }, + { + "color": "semi-dark-orange", + "value": 10 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 0, + "y": 0 + }, + "id": 19, + "links": [ + { + "targetBlank": true, + "title": "Tautulli", + "url": "${Tautulli}" + } + ], + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"direct_streams\")\r\n |> filter(fn: (r) => r.type == \"current_stream_stats\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "title": "Direct Stream", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e5a00d", + "value": null + }, + { + "color": "semi-dark-orange", + "value": 5 + }, + { + "color": "semi-dark-red", + "value": 10 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 2, + "y": 0 + }, + "id": 17, + "links": [], + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"transcode_streams\")\r\n |> filter(fn: (r) => r.type == \"current_stream_stats\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "title": "Transocde Streams", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e5a00d", + "value": null + }, + { + "color": "semi-dark-blue", + "value": 5 + }, + { + "color": "semi-dark-orange", + "value": 10 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 4, + "y": 0 + }, + "id": 18, + "links": [], + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"direct_play_streams\")\r\n |> filter(fn: (r) => r.type == \"current_stream_stats\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "title": "Direct Play Streams", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "a79f2ea6-d814-4331-8e80-3abeff03cae5" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 6, + "y": 0 + }, + "id": 55, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "a79f2ea6-d814-4331-8e80-3abeff03cae5" + }, + "editorMode": "builder", + "expr": "host_cpu_util", + "instant": false, + "range": true, + "refId": "A" + } + ], + "title": "CPU Usage", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "a79f2ea6-d814-4331-8e80-3abeff03cae5" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 9, + "y": 0 + }, + "id": 56, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "a79f2ea6-d814-4331-8e80-3abeff03cae5" + }, + "editorMode": "builder", + "expr": "host_mem_util", + "instant": false, + "range": true, + "refId": "A" + } + ], + "title": "RAM Usage", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "a79f2ea6-d814-4331-8e80-3abeff03cae5" + }, + "description": "", + "fieldConfig": { + "defaults": { + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(245, 54, 54, 0.9)", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 1 + }, + { + "color": "rgba(50, 172, 45, 0.97)", + "value": 3 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 12, + "y": 0 + }, + "hideTimeOverride": true, + "id": 57, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "titleSize": 1 + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "a79f2ea6-d814-4331-8e80-3abeff03cae5" + }, + "editorMode": "code", + "expr": "avg(time() - node_boot_time_seconds{instance=~\"$server\"})", + "format": "time_series", + "hide": false, + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A", + "step": 40 + } + ], + "title": "Uptime", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "orange", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 15, + "y": 0 + }, + "hideTimeOverride": true, + "id": 28, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_field\"] == \"total\")\r\n |> filter(fn: (r) => r.section_name == \"${movieslibrary}\")\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"movie\")\r\n |> filter(fn: (r) => r[\"server\"] == \"1\")\r\n |> yield(name: \"last\")", + "refId": "A" + } + ], + "title": "Movies", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 18, + "y": 0 + }, + "hideTimeOverride": true, + "id": 29, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"total\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"show\")\r\n |> filter(fn: (r) => r[\"section_name\"] == \"${tvlibrary}\")\r\n |> filter(fn: (r) => r[\"server\"] == \"1\")\r\n |> yield(name: \"last\")", + "refId": "A" + } + ], + "timeFrom": "3630s", + "title": "TV Shows", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-blue", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 0 + }, + "hideTimeOverride": true, + "id": 36, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"total\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"show\")\r\n |> filter(fn: (r) => r[\"section_name\"] == \"${tv4klibrary}\")\r\n |> filter(fn: (r) => r[\"server\"] == \"1\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")", + "refId": "A" + } + ], + "timeFrom": "24h", + "title": "4K TV Shows", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#e5a00d", + "value": null + }, + { + "color": "semi-dark-blue", + "value": 5 + }, + { + "color": "semi-dark-orange", + "value": 10 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 6, + "x": 0, + "y": 3 + }, + "id": 16, + "links": [], + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"stream_count\")\r\n |> filter(fn: (r) => r.type == \"current_stream_stats\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "title": "Total Streams", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "orange", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 15, + "y": 3 + }, + "hideTimeOverride": true, + "id": 33, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_field\"] == \"total\")\r\n |> filter(fn: (r) => r.section_name == \"${movies4klibrary}\")\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"movie\")\r\n |> filter(fn: (r) => r[\"server\"] == \"1\")\r\n |> yield(name: \"last\")", + "refId": "A" + } + ], + "title": "4K Movies", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 18, + "y": 3 + }, + "hideTimeOverride": true, + "id": 30, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"seasons\")\r\n |> filter(fn: (r) => r[\"section_name\"] == \"${tvlibrary}\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"show\")\r\n |> filter(fn: (r) => r[\"server\"] == \"1\")\r\n |> yield(name: \"last\")", + "refId": "A" + } + ], + "timeFrom": "3630s", + "title": "TV Seasons", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-blue", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 3 + }, + "hideTimeOverride": true, + "id": 34, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"seasons\")\r\n |> filter(fn: (r) => r[\"section_name\"] == \"${tv4klibrary}\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"show\")\r\n |> filter(fn: (r) => r[\"server\"] == \"1\")\r\n |> yield(name: \"last\")", + "refId": "A" + } + ], + "title": "4K TV Seasons", + "type": "stat" + }, + { + "columns": [], + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "In this kanban: the total disk, usage, available, and usage rate are consistent with the values of the Size, Used, Avail, and Use% columns of the df command, and the value of Use% will be rounded to one decimal place, which will be more accurate .\n\nNote: The Use% algorithm in df is: (size-free) * 100 / (avail + (size-free)), the result is divisible by this value, non-divisible by this value is +1, and the unit of the result is %.\nRefer to the df command source code:", + "fontSize": "80%", + "gridPos": { + "h": 7, + "w": 9, + "x": 6, + "y": 5 + }, + "id": 54, + "links": [ + { + "targetBlank": true, + "title": "https://github.com/coreutils/coreutils/blob/master/src/df.c", + "url": "https://github.com/coreutils/coreutils/blob/master/src/df.c" + } + ], + "scroll": true, + "showHeader": true, + "sort": { + "col": 6, + "desc": false + }, + "styles": [ + { + "$$hashKey": "object:307", + "alias": "Mounted on", + "align": "auto", + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "mountpoint", + "thresholds": [ + "" + ], + "type": "string", + "unit": "bytes" + }, + { + "$$hashKey": "object:308", + "alias": "Avail", + "align": "auto", + "colorMode": "value", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 1, + "mappingType": 1, + "pattern": "Value #A", + "thresholds": [ + "10000000000", + "20000000000" + ], + "type": "number", + "unit": "bytes" + }, + { + "$$hashKey": "object:309", + "alias": "Used", + "align": "auto", + "colorMode": "cell", + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 1, + "mappingType": 1, + "pattern": "Value #B", + "thresholds": [ + "70", + "85" + ], + "type": "number", + "unit": "percent" + }, + { + "$$hashKey": "object:310", + "alias": "Size", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 0, + "link": false, + "mappingType": 1, + "pattern": "Value #C", + "thresholds": [], + "type": "number", + "unit": "bytes" + }, + { + "$$hashKey": "object:311", + "alias": "Filesystem", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "link": false, + "mappingType": 1, + "pattern": "fstype", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:312", + "alias": "Device", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "link": false, + "mappingType": 1, + "pattern": "device", + "preserveFormat": false, + "sanitize": false, + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:313", + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "preserveFormat": true, + "sanitize": false, + "thresholds": [], + "type": "hidden", + "unit": "short" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "node_filesystem_size_bytes{instance=~\"$server\", fstype=~\"ext.*|xfs\", mountpoint!~\".*pod.*\"} - 0", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "总量", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "node_filesystem_avail_bytes{instance=~\"$server\", fstype=~\"ext.*|xfs\", mountpoint!~\".*pod.*\"} - 0", + "format": "table", + "hide": false, + "instant": true, + "interval": "10s", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "(node_filesystem_size_bytes{instance=~'$server',fstype=~\"ext.*|xfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~'$server',fstype=~\"ext.*|xfs\",mountpoint !~\".*pod.*\"}) *100/(node_filesystem_avail_bytes {instance=~'$server',fstype=~\"ext.*|xfs\",mountpoint !~\".*pod.*\"}+(node_filesystem_size_bytes{instance=~'$server',fstype=~\"ext.*|xfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~'$server',fstype=~\"ext.*|xfs\",mountpoint !~\".*pod.*\"}))", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "refId": "B" + } + ], + "title": "【$show_hostname】:Disk Space Used Basic(EXT?/XFS)", + "transform": "table", + "type": "table-old" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "no users online", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Player State" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "dark-green", + "index": 0, + "text": "Playing" + }, + "1": { + "color": "dark-blue", + "index": 1, + "text": "Paused" + }, + "3": { + "color": "dark-orange", + "index": 2, + "text": "Buffering" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "basic", + "type": "color-background" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 0, + "y": 6 + }, + "hideTimeOverride": true, + "id": 42, + "links": [ + { + "targetBlank": true, + "title": "Tautulli", + "url": "${Tautulli}" + } + ], + "maxDataPoints": 796, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> filter(fn: (r) => r.type == \"Session\")\r\n |> group(columns: [\"friendly_name\", \"title\", \"quality\", \"video_decision\", \"quality_profile\", \"platform\", \"product_version\", \"location\", \"player_state\"], mode: \"by\")\r\n |> distinct()\r\n |> keep(columns: [\"_time\", \"_value\", \"friendly_name\", \"title\", \"quality\", \"video_decision\", \"quality_profile\", \"platform\", \"product_version\", \"location\", \"player_state\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "timeFrom": "33s", + "title": "Users Online", + "transformations": [ + { + "id": "labelsToFields", + "options": {} + }, + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true + }, + "indexByName": {}, + "renameByName": { + "_value": "", + "friendly_name": "User", + "location": "Location", + "platform": "Device", + "player_state": "Player State", + "product_version": "Version", + "quality": "Quality", + "quality_profile": "Limits", + "title": "Media", + "video_decision": "Decision" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "dark-green", + "mode": "fixed" + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 15, + "y": 6 + }, + "id": 53, + "links": [], + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum(library_storage_total{job=~\"$job\", instance=~\"$instance\", server=~\"$server\"})", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{library}}", + "range": true, + "refId": "A" + } + ], + "title": "Total Library Size", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 18, + "y": 6 + }, + "hideTimeOverride": true, + "id": 31, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"episodes\")\r\n |> filter(fn: (r) => r[\"section_name\"] == \"${tvlibrary}\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"show\")\r\n |> filter(fn: (r) => r[\"server\"] == \"1\")\r\n |> yield(name: \"last\")", + "refId": "A" + } + ], + "timeFrom": "3630s", + "title": "TV Episodes", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 6 + }, + "hideTimeOverride": true, + "id": 35, + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"episodes\")\r\n |> filter(fn: (r) => r[\"section_name\"] == \"${tv4klibrary}\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"show\")\r\n |> filter(fn: (r) => r[\"server\"] == \"1\")\r\n |> yield(name: \"last\")\r\n", + "refId": "A" + } + ], + "title": "4K TV Episodes", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "no movies in queue", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "T" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "Torrent" + }, + "1": { + "index": 1, + "text": "Usenet" + } + }, + "type": "value" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 9, + "x": 15, + "y": 9 + }, + "hideTimeOverride": true, + "id": 37, + "interval": "32s", + "links": [ + { + "targetBlank": true, + "title": "Radarr Activity", + "url": "${Radarr}/activity/queue" + } + ], + "maxDataPoints": 998, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Radarr\")\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> filter(fn: (r) => r.type == \"Queue\")\r\n |> group(columns: [\"name\", \"protocol_id\", \"quality\"], mode: \"by\")\r\n |> distinct()\r\n |> keep(columns: [\"_time\", \"_value\", \"name\", \"protocol_id\", \"quality\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A" + } + ], + "timeFrom": "330s", + "title": "Movies in Queue", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "airsUTC", + "downloaded", + "epname", + "sxe", + "name", + "protocol_id", + "quality" + ], + "mode": "columns" + } + }, + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true, + "airsUTC": true, + "epname": true, + "sxe": false + }, + "indexByName": { + "_value": 0, + "airsUTC": 1, + "downloaded": 2, + "epname": 5, + "name": 3, + "sxe": 4 + }, + "renameByName": { + "_value": "", + "downloaded": "DL", + "epname": "", + "name": "Name", + "protocol_id": "T", + "quality": "Quality", + "sxe": "S/E" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-green", + "value": null + }, + { + "color": "dark-orange", + "value": 0.5 + }, + { + "color": "dark-red", + "value": 5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 0, + "y": 12 + }, + "hideTimeOverride": true, + "id": 20, + "links": [ + { + "targetBlank": true, + "title": "Ombi", + "url": "${Ombi}" + } + ], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"pending\")\r\n |> filter(fn: (r) => r.type == \"Request_Counts\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "timeFrom": "330s", + "title": "Req. Pending", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-red", + "value": null + }, + { + "color": "dark-orange", + "value": 0.5 + }, + { + "color": "dark-green", + "value": 5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 2, + "y": 12 + }, + "hideTimeOverride": true, + "id": 21, + "links": [ + { + "targetBlank": true, + "title": "Ombi", + "url": "${Ombi}" + } + ], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"approved\")\r\n |> filter(fn: (r) => r.type == \"Request_Counts\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "timeFrom": "330s", + "title": "Req. Approved", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-red", + "value": null + }, + { + "color": "dark-orange", + "value": 0.5 + }, + { + "color": "dark-green", + "value": 5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 2, + "x": 4, + "y": 12 + }, + "hideTimeOverride": true, + "id": 22, + "links": [ + { + "targetBlank": true, + "title": "Ombi", + "url": "${Ombi}" + } + ], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"available\")\r\n |> filter(fn: (r) => r.type == \"Request_Counts\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "timeFrom": "330s", + "title": "Req. Completed", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "b862467a-acfb-48d6-a0ca-c7cc3afae4b3" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#24c3ff", + "value": null + }, + { + "color": "#ef843c", + "value": 2 + }, + { + "color": "#890f02", + "value": 3 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 9, + "x": 6, + "y": 12 + }, + "hideTimeOverride": true, + "id": 58, + "interval": "", + "links": [], + "maxDataPoints": 1, + "options": { + "basemap": { + "name": "Basemap", + "type": "default" + }, + "controls": { + "mouseWheelZoom": false, + "showAttribution": true, + "showDebug": false, + "showMeasure": false, + "showScale": false, + "showZoom": true + }, + "layers": [ + { + "config": { + "showLegend": true, + "style": { + "color": { + "fixed": "dark-green" + }, + "opacity": 0.4, + "rotation": { + "fixed": 0, + "max": 360, + "min": -360, + "mode": "mod" + }, + "size": { + "fixed": 5, + "max": 2, + "min": 2 + }, + "symbol": { + "fixed": "img/icons/marker/circle.svg", + "mode": "fixed" + }, + "textConfig": { + "fontSize": 12, + "offsetX": 0, + "offsetY": 0, + "textAlign": "center", + "textBaseline": "middle" + } + } + }, + "location": { + "mode": "auto" + }, + "name": "Layer 0", + "tooltip": true, + "type": "markers" + } + ], + "tooltip": { + "mode": "details" + }, + "view": { + "allLayers": true, + "id": "coords", + "lat": 59.057314, + "lon": 14.002579, + "zoom": 6 + } + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "alias": "$tag_region_code", + "datasource": { + "type": "influxdb", + "uid": "b862467a-acfb-48d6-a0ca-c7cc3afae4b3" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "latitude" + ], + "type": "tag" + }, + { + "params": [ + "longitude" + ], + "type": "tag" + }, + { + "params": [ + "full_location" + ], + "type": "tag" + }, + { + "params": [ + "name" + ], + "type": "tag" + } + ], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + }, + { + "params": [], + "type": "count" + }, + { + "params": [ + "metric" + ], + "type": "alias" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Session" + } + ] + } + ], + "timeFrom": "33s", + "transformations": [ + { + "id": "reduce", + "options": { + "reducers": [ + "lastNotNull" + ] + } + } + ], + "type": "geomap" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 3, + "x": 0, + "y": 15 + }, + "hideTimeOverride": false, + "id": 4, + "maxDataPoints": 3, + "options": { + "legend": { + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "values": [ + "value" + ] + }, + "pieType": "donut", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> filter(fn: (r) => r.type == \"Session\")\r\n |> group(columns: [\"device_type\"], mode: \"by\")\r\n |> distinct()\r\n |> count()\r\n |> keep(columns: [\"_time\", \"_value\", \"device_type\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A" + } + ], + "timeFrom": "1w", + "title": "Device Types", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "device_type" + ], + "valueLabel": "device_type" + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 3, + "x": 3, + "y": 15 + }, + "hideTimeOverride": false, + "id": 5, + "maxDataPoints": 3, + "options": { + "displayLabels": [], + "legend": { + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "values": [ + "value" + ] + }, + "pieType": "donut", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "multi", + "sort": "asc" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> filter(fn: (r) => r.type == \"Session\")\r\n |> group(columns: [\"video_decision\"], mode: \"by\")\r\n |> distinct()\r\n |> count()\r\n |> keep(columns: [\"_time\", \"_value\", \"video_decision\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A" + } + ], + "timeFrom": "1w", + "title": "Stream Types", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "video_decision" + ], + "mode": "columns", + "valueLabel": "video_decision" + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "no tv shows in queue", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "T" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "Torrent" + }, + "1": { + "index": 1, + "text": "Usenet" + } + }, + "type": "value" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 9, + "x": 15, + "y": 16 + }, + "hideTimeOverride": true, + "id": 38, + "interval": "32s", + "links": [ + { + "targetBlank": true, + "title": "Radarr Activity", + "url": "${Radarr}/activity/queue" + } + ], + "maxDataPoints": 856, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Sonarr\")\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> filter(fn: (r) => r.type == \"Queue\")\r\n |> group(columns: [\"protocol_id\", \"sxe\", \"name\"], mode: \"by\")\r\n |> distinct()\r\n |> keep(columns: [\"_time\", \"_value\", \"protocol_id\", \"sxe\", \"name\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A" + } + ], + "timeFrom": "330s", + "title": "TV Shows in Queue", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "airsUTC", + "downloaded", + "epname", + "sxe", + "name", + "protocol_id", + "quality" + ], + "mode": "columns" + } + }, + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true, + "airsUTC": true, + "epname": true, + "sxe": false + }, + "indexByName": { + "_value": 0, + "name": 1, + "protocol_id": 2, + "sxe": 3 + }, + "renameByName": { + "_value": "", + "downloaded": "DL", + "epname": "", + "name": "Name", + "protocol_id": "T", + "quality": "Quality", + "sxe": "S/E" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "no missing show episodes", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "DL" + }, + "properties": [ + { + "id": "custom.width", + "value": 75 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": "No" + }, + "1": { + "color": "dark-green", + "index": 1, + "text": "Yes" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "basic", + "type": "color-background" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 3, + "x": 0, + "y": 22 + }, + "hideTimeOverride": true, + "id": 11, + "links": [ + { + "targetBlank": true, + "title": "Sonarr Missing", + "url": "${Sonarr}/wanted/missing" + } + ], + "maxDataPoints": 440, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Sonarr\")\r\n |> filter(fn: (r) => r[\"type\"] == \"Missing\")\r\n |> group(columns: [\"server\", \"sxe\", \"name\"])\r\n |> distinct()\r\n |> yield(name: \"distinct\")", + "refId": "A" + } + ], + "timeFrom": "330s", + "title": "Missing TV Shows (Last 7 Days)", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "airsUTC", + "downloaded", + "epname", + "sxe", + "name", + "server" + ], + "mode": "columns" + } + }, + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true, + "airsUTC": true, + "downloaded": true, + "epname": true, + "sxe": false + }, + "indexByName": { + "_value": 0, + "name": 1, + "server": 2, + "sxe": 3 + }, + "renameByName": { + "_value": "", + "downloaded": "DL", + "epname": "", + "name": "TV Show", + "server": "Server ID", + "sxe": "S/E" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "links": [ + { + "targetBlank": true, + "title": "View on Radarr", + "url": "${Radarr.raw}/movie/${__data.fields.titleSlug}" + } + ], + "mappings": [], + "noValue": "no missing movies", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "titleSlug" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 3, + "x": 3, + "y": 22 + }, + "hideTimeOverride": true, + "id": 10, + "links": [ + { + "title": "View on Radarr", + "url": "${Radarr}/wanted/missing" + } + ], + "maxDataPoints": 295, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "hide": false, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Radarr\")\r\n |> filter(fn: (r) => r[\"Missing_Available\"] == \"0\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"hash\")\r\n |> group(columns: [\"name\", \"titleSlug\"])\r\n |> distinct()\r\n |> yield(name: \"distinct\")", + "refId": "A" + } + ], + "timeFrom": "330s", + "title": "Missing Available Movies", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "name", + "titleSlug" + ], + "mode": "columns" + } + }, + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true, + "titleSlug": false + }, + "indexByName": {}, + "renameByName": { + "name": "Name" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "noValue": "no shows airing today", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "DL" + }, + "properties": [ + { + "id": "custom.width", + "value": 75 + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": "No" + }, + "1": { + "color": "dark-green", + "index": 1, + "text": "Yes" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "mode": "basic", + "type": "color-background" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 9, + "x": 15, + "y": 23 + }, + "hideTimeOverride": true, + "id": 2, + "interval": "32s", + "links": [ + { + "targetBlank": true, + "title": "Sonarr Release Calendar", + "url": "${Sonarr}/calendar" + } + ], + "maxDataPoints": 475, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Sonarr\")\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> filter(fn: (r) => r.type == \"Future\")\r\n |> group(columns: [\"downloaded\", \"name\", \"sxe\"], mode: \"by\")\r\n |> distinct()\r\n |> keep(columns: [\"_time\", \"_value\", \"downloaded\", \"name\", \"sxe\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A" + } + ], + "timeFrom": "24h", + "title": "TV Shows on Today (Sonarr)", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "airsUTC", + "downloaded", + "epname", + "sxe", + "name" + ], + "mode": "columns" + } + }, + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true, + "airsUTC": true, + "epname": true, + "sxe": false + }, + "indexByName": { + "_value": 0, + "airsUTC": 1, + "downloaded": 2, + "epname": 5, + "name": 3, + "sxe": 4 + }, + "renameByName": { + "_value": "", + "downloaded": "DL", + "epname": "", + "name": "TV Show", + "sxe": "S/E" + } + } + } + ], + "type": "table" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 48, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 80, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1 + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "_time" + }, + "properties": [ + { + "id": "unit", + "value": "h" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 14, + "x": 0, + "y": 63 + }, + "hideTimeOverride": true, + "id": 40, + "maxDataPoints": 858, + "options": { + "bucketOffset": 0, + "bucketSize": 1, + "combine": false, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + } + }, + "pluginVersion": "9.2.6", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> group(columns: [\"_time\"])\r\n |> aggregateWindow(every: v.windowPeriod, fn: distinct, createEmpty: false)\r\n |> count()\r\n |> fill(value: 0)\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "timeFrom": "24h", + "title": "Server Popularity", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "mode": "columns" + } + }, + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_time": false, + "_value": false + }, + "indexByName": { + "_time": 1, + "_value": 0 + }, + "renameByName": { + "_time": "" + } + } + }, + { + "id": "groupBy", + "options": { + "fields": { + "_time": { + "aggregations": [], + "operation": "groupby" + }, + "_value": { + "aggregations": [ + "sum" + ], + "operation": "aggregate" + } + } + } + } + ], + "type": "histogram" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 10, + "x": 14, + "y": 63 + }, + "hideTimeOverride": true, + "id": 44, + "maxDataPoints": 856, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> filter(fn: (r) => r.type == \"Requests\")\r\n |> filter(fn: (r) => r.status != 0)\r\n |> filter(fn: (r) => r.status != 2)\r\n |> group(columns: [\"title\", \"requested_date\", \"requested_user\", \"request_type\", \"status\"], mode: \"by\")\r\n |> distinct()\r\n |> keep(columns: [\"_time\", \"_value\", \"title\", \"requested_date\", \"requested_user\", \"request_type\", \"status\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A" + } + ], + "timeFrom": "330s", + "title": "Ombi Requests Pending", + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "CNdQvAkVz" + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 71 + }, + "id": 50, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "# THIS DASHBOARD IS NOT COMPATIBLE WITH InfluxQL!\n\n## Notes\nThis dashboard is a WIP and is not 100% complete. It relies on a specific build of Varken using a PR for InfluxDB v2 Support. This dashboard is for dev testing InfluxDB v2 support and updated to support Grafana v9+. Not all features from the v1.6.x of Varken's dashboard are supported.\n\nMost panels are in working order with minor issues. Panels that are still WIP are collapsed in a row at the bottom. If you are familiar with Flux queries feel free to submit a PR to update the dev dashboard! :)\n\n## How to use\nUpdate the variables in this dashboard's settings to reflect your environment. Then save it!", + "mode": "markdown" + }, + "pluginVersion": "10.0.1", + "type": "text" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "yellow" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 2 + }, + { + "color": "#8F3BB8", + "value": 3 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 10, + "x": 0, + "y": 78 + }, + "hideTimeOverride": true, + "id": 9, + "maxDataPoints": 1, + "options": { + "basemap": { + "name": "Basemap", + "type": "default" + }, + "controls": { + "mouseWheelZoom": false, + "showAttribution": true, + "showDebug": false, + "showMeasure": false, + "showScale": false, + "showZoom": true + }, + "layers": [ + { + "config": { + "showLegend": true, + "style": { + "color": { + "fixed": "dark-green" + }, + "opacity": 0.4, + "rotation": { + "fixed": 0, + "max": 360, + "min": -360, + "mode": "mod" + }, + "size": { + "fixed": 5, + "max": 4, + "min": 2 + }, + "symbol": { + "fixed": "img/icons/marker/circle.svg", + "mode": "fixed" + }, + "textConfig": { + "fontSize": 12, + "offsetX": 0, + "offsetY": 0, + "textAlign": "center", + "textBaseline": "middle" + } + } + }, + "location": { + "mode": "auto" + }, + "name": "Layer 0", + "tooltip": true, + "type": "markers" + } + ], + "tooltip": { + "mode": "details" + }, + "view": { + "allLayers": true, + "id": "coords", + "lat": 59.401546, + "lon": 14.293036, + "zoom": 5 + } + }, + "pluginVersion": "10.0.1", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DB}" + }, + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"Tautulli\")\r\n |> filter(fn: (r) => r._field == \"hash\")\r\n |> filter(fn: (r) => r.type == \"Session\")\r\n |> group(columns: [\"latitude\", \"longitude\", \"full_location\", \"name\"], mode: \"by\")\r\n |> distinct()\r\n |> count()\r\n |> keep(columns: [\"_time\", \"_value\", \"latitude\", \"longitude\", \"full_location\", \"name\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A" + } + ], + "timeFrom": "33s", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "full_location", + "latitude", + "longitude", + "username" + ], + "mode": "columns" + } + }, + { + "id": "calculateField", + "options": { + "alias": "metric", + "mode": "reduceRow", + "reduce": { + "include": [], + "reducer": "sum" + } + } + }, + { + "id": "merge", + "options": {} + }, + { + "id": "reduce", + "options": { + "reducers": [ + "lastNotNull" + ] + } + } + ], + "type": "geomap" + } + ], + "title": "WIP Panels", + "type": "row" + } + ], + "refresh": "", + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "InfluxDB", + "value": "InfluxDB" + }, + "description": "Influx Data Source with Varken bucket", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "DB", + "options": [], + "query": "influxdb", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "current": { + "selected": false, + "text": "https://movies.yourdomain.com:7878", + "value": "https://movies.yourdomain.com:7878" + }, + "description": "URL for Radarr", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "Radarr", + "options": [ + { + "selected": true, + "text": "https://movies.yourdomain.com:7878", + "value": "https://movies.yourdomain.com:7878" + } + ], + "query": "https://movies.yourdomain.com:7878", + "queryValue": "https://movies.yourdomain.com:7878", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": false, + "text": "https://tv.yourdomain.com:7878", + "value": "https://tv.yourdomain.com:7878" + }, + "description": "URL for Sonarr", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "Sonarr", + "options": [ + { + "selected": true, + "text": "https://tv.yourdomain.com:7878", + "value": "https://tv.yourdomain.com:7878" + } + ], + "query": "https://tv.yourdomain.com:7878", + "queryValue": "https://tv.yourdomain.com:7878", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": false, + "text": "https://tautulli.yourdomain.com:8181", + "value": "https://tautulli.yourdomain.com:8181" + }, + "description": "URL for Tautulli", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "Tautulli", + "options": [ + { + "selected": true, + "text": "https://tautulli.yourdomain.com:8181", + "value": "https://tautulli.yourdomain.com:8181" + } + ], + "query": "https://tautulli.yourdomain.com:8181", + "queryValue": "https://tautulli.yourdomain.com:8181", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": false, + "text": "https://ombi.yourdomain.com:5000", + "value": "https://ombi.yourdomain.com:5000" + }, + "description": "URL for Ombi", + "hide": 2, + "includeAll": false, + "multi": false, + "name": "Ombi", + "options": [ + { + "selected": true, + "text": "https://ombi.yourdomain.com:5000", + "value": "https://ombi.yourdomain.com:5000" + } + ], + "query": "https://ombi.yourdomain.com:5000", + "queryValue": "https://ombi.yourdomain.com:5000", + "skipUrlSync": false, + "type": "custom" + }, + { + "hide": 2, + "label": "Movies Library Name", + "name": "movieslibrary", + "query": "Movies", + "skipUrlSync": false, + "type": "constant" + }, + { + "hide": 2, + "label": "TV Show Library Name", + "name": "tvlibrary", + "query": "TV Shows", + "skipUrlSync": false, + "type": "constant" + }, + { + "hide": 2, + "label": "4k Movie Library Name", + "name": "movies4klibrary", + "query": "Movies 4K", + "skipUrlSync": false, + "type": "constant" + }, + { + "hide": 2, + "label": "4k TV Library Name", + "name": "tv4klibrary", + "query": "TV Shows 4K", + "skipUrlSync": false, + "type": "constant" + }, + { + "allValue": ".+", + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\"},job)", + "hide": 0, + "includeAll": true, + "label": "job", + "multi": true, + "name": "job", + "options": [], + "query": { + "query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\"},job)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "type": "query" + }, + { + "allValue": ".+", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "a79f2ea6-d814-4331-8e80-3abeff03cae5" + }, + "definition": "label_values(plays_total{job=~\"$job\"},instance)", + "hide": 0, + "includeAll": true, + "label": "instance", + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(plays_total{job=~\"$job\"},instance)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "type": "query" + }, + { + "allValue": ".+", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(plays_total{job=~\"$job\", instance=~\"$instance\"},server)", + "hide": 0, + "includeAll": true, + "label": "server", + "multi": true, + "name": "server", + "options": [], + "query": { + "query": "label_values(plays_total{job=~\"$job\", instance=~\"$instance\"},server)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "Prometheus", + "value": "Prometheus" + }, + "hide": 0, + "includeAll": false, + "label": "Data Source", + "multi": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + } + ] + }, + "time": { + "from": "now-12h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Varken Alt Dashboard", + "uid": "b8e748ee-034f-43f4-8c1e-d688646d2f8d", + "version": 3, + "weekStart": "" +}