From cde3e8ad6c78e248208dee624eb08aed35123e17 Mon Sep 17 00:00:00 2001 From: Zak Saunders Date: Sat, 15 Apr 2023 06:14:21 +0100 Subject: [PATCH] New: Get Libraries for Dashboard Auto Variables --- Varken.py | 3 + dashboard_ombi.json | 5099 ------------------------ dashboard_overseerr.json | 5093 ----------------------- grafana_dashboards/flux_overseerr.json | 4854 ++++++++++++++++++++++ varken/iniparser.py | 14 +- varken/structures.py | 3 + varken/tautulli.py | 31 + 7 files changed, 4902 insertions(+), 10195 deletions(-) delete mode 100644 dashboard_ombi.json delete mode 100644 dashboard_overseerr.json create mode 100644 grafana_dashboards/flux_overseerr.json diff --git a/Varken.py b/Varken.py index 95eba6db..bdcf2cf6 100644 --- a/Varken.py +++ b/Varken.py @@ -112,6 +112,9 @@ def thread(job, **kwargs): schedule.every(12).to(24).hours.do(thread, GEOIPHANDLER.update) for server in CONFIG.tautulli_servers: TAUTULLI = TautulliAPI(server, DBMANAGER, GEOIPHANDLER) + if server.get_libraries: + at_time = schedule.every(server.get_libraries_run_days).days + at_time.do(thread, TAUTULLI.get_libraries).tag("tautulli-{}-get_libraries".format(server.id)) if server.get_activity: at_time = schedule.every(server.get_activity_run_seconds).seconds at_time.do(thread, TAUTULLI.get_activity).tag("tautulli-{}-get_activity".format(server.id)) diff --git a/dashboard_ombi.json b/dashboard_ombi.json deleted file mode 100644 index dba2d205..00000000 --- a/dashboard_ombi.json +++ /dev/null @@ -1,5099 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_INFLUXDB_VARKEN", - "label": "", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "panel", - "id": "geomap", - "name": "Geomap", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "9.4.7" - }, - { - "type": "panel", - "id": "heatmap", - "name": "Heatmap", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - }, - { - "type": "panel", - "id": "table-old", - "name": "Table (old)", - "version": "" - } - ], - "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" - } - ] - }, - "description": "", - "editable": true, - "fiscalYearStartMonth": 0, - "gnetId": 9579, - "graphTooltip": 0, - "id": null, - "links": [], - "liveNow": false, - "panels": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "Streaming Brain Estimate", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Kbits" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 1, - "y": 0 - }, - "hideTimeOverride": true, - "id": 21, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total_bandwidth" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "30s", - "title": "Total BW", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "Streaming Brain Estimate", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Kbits" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 3, - "y": 0 - }, - "hideTimeOverride": true, - "id": 20, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "lan_bandwidth" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "30s", - "title": "LAN BW", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "Streaming Brain Estimate", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Kbits" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 5, - "y": 0 - }, - "hideTimeOverride": true, - "id": 19, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wan_bandwidth" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "30s", - "title": "WAN BW", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "rgba(212, 74, 58, 0.58)", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 0 - }, - "hideTimeOverride": true, - "id": 38, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Ombi", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "pending" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Request_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Req. Pending", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(212, 74, 58, 0.58)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#299c46", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 0 - }, - "hideTimeOverride": true, - "id": 48, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Ombi", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "approved" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Request_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Requests Approved", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(212, 74, 58, 0.58)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#299c46", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 0 - }, - "hideTimeOverride": true, - "id": 49, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Ombi", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "available" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Request_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Requests Completed", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 14, - "y": 0 - }, - "hideTimeOverride": true, - "id": 34, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "diff" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT distinct(\"total\") FROM \"Tautulli\" WHERE (\"type\" = 'library_stats' AND \"section_name\" =~ /^$movieslibrary$/) AND $timeFilter", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$movieslibrary$/" - } - ] - } - ], - "timeFrom": "24h", - "title": "Recently Added Movies", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 16, - "y": 0 - }, - "hideTimeOverride": true, - "id": 17, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$movieslibrary$/" - } - ] - } - ], - "timeFrom": "3630s", - "title": "Movies", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 18, - "y": 0 - }, - "hideTimeOverride": true, - "id": 47, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(\"total\") FROM \"Tautulli\" WHERE (\"type\" = 'library_stats' AND \"section_name\" =~ /^$tvlibrary$/) AND $timeFilter", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$tvlibrary$/" - } - ] - } - ], - "timeFrom": "3630s", - "title": "TV Shows", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 20, - "y": 0 - }, - "hideTimeOverride": true, - "id": 14, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "seasons" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$tvlibrary$/" - } - ] - } - ], - "timeFrom": "3630s", - "title": "TV Seasons", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 22, - "y": 0 - }, - "hideTimeOverride": true, - "id": 13, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "episodes" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$tvlibrary$/" - } - ] - } - ], - "timeFrom": "3630s", - "title": "TV Episodes", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 0, - "y": 2 - }, - "hideTimeOverride": true, - "id": 22, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "stream_count" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "33s", - "title": "Total Streams", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 2, - "y": 2 - }, - "hideTimeOverride": true, - "id": 23, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "transcode_streams" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "33s", - "title": "Transocde Streams", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 4, - "y": 2 - }, - "hideTimeOverride": true, - "id": 24, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "direct_play_streams" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "33s", - "title": "Direct Play Streams", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 6, - "y": 2 - }, - "hideTimeOverride": true, - "id": 25, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "direct_streams" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "33s", - "title": "Direct Stream", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "rgba(212, 74, 58, 0.58)", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 2 - }, - "hideTimeOverride": true, - "id": 44, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Ombi", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "pending" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Issues_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Issues Pending", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(212, 74, 58, 0.58)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#299c46", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 2 - }, - "hideTimeOverride": true, - "id": 46, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Ombi", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "resolved" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Issues_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Issues Resolved", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "rgba(212, 74, 58, 0.58)", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 2 - }, - "hideTimeOverride": true, - "id": 45, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Ombi", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "in_progress" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Issues_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Issues In Progress", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 14, - "y": 2 - }, - "hideTimeOverride": true, - "id": 35, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "diff" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "episodes" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$tvlibrary$/" - } - ] - } - ], - "timeFrom": "24h", - "title": "Recently Added TV", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 16, - "y": 2 - }, - "hideTimeOverride": true, - "id": 11, - "interval": "", - "links": [], - "maxDataPoints": 1, - "options": { - "basemap": { - "config": {}, - "name": "Layer 0", - "type": "default" - }, - "controls": { - "mouseWheelZoom": true, - "showAttribution": true, - "showDebug": false, - "showMeasure": false, - "showScale": false, - "showZoom": true - }, - "layers": [ - { - "config": { - "blur": 20, - "radius": 9, - "weight": { - "fixed": 1, - "max": 1, - "min": 0 - } - }, - "filterData": { - "id": "byRefId", - "options": "A" - }, - "location": { - "mode": "auto" - }, - "name": "Locations", - "tooltip": true, - "type": "heatmap" - } - ], - "tooltip": { - "mode": "details" - }, - "view": { - "allLayers": true, - "id": "zero", - "lat": 0, - "lon": 0, - "zoom": 1 - } - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "alias": "$tag_region_code", - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "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", - "type": "geomap" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "decimals": 0, - "mappings": [], - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Android" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#a4ca39", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Chrome" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#db3236", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Chromecast" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#039BE5", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NetCast" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#c8135c", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Playstation 4" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#003791", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Plex Media Player" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#e67817", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Roku" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#6d3c97", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Samsung" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#034ea2", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Tizen" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#034ea2", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Xbox One" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#107c10", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iOS" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#858487", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "tvOS" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#858487", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 0, - "y": 4 - }, - "id": 32, - "links": [], - "maxDataPoints": 3, - "options": { - "displayLabels": [ - "name", - "value", - "percent" - ], - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true, - "values": [ - "value", - "percent" - ] - }, - "pieType": "donut", - "reduceOptions": { - "calcs": [ - "sum" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "alias": "$tag_device_type", - "application": { - "filter": "" - }, - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "functions": [], - "group": { - "filter": "" - }, - "groupBy": [ - { - "params": [ - "device_type" - ], - "type": "tag" - } - ], - "host": { - "filter": "" - }, - "item": { - "filter": "" - }, - "measurement": "Tautulli", - "mode": 0, - "options": { - "showDisabledItems": false, - "skipEmptyValues": false - }, - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - }, - { - "params": [], - "type": "count" - } - ] - ], - "table": { - "skipEmptyValues": false - }, - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Session" - } - ], - "triggers": { - "acknowledged": 2, - "count": true, - "minSeverity": 3 - } - } - ], - "timeFrom": "1w", - "title": "Device Types", - "type": "piechart" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "decimals": 0, - "mappings": [], - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 4, - "y": 4 - }, - "id": 33, - "links": [], - "maxDataPoints": 3, - "options": { - "displayLabels": [ - "name", - "value", - "percent" - ], - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true, - "values": [ - "value", - "percent" - ] - }, - "pieType": "donut", - "reduceOptions": { - "calcs": [ - "sum" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "alias": "$tag_video_decision", - "application": { - "filter": "" - }, - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "functions": [], - "group": { - "filter": "" - }, - "groupBy": [ - { - "params": [ - "video_decision" - ], - "type": "tag" - } - ], - "host": { - "filter": "" - }, - "item": { - "filter": "" - }, - "measurement": "Tautulli", - "mode": 0, - "options": { - "showDisabledItems": false, - "skipEmptyValues": false - }, - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - }, - { - "params": [], - "type": "count" - } - ] - ], - "table": { - "skipEmptyValues": false - }, - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Session" - } - ], - "triggers": { - "acknowledged": 2, - "count": true, - "minSeverity": 3 - } - } - ], - "timeFrom": "1w", - "title": "Stream Types", - "type": "piechart" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "color-text" - }, - "filterable": false, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "yellow", - "index": 1, - "text": "Torrent" - }, - "1": { - "color": "green", - "index": 0, - "text": "Usenet" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "yellow", - "value": 0 - }, - { - "color": "green", - "value": 1 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "color", - "value": { - "mode": "thresholds" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "protocol_id" - }, - "properties": [ - { - "id": "displayName", - "value": "Type" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "custom.align", - "value": "left" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - }, - { - "color": "rgb(168, 147, 4)", - "value": -1 - }, - { - "color": "#629e51", - "value": 1 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "quality" - }, - "properties": [ - { - "id": "displayName", - "value": "Quality" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Name" - }, - "properties": [ - { - "id": "custom.width", - "value": 356 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 90 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 4 - }, - "hideTimeOverride": true, - "id": 51, - "interval": "30s", - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "protocol_id" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "quality" - ], - "type": "tag" - } - ], - "measurement": "Radarr", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"hash\" FROM \"Radarr\" WHERE (\"type\" = 'Queue') AND $timeFilter GROUP BY \"protocol_id\", \"name\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Queue" - } - ] - } - ], - "timeFrom": "330s", - "title": "Movies in Queue", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(245, 54, 54, 0.9)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 20 - } - ] - } - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "downloaded" - }, - "properties": [ - { - "id": "displayName", - "value": "DL" - }, - { - "id": "unit", - "value": "none" - }, - { - "id": "custom.align" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#0a50a1", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)" - }, - { - "color": "#24c3ff", - "value": 1 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "red", - "index": 0, - "text": "No" - }, - "1": { - "color": "blue", - "index": 1, - "text": "Yes" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "TV Show" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "sxe" - }, - "properties": [ - { - "id": "displayName", - "value": "S/E" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "DL" - }, - "properties": [ - { - "id": "custom.width", - "value": 39 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "TV Show" - }, - "properties": [ - { - "id": "custom.width", - "value": 459 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 0, - "y": 12 - }, - "hideTimeOverride": true, - "id": 30, - "interval": "32s", - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "downloaded" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "sxe" - ], - "type": "tag" - } - ], - "limit": "", - "measurement": "Sonarr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Future" - } - ] - } - ], - "timeFrom": "5m", - "title": "TV Shows on Today (Sonarr)", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "protocol_id" - }, - "properties": [ - { - "id": "displayName", - "value": "Type" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "custom.align", - "value": "left" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#0a437c", - "value": null - }, - { - "color": "rgb(168, 147, 4)", - "value": -1 - }, - { - "color": "#629e51", - "value": 1 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "yellow", - "index": 1, - "text": "Torrent" - }, - "1": { - "color": "green", - "index": 0, - "text": "Usenet" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "sxe" - }, - "properties": [ - { - "id": "displayName", - "value": "S/E" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "quality" - }, - "properties": [ - { - "id": "displayName", - "value": "Quality" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 73 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Quality" - }, - "properties": [ - { - "id": "custom.width", - "value": 118 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Name" - }, - "properties": [ - { - "id": "custom.width", - "value": 299 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "S/E" - }, - "properties": [ - { - "id": "custom.width", - "value": 88 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 8, - "y": 12 - }, - "hideTimeOverride": true, - "id": 28, - "interval": "30s", - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "protocol_id" - ], - "type": "tag" - }, - { - "params": [ - "sxe" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "quality" - ], - "type": "tag" - } - ], - "measurement": "Sonarr", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT distinct(\"hash\") FROM \"Sonarr\" WHERE (\"type\" = 'Queue') AND $timeFilter GROUP BY \"protocol_id\", \"sxe\", \"name\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Queue" - } - ] - } - ], - "timeFrom": "330s", - "title": "TV Shows in Queue", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Time": 0, - "distinct": 5, - "name": 1, - "protocol_id": 3, - "quality": 4, - "sxe": 2 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "links", - "value": [] - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "titleSlug" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 16, - "y": 12 - }, - "hideTimeOverride": true, - "id": 40, - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "titleSlug" - ], - "type": "tag" - } - ], - "measurement": "Radarr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "Missing_Available", - "operator": "=", - "value": "0" - } - ] - } - ], - "timeFrom": "330s", - "title": "Missing Available Movies", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - }, - { - "cards": {}, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateSpectral", - "exponent": 0.5, - "mode": "spectrum" - }, - "dataFormat": "tsbuckets", - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "scaleDistribution": { - "type": "linear" - } - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 16, - "x": 0, - "y": 18 - }, - "heatmap": {}, - "hideTimeOverride": true, - "highlightCards": true, - "id": 43, - "legend": { - "show": true - }, - "links": [], - "options": { - "calculate": false, - "calculation": {}, - "cellGap": 2, - "cellValues": {}, - "color": { - "exponent": 0.5, - "fill": "#b4ff00", - "mode": "scheme", - "reverse": false, - "scale": "exponential", - "scheme": "Spectral", - "steps": 128 - }, - "exemplars": { - "color": "rgba(255,0,255,0.7)" - }, - "filterValues": { - "le": 1e-9 - }, - "legend": { - "show": true - }, - "rowsFrame": { - "layout": "auto" - }, - "showValue": "never", - "tooltip": { - "show": true, - "yHistogram": false - }, - "yAxis": { - "axisPlacement": "left", - "decimals": 0, - "reverse": false, - "unit": "none" - } - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "alias": ".", - "application": { - "filter": "" - }, - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "functions": [], - "group": { - "filter": "" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "0" - ], - "type": "fill" - } - ], - "host": { - "filter": "" - }, - "item": { - "filter": "" - }, - "measurement": "Tautulli", - "mode": 0, - "options": { - "showDisabledItems": false, - "skipEmptyValues": false - }, - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - }, - { - "params": [], - "type": "count" - } - ] - ], - "table": { - "skipEmptyValues": false - }, - "tags": [], - "triggers": { - "acknowledged": 2, - "count": true, - "minSeverity": 3 - } - } - ], - "timeFrom": "24h", - "title": "Server Popularity", - "tooltip": { - "show": true, - "showHistogram": false - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "yAxis": { - "decimals": 0, - "format": "none", - "logBase": 1, - "show": true - }, - "yBucketBound": "auto" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "dark-red", - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "sxe" - }, - "properties": [ - { - "id": "displayName", - "value": "S/E" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.width" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "server" - }, - "properties": [ - { - "id": "displayName", - "value": "Server ID" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Name" - }, - "properties": [ - { - "id": "custom.width", - "value": 481 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 18 - }, - "hideTimeOverride": true, - "id": 41, - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "sxe" - ], - "type": "tag" - } - ], - "measurement": "Sonarr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Missing" - } - ] - } - ], - "timeFrom": "330s", - "title": "Missing TV Episodes (Last 7 Days)", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - }, - { - "columns": [], - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fontSize": "100%", - "gridPos": { - "h": 7, - "w": 16, - "x": 0, - "y": 21 - }, - "hideTimeOverride": true, - "id": 9, - "interval": "", - "links": [], - "maxPerRow": 2, - "pageSize": 5, - "scroll": true, - "showHeader": true, - "sort": { - "col": 9, - "desc": true - }, - "styles": [ - { - "$$hashKey": "object:61", - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "MM/DD/YY h:mm:ss a", - "decimals": 2, - "link": false, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "$$hashKey": "object:62", - "alias": "User", - "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, - "pattern": "friendly_name", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:63", - "alias": "Media", - "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, - "pattern": "title", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:64", - "alias": "Decision", - "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, - "pattern": "video_decision", - "preserveFormat": false, - "sanitize": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:65", - "alias": "Quality", - "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, - "pattern": "quality", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:66", - "alias": "Limits", - "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, - "pattern": "quality_profile", - "preserveFormat": true, - "sanitize": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:67", - "alias": "Version", - "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, - "pattern": "product_version", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:68", - "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, - "pattern": "platform", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:69", - "alias": "", - "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, - "mappingType": 1, - "pattern": "distinct", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "$$hashKey": "object:70", - "alias": "Location", - "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, - "mappingType": 1, - "pattern": "location", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:71", - "alias": "Player State", - "align": "auto", - "colorMode": "row", - "colors": [ - "rgba(50, 172, 45, 0.3)", - "rgba(14, 221, 229, 0.56)", - "rgba(214, 103, 28, 0.8)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "link": false, - "linkTargetBlank": false, - "linkTooltip": "", - "linkUrl": "", - "mappingType": 1, - "pattern": "player_state", - "thresholds": [ - "1", - "3" - ], - "type": "string", - "unit": "none", - "valueMaps": [ - { - "$$hashKey": "object:254", - "text": "Playing", - "value": "0" - }, - { - "$$hashKey": "object:255", - "text": "Paused", - "value": "1" - }, - { - "$$hashKey": "object:256", - "text": "Buffering", - "value": "3" - } - ] - } - ], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "title" - ], - "type": "tag" - }, - { - "params": [ - "quality" - ], - "type": "tag" - }, - { - "params": [ - "video_decision" - ], - "type": "tag" - }, - { - "params": [ - "quality_profile" - ], - "type": "tag" - }, - { - "params": [ - "platform" - ], - "type": "tag" - }, - { - "params": [ - "product_version" - ], - "type": "tag" - }, - { - "params": [ - "location" - ], - "type": "tag" - } - ], - "hide": false, - "limit": "", - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT distinct(\"hash\") FROM \"Tautulli\" WHERE (\"type\" = 'Session') AND $timeFilter GROUP BY \"friendly_name\", \"title\", \"quality\", \"video_decision\", \"quality_profile\", \"platform\", \"product_version\", \"location\", \"player_state\"", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "session_key" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Session" - } - ] - } - ], - "timeFrom": "33s", - "title": "Users Online", - "transform": "table", - "type": "table-old" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "title" - }, - "properties": [ - { - "id": "displayName", - "value": "Title" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "index": 0, - "text": "TV Show" - }, - "1": { - "index": 1, - "text": "Movie" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "requested_date" - }, - "properties": [ - { - "id": "displayName", - "value": "Date Requested" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "unit", - "value": "dateTimeAsLocalNoDateIfToday" - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "request_type" - }, - "properties": [ - { - "id": "displayName", - "value": "Type" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "index": 0, - "text": "TV Show" - }, - "1": { - "index": 1, - "text": "Movie" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "requested_user" - }, - "properties": [ - { - "id": "displayName", - "value": "User" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "status" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "red", - "index": 0, - "text": "Denied" - }, - "1": { - "color": "yellow", - "index": 1, - "text": "Pending" - }, - "3": { - "color": "blue", - "index": 2, - "text": "Requested" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.align", - "value": "left" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Date Requested" - }, - "properties": [ - { - "id": "custom.width", - "value": 126 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 84 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "User" - }, - "properties": [ - { - "id": "custom.width", - "value": 108 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Title" - }, - "properties": [ - { - "id": "custom.width", - "value": 743 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 16, - "x": 0, - "y": 28 - }, - "hideTimeOverride": true, - "id": 37, - "interval": "32s", - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "title" - ], - "type": "tag" - }, - { - "params": [ - "requested_date" - ], - "type": "tag" - }, - { - "params": [ - "requested_user" - ], - "type": "tag" - }, - { - "params": [ - "request_type" - ], - "type": "tag" - }, - { - "params": [ - "status" - ], - "type": "tag" - } - ], - "limit": "", - "measurement": "Ombi", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Requests" - }, - { - "condition": "AND", - "key": "status", - "operator": "!=", - "value": "5" - } - ] - } - ], - "timeFrom": "330s", - "title": "Ombi Requests Pending", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Time": 0, - "distinct": 6, - "request_type": 3, - "requested_date": 2, - "requested_user": 4, - "status": 5, - "title": 1 - }, - "renameByName": {} - } - } - ], - "type": "table" - } - ], - "refresh": "30s", - "revision": 1, - "schemaVersion": 38, - "style": "dark", - "tags": [ - "Plex", - "Tautulli", - "Sonarr", - "Radarr" - ], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "label": "Movies Library Name", - "multi": true, - "name": "movieslibrary", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "Movies", - "value": "Movies" - } - ], - "query": "Movies", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "label": "TV Library Name", - "multi": true, - "name": "tvlibrary", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "TV Shows", - "value": "TV Shows" - } - ], - "query": "TV Shows", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - } - ] - }, - "time": { - "from": "now-7d", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "browser", - "title": "Varken [v1.8.x]", - "uid": "iTbnha5mkasdf", - "version": 77, - "weekStart": "" -} \ No newline at end of file diff --git a/dashboard_overseerr.json b/dashboard_overseerr.json deleted file mode 100644 index 05df0344..00000000 --- a/dashboard_overseerr.json +++ /dev/null @@ -1,5093 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_INFLUXDB_VARKEN", - "label": "", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "panel", - "id": "geomap", - "name": "Geomap", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "9.4.7" - }, - { - "type": "panel", - "id": "heatmap", - "name": "Heatmap", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - }, - { - "type": "panel", - "id": "table-old", - "name": "Table (old)", - "version": "" - } - ], - "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" - } - ] - }, - "description": "", - "editable": true, - "fiscalYearStartMonth": 0, - "gnetId": 9579, - "graphTooltip": 0, - "id": null, - "links": [], - "liveNow": false, - "panels": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "Streaming Brain Estimate", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Kbits" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 1, - "y": 0 - }, - "hideTimeOverride": true, - "id": 21, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total_bandwidth" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "30s", - "title": "Total BW", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "Streaming Brain Estimate", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Kbits" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 3, - "y": 0 - }, - "hideTimeOverride": true, - "id": 20, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "lan_bandwidth" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "30s", - "title": "LAN BW", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "Streaming Brain Estimate", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Kbits" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 5, - "y": 0 - }, - "hideTimeOverride": true, - "id": 19, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wan_bandwidth" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "30s", - "title": "WAN BW", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "rgba(212, 74, 58, 0.58)", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 0 - }, - "hideTimeOverride": true, - "id": 38, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Overseerr", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"pending\" FROM \"Overseerr\" WHERE (\"type\" = 'Request_Counts') AND $timeFilter", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "pending" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Request_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Req. Pending", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(212, 74, 58, 0.58)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#299c46", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 0 - }, - "hideTimeOverride": true, - "id": 48, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Overseerr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "approved" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Request_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Req. Approved", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(212, 74, 58, 0.58)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "#299c46", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 0 - }, - "hideTimeOverride": true, - "id": 49, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Overseerr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "available" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Request_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Req. Completed", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 14, - "y": 0 - }, - "hideTimeOverride": true, - "id": 34, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "diff" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT distinct(\"total\") FROM \"Tautulli\" WHERE (\"type\" = 'library_stats' AND \"section_name\" =~ /^$movieslibrary$/) AND $timeFilter", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$movieslibrary$/" - } - ] - } - ], - "timeFrom": "24h", - "title": "Recently Added Movies", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 16, - "y": 0 - }, - "hideTimeOverride": true, - "id": 17, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$movieslibrary$/" - } - ] - } - ], - "timeFrom": "3630s", - "title": "Movies", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 18, - "y": 0 - }, - "hideTimeOverride": true, - "id": 47, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(\"total\") FROM \"Tautulli\" WHERE (\"type\" = 'library_stats' AND \"section_name\" =~ /^$tvlibrary$/) AND $timeFilter", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$tvlibrary$/" - } - ] - } - ], - "timeFrom": "3630s", - "title": "TV Shows", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 20, - "y": 0 - }, - "hideTimeOverride": true, - "id": 14, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "seasons" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$tvlibrary$/" - } - ] - } - ], - "timeFrom": "3630s", - "title": "TV Seasons", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 22, - "y": 0 - }, - "hideTimeOverride": true, - "id": 13, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "episodes" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$tvlibrary$/" - } - ] - } - ], - "timeFrom": "3630s", - "title": "TV Episodes", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 0, - "y": 2 - }, - "hideTimeOverride": true, - "id": 22, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "stream_count" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "33s", - "title": "Total Streams", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 2, - "y": 2 - }, - "hideTimeOverride": true, - "id": 23, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "transcode_streams" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "33s", - "title": "Transocde Streams", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 4, - "y": 2 - }, - "hideTimeOverride": true, - "id": 24, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "direct_play_streams" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "33s", - "title": "Direct Play Streams", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 6, - "y": 2 - }, - "hideTimeOverride": true, - "id": 25, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "direct_streams" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "current_stream_stats" - } - ] - } - ], - "timeFrom": "33s", - "title": "Direct Stream", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "rgba(212, 74, 58, 0.58)", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 2 - }, - "hideTimeOverride": true, - "id": 44, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Overseerr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "open" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Issues_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Issues Pending", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 2 - }, - "hideTimeOverride": true, - "id": 46, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Overseerr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "closed" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Issues_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Issues Resolved", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0.5 - }, - { - "color": "rgba(212, 74, 58, 0.58)", - "value": 5 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 2 - }, - "hideTimeOverride": true, - "id": 45, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [], - "measurement": "Overseerr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "total" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Issues_Counts" - } - ] - } - ], - "timeFrom": "330s", - "title": "Total Issues", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 14, - "y": 2 - }, - "hideTimeOverride": true, - "id": 35, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "diff" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "groupBy": [], - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "episodes" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "library_stats" - }, - { - "condition": "AND", - "key": "section_name", - "operator": "=~", - "value": "/^$tvlibrary$/" - } - ] - } - ], - "timeFrom": "24h", - "title": "Recently Added TV", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 16, - "y": 2 - }, - "hideTimeOverride": true, - "id": 11, - "interval": "", - "links": [], - "maxDataPoints": 1, - "options": { - "basemap": { - "config": {}, - "name": "Layer 0", - "type": "default" - }, - "controls": { - "mouseWheelZoom": true, - "showAttribution": true, - "showDebug": false, - "showMeasure": false, - "showScale": false, - "showZoom": true - }, - "layers": [ - { - "config": { - "blur": 20, - "radius": 9, - "weight": { - "fixed": 1, - "max": 1, - "min": 0 - } - }, - "filterData": { - "id": "byRefId", - "options": "A" - }, - "location": { - "mode": "auto" - }, - "name": "Locations", - "tooltip": true, - "type": "heatmap" - } - ], - "tooltip": { - "mode": "details" - }, - "view": { - "allLayers": true, - "id": "zero", - "lat": 0, - "lon": 0, - "zoom": 1 - } - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "alias": "$tag_region_code", - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "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", - "type": "geomap" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "decimals": 0, - "mappings": [], - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Android" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#a4ca39", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Chrome" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#db3236", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Chromecast" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#039BE5", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "NetCast" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#c8135c", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Playstation 4" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#003791", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Plex Media Player" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#e67817", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Roku" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#6d3c97", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Samsung" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#034ea2", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Tizen" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#034ea2", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Xbox One" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#107c10", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iOS" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#858487", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "tvOS" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#858487", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 0, - "y": 4 - }, - "id": 32, - "links": [], - "maxDataPoints": 3, - "options": { - "displayLabels": [ - "name", - "value", - "percent" - ], - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true, - "values": [ - "value", - "percent" - ] - }, - "pieType": "donut", - "reduceOptions": { - "calcs": [ - "sum" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "alias": "$tag_device_type", - "application": { - "filter": "" - }, - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "functions": [], - "group": { - "filter": "" - }, - "groupBy": [ - { - "params": [ - "device_type" - ], - "type": "tag" - } - ], - "host": { - "filter": "" - }, - "item": { - "filter": "" - }, - "measurement": "Tautulli", - "mode": 0, - "options": { - "showDisabledItems": false, - "skipEmptyValues": false - }, - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - }, - { - "params": [], - "type": "count" - } - ] - ], - "table": { - "skipEmptyValues": false - }, - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Session" - } - ], - "triggers": { - "acknowledged": 2, - "count": true, - "minSeverity": 3 - } - } - ], - "timeFrom": "1w", - "title": "Device Types", - "type": "piechart" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "decimals": 0, - "mappings": [], - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 4, - "y": 4 - }, - "id": 33, - "links": [], - "maxDataPoints": 3, - "options": { - "displayLabels": [ - "name", - "value", - "percent" - ], - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true, - "values": [ - "value", - "percent" - ] - }, - "pieType": "donut", - "reduceOptions": { - "calcs": [ - "sum" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "alias": "$tag_video_decision", - "application": { - "filter": "" - }, - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "functions": [], - "group": { - "filter": "" - }, - "groupBy": [ - { - "params": [ - "video_decision" - ], - "type": "tag" - } - ], - "host": { - "filter": "" - }, - "item": { - "filter": "" - }, - "measurement": "Tautulli", - "mode": 0, - "options": { - "showDisabledItems": false, - "skipEmptyValues": false - }, - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - }, - { - "params": [], - "type": "count" - } - ] - ], - "table": { - "skipEmptyValues": false - }, - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Session" - } - ], - "triggers": { - "acknowledged": 2, - "count": true, - "minSeverity": 3 - } - } - ], - "timeFrom": "1w", - "title": "Stream Types", - "type": "piechart" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "color-text" - }, - "filterable": false, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "yellow", - "index": 1, - "text": "Torrent" - }, - "1": { - "color": "green", - "index": 0, - "text": "Usenet" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - }, - { - "color": "yellow", - "value": 0 - }, - { - "color": "green", - "value": 1 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "color", - "value": { - "mode": "thresholds" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "protocol_id" - }, - "properties": [ - { - "id": "displayName", - "value": "Type" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "custom.align", - "value": "left" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - }, - { - "color": "rgb(168, 147, 4)", - "value": -1 - }, - { - "color": "#629e51", - "value": 1 - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "quality" - }, - "properties": [ - { - "id": "displayName", - "value": "Quality" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Name" - }, - "properties": [ - { - "id": "custom.width", - "value": 356 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 90 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 4 - }, - "hideTimeOverride": true, - "id": 51, - "interval": "30s", - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "protocol_id" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "quality" - ], - "type": "tag" - } - ], - "measurement": "Radarr", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"hash\" FROM \"Radarr\" WHERE (\"type\" = 'Queue') AND $timeFilter GROUP BY \"protocol_id\", \"name\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Queue" - } - ] - } - ], - "timeFrom": "330s", - "title": "Movies in Queue", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(245, 54, 54, 0.9)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 20 - } - ] - } - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "downloaded" - }, - "properties": [ - { - "id": "displayName", - "value": "DL" - }, - { - "id": "unit", - "value": "none" - }, - { - "id": "custom.align" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#0a50a1", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)" - }, - { - "color": "#24c3ff", - "value": 1 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "red", - "index": 0, - "text": "No" - }, - "1": { - "color": "blue", - "index": 1, - "text": "Yes" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "TV Show" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "sxe" - }, - "properties": [ - { - "id": "displayName", - "value": "S/E" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "DL" - }, - "properties": [ - { - "id": "custom.width", - "value": 39 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "TV Show" - }, - "properties": [ - { - "id": "custom.width", - "value": 459 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 0, - "y": 12 - }, - "hideTimeOverride": true, - "id": 30, - "interval": "32s", - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "downloaded" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "sxe" - ], - "type": "tag" - } - ], - "limit": "", - "measurement": "Sonarr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Future" - } - ] - } - ], - "timeFrom": "5m", - "title": "TV Shows on Today (Sonarr)", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "protocol_id" - }, - "properties": [ - { - "id": "displayName", - "value": "Type" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "custom.align", - "value": "left" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "#0a437c", - "value": null - }, - { - "color": "rgb(168, 147, 4)", - "value": -1 - }, - { - "color": "#629e51", - "value": 1 - } - ] - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "yellow", - "index": 1, - "text": "Torrent" - }, - "1": { - "color": "green", - "index": 0, - "text": "Usenet" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "sxe" - }, - "properties": [ - { - "id": "displayName", - "value": "S/E" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "quality" - }, - "properties": [ - { - "id": "displayName", - "value": "Quality" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 73 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Quality" - }, - "properties": [ - { - "id": "custom.width", - "value": 118 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Name" - }, - "properties": [ - { - "id": "custom.width", - "value": 299 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "S/E" - }, - "properties": [ - { - "id": "custom.width", - "value": 88 - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 8, - "y": 12 - }, - "hideTimeOverride": true, - "id": 28, - "interval": "30s", - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "protocol_id" - ], - "type": "tag" - }, - { - "params": [ - "sxe" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "quality" - ], - "type": "tag" - } - ], - "measurement": "Sonarr", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT distinct(\"hash\") FROM \"Sonarr\" WHERE (\"type\" = 'Queue') AND $timeFilter GROUP BY \"protocol_id\", \"sxe\", \"name\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Queue" - } - ] - } - ], - "timeFrom": "330s", - "title": "TV Shows in Queue", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Time": 0, - "distinct": 5, - "name": 1, - "protocol_id": 3, - "quality": 4, - "sxe": 2 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "links", - "value": [] - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "titleSlug" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 16, - "y": 12 - }, - "hideTimeOverride": true, - "id": 40, - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "titleSlug" - ], - "type": "tag" - } - ], - "measurement": "Radarr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "Missing_Available", - "operator": "=", - "value": "0" - } - ] - } - ], - "timeFrom": "330s", - "title": "Missing Available Movies", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - }, - { - "cards": {}, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateSpectral", - "exponent": 0.5, - "mode": "spectrum" - }, - "dataFormat": "tsbuckets", - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "scaleDistribution": { - "type": "linear" - } - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 16, - "x": 0, - "y": 18 - }, - "heatmap": {}, - "hideTimeOverride": true, - "highlightCards": true, - "id": 43, - "legend": { - "show": true - }, - "links": [], - "options": { - "calculate": false, - "calculation": {}, - "cellGap": 2, - "cellValues": {}, - "color": { - "exponent": 0.5, - "fill": "#b4ff00", - "mode": "scheme", - "reverse": false, - "scale": "exponential", - "scheme": "Spectral", - "steps": 128 - }, - "exemplars": { - "color": "rgba(255,0,255,0.7)" - }, - "filterValues": { - "le": 1e-9 - }, - "legend": { - "show": true - }, - "rowsFrame": { - "layout": "auto" - }, - "showValue": "never", - "tooltip": { - "show": true, - "yHistogram": false - }, - "yAxis": { - "axisPlacement": "left", - "decimals": 0, - "reverse": false, - "unit": "none" - } - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "alias": ".", - "application": { - "filter": "" - }, - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "functions": [], - "group": { - "filter": "" - }, - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "0" - ], - "type": "fill" - } - ], - "host": { - "filter": "" - }, - "item": { - "filter": "" - }, - "measurement": "Tautulli", - "mode": 0, - "options": { - "showDisabledItems": false, - "skipEmptyValues": false - }, - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - }, - { - "params": [], - "type": "count" - } - ] - ], - "table": { - "skipEmptyValues": false - }, - "tags": [], - "triggers": { - "acknowledged": 2, - "count": true, - "minSeverity": 3 - } - } - ], - "timeFrom": "24h", - "title": "Server Popularity", - "tooltip": { - "show": true, - "showHistogram": false - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "yAxis": { - "decimals": 0, - "format": "none", - "logBase": 1, - "show": true - }, - "yBucketBound": "auto" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "dark-red", - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "name" - }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "sxe" - }, - "properties": [ - { - "id": "displayName", - "value": "S/E" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.width" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "server" - }, - "properties": [ - { - "id": "displayName", - "value": "Server ID" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Name" - }, - "properties": [ - { - "id": "custom.width", - "value": 481 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 18 - }, - "hideTimeOverride": true, - "id": 41, - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "sxe" - ], - "type": "tag" - } - ], - "measurement": "Sonarr", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Missing" - } - ] - } - ], - "timeFrom": "330s", - "title": "Missing TV Episodes (Last 7 Days)", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - }, - { - "columns": [], - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fontSize": "100%", - "gridPos": { - "h": 7, - "w": 16, - "x": 0, - "y": 21 - }, - "hideTimeOverride": true, - "id": 9, - "interval": "", - "links": [], - "maxPerRow": 2, - "pageSize": 5, - "scroll": true, - "showHeader": true, - "sort": { - "col": 9, - "desc": true - }, - "styles": [ - { - "$$hashKey": "object:61", - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "MM/DD/YY h:mm:ss a", - "decimals": 2, - "link": false, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "$$hashKey": "object:62", - "alias": "User", - "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, - "pattern": "friendly_name", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:63", - "alias": "Media", - "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, - "pattern": "title", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:64", - "alias": "Decision", - "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, - "pattern": "video_decision", - "preserveFormat": false, - "sanitize": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:65", - "alias": "Quality", - "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, - "pattern": "quality", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:66", - "alias": "Limits", - "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, - "pattern": "quality_profile", - "preserveFormat": true, - "sanitize": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:67", - "alias": "Version", - "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, - "pattern": "product_version", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:68", - "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, - "pattern": "platform", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:69", - "alias": "", - "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, - "mappingType": 1, - "pattern": "distinct", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "$$hashKey": "object:70", - "alias": "Location", - "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, - "mappingType": 1, - "pattern": "location", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "$$hashKey": "object:71", - "alias": "Player State", - "align": "auto", - "colorMode": "row", - "colors": [ - "rgba(50, 172, 45, 0.3)", - "rgba(14, 221, 229, 0.56)", - "rgba(214, 103, 28, 0.8)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "link": false, - "linkTargetBlank": false, - "linkTooltip": "", - "linkUrl": "", - "mappingType": 1, - "pattern": "player_state", - "thresholds": [ - "1", - "3" - ], - "type": "string", - "unit": "none", - "valueMaps": [ - { - "$$hashKey": "object:254", - "text": "Playing", - "value": "0" - }, - { - "$$hashKey": "object:255", - "text": "Paused", - "value": "1" - }, - { - "$$hashKey": "object:256", - "text": "Buffering", - "value": "3" - } - ] - } - ], - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "title" - ], - "type": "tag" - }, - { - "params": [ - "quality" - ], - "type": "tag" - }, - { - "params": [ - "video_decision" - ], - "type": "tag" - }, - { - "params": [ - "quality_profile" - ], - "type": "tag" - }, - { - "params": [ - "platform" - ], - "type": "tag" - }, - { - "params": [ - "product_version" - ], - "type": "tag" - }, - { - "params": [ - "location" - ], - "type": "tag" - } - ], - "hide": false, - "limit": "", - "measurement": "Tautulli", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT distinct(\"hash\") FROM \"Tautulli\" WHERE (\"type\" = 'Session') AND $timeFilter GROUP BY \"friendly_name\", \"title\", \"quality\", \"video_decision\", \"quality_profile\", \"platform\", \"product_version\", \"location\", \"player_state\"", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "session_key" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Session" - } - ] - } - ], - "timeFrom": "33s", - "title": "Users Online", - "transform": "table", - "type": "table-old" - }, - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "text", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Time" - }, - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "distinct" - }, - "properties": [ - { - "id": "custom.align" - }, - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "title" - }, - "properties": [ - { - "id": "displayName", - "value": "Title" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "index": 0, - "text": "TV Show" - }, - "1": { - "index": 1, - "text": "Movie" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "requested_date" - }, - "properties": [ - { - "id": "displayName", - "value": "Date Requested" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "unit", - "value": "dateTimeAsLocalNoDateIfToday" - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "request_type" - }, - "properties": [ - { - "id": "displayName", - "value": "Type" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "index": 0, - "text": "TV Show" - }, - "1": { - "index": 1, - "text": "Movie" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "requested_user" - }, - "properties": [ - { - "id": "displayName", - "value": "User" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "status" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "1": { - "color": "red", - "index": 0, - "text": "Denied" - }, - "2": { - "color": "yellow", - "index": 1, - "text": "Pending" - }, - "3": { - "color": "blue", - "index": 2, - "text": "Requested" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.align", - "value": "left" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Date Requested" - }, - "properties": [ - { - "id": "custom.width", - "value": 126 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Type" - }, - "properties": [ - { - "id": "custom.width", - "value": 84 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "User" - }, - "properties": [ - { - "id": "custom.width", - "value": 108 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Title" - }, - "properties": [ - { - "id": "custom.width", - "value": 743 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 16, - "x": 0, - "y": 28 - }, - "hideTimeOverride": true, - "id": 37, - "interval": "32s", - "links": [], - "options": { - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "${DS_INFLUXDB_VARKEN}" - }, - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "title" - ], - "type": "tag" - }, - { - "params": [ - "requested_date" - ], - "type": "tag" - }, - { - "params": [ - "requested_user" - ], - "type": "tag" - }, - { - "params": [ - "request_type" - ], - "type": "tag" - }, - { - "params": [ - "status" - ], - "type": "tag" - } - ], - "limit": "", - "measurement": "Overseerr", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "hash" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "type", - "operator": "=", - "value": "Requests" - }, - { - "condition": "AND", - "key": "status", - "operator": "!=", - "value": "5" - } - ] - } - ], - "timeFrom": "330s", - "title": "Overseerr Requests Pending", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Time": 0, - "distinct": 6, - "request_type": 3, - "requested_date": 2, - "requested_user": 4, - "status": 5, - "title": 1 - }, - "renameByName": {} - } - } - ], - "type": "table" - } - ], - "refresh": "30s", - "revision": 1, - "schemaVersion": 38, - "style": "dark", - "tags": [ - "Plex", - "Tautulli", - "Sonarr", - "Radarr" - ], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "label": "Movies Library Name", - "multi": true, - "name": "movieslibrary", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "Movies", - "value": "Movies" - } - ], - "query": "Movies", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "label": "TV Library Name", - "multi": true, - "name": "tvlibrary", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "TV Shows", - "value": "TV Shows" - } - ], - "query": "TV Shows", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - } - ] - }, - "time": { - "from": "now-5y", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "browser", - "title": "Varken [v1.8.x]", - "uid": "iTbnha5mkasdf", - "version": 81, - "weekStart": "" -} \ No newline at end of file diff --git a/grafana_dashboards/flux_overseerr.json b/grafana_dashboards/flux_overseerr.json new file mode 100644 index 00000000..8ca09929 --- /dev/null +++ b/grafana_dashboards/flux_overseerr.json @@ -0,0 +1,4854 @@ +{ + "__inputs": [ + { + "name": "DS_INFLUXDB_V2_VARKEN", + "label": "", + "description": "", + "type": "datasource", + "pluginId": "influxdb", + "pluginName": "InfluxDB" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "geomap", + "name": "Geomap", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.4.7" + }, + { + "type": "datasource", + "id": "influxdb", + "name": "InfluxDB", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "piechart", + "name": "Pie chart", + "version": "" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + }, + { + "type": "panel", + "id": "table-old", + "name": "Table (old)", + "version": "" + } + ], + "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" + } + ] + }, + "description": "", + "editable": true, + "fiscalYearStartMonth": 0, + "gnetId": 9579, + "graphTooltip": 0, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "description": "Streaming Brain Estimate", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Kbits" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 1, + "y": 0 + }, + "hideTimeOverride": true, + "id": 21, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"total_bandwidth\")\r\n |> filter(fn: (r) => r.type == \"current_stream_stats\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "total_bandwidth" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "current_stream_stats" + } + ] + } + ], + "timeFrom": "30s", + "title": "Total BW", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "description": "Streaming Brain Estimate", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Kbits" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 3, + "y": 0 + }, + "hideTimeOverride": true, + "id": 20, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"lan_bandwidth\")\r\n |> filter(fn: (r) => r.type == \"current_stream_stats\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "lan_bandwidth" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "current_stream_stats" + } + ] + } + ], + "timeFrom": "30s", + "title": "LAN BW", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "description": "Streaming Brain Estimate", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Kbits" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 5, + "y": 0 + }, + "hideTimeOverride": true, + "id": 19, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"wan_bandwidth\")\r\n |> filter(fn: (r) => r.type == \"current_stream_stats\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "wan_bandwidth" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "current_stream_stats" + } + ] + } + ], + "timeFrom": "30s", + "title": "WAN BW", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "rgba(212, 74, 58, 0.58)", + "value": 5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 8, + "y": 0 + }, + "hideTimeOverride": true, + "id": 38, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [], + "measurement": "Overseerr", + "orderByTime": "ASC", + "policy": "default", + "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\"])", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "pending" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Request_Counts" + } + ] + } + ], + "timeFrom": "330s", + "title": "Req. Pending", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(212, 74, 58, 0.58)", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "#299c46", + "value": 5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 10, + "y": 0 + }, + "hideTimeOverride": true, + "id": 48, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [], + "measurement": "Overseerr", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "approved" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Request_Counts" + } + ] + } + ], + "timeFrom": "330s", + "title": "Req. Approved", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(212, 74, 58, 0.58)", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "#299c46", + "value": 5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 12, + "y": 0 + }, + "hideTimeOverride": true, + "id": 49, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [], + "measurement": "Overseerr", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "available" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Request_Counts" + } + ] + } + ], + "timeFrom": "330s", + "title": "Req. Completed", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 14, + "y": 0 + }, + "hideTimeOverride": true, + "id": 34, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "diff" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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.type == \"library_stats\")\r\n |> filter(fn: (r) => r.section_name =~ /^${movieslibrary:regex}/)\r\n |> distinct()\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "total" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "library_stats" + }, + { + "condition": "AND", + "key": "section_name", + "operator": "=~", + "value": "/^$movieslibrary$/" + } + ] + } + ], + "timeFrom": "24h", + "title": "Recently Added Movies", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 16, + "y": 0 + }, + "hideTimeOverride": true, + "id": 17, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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.type == \"library_stats\")\r\n |> filter(fn: (r) => r.section_name =~ /^${movieslibrary:regex}/)\r\n |> distinct()\r\n |> sum(column: \"_value\")\r\n |> keep(columns: [\"_value\"])", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "total" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "library_stats" + }, + { + "condition": "AND", + "key": "section_name", + "operator": "=~", + "value": "/^$movieslibrary$/" + } + ] + } + ], + "timeFrom": "3630s", + "title": "Movies", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 18, + "y": 0 + }, + "hideTimeOverride": true, + "id": 47, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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.type == \"library_stats\")\r\n |> filter(fn: (r) => r.section_name =~ /^${tvlibrary:regex}/)\r\n |> distinct()\r\n |> sum(column: \"_value\")\r\n |> keep(columns: [\"_value\"])", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "total" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "library_stats" + }, + { + "condition": "AND", + "key": "section_name", + "operator": "=~", + "value": "/^$tvlibrary$/" + } + ] + } + ], + "timeFrom": "3630s", + "title": "TV Shows", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 20, + "y": 0 + }, + "hideTimeOverride": true, + "id": 14, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"seasons\")\r\n |> filter(fn: (r) => r.type == \"library_stats\")\r\n |> filter(fn: (r) => r.section_name =~ /^${tvlibrary:regex}/)\r\n |> last()\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "seasons" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "library_stats" + }, + { + "condition": "AND", + "key": "section_name", + "operator": "=~", + "value": "/^$tvlibrary$/" + } + ] + } + ], + "timeFrom": "3630s", + "title": "TV Seasons", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 22, + "y": 0 + }, + "hideTimeOverride": true, + "id": 13, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"episodes\")\r\n |> filter(fn: (r) => r.type == \"library_stats\")\r\n |> filter(fn: (r) => r.section_name =~ /^${tvlibrary:regex}/)\r\n |> last()\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "episodes" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "library_stats" + }, + { + "condition": "AND", + "key": "section_name", + "operator": "=~", + "value": "/^$tvlibrary$/" + } + ] + } + ], + "timeFrom": "3630s", + "title": "TV Episodes", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 0, + "y": 2 + }, + "hideTimeOverride": true, + "id": 22, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "stream_count" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "current_stream_stats" + } + ] + } + ], + "timeFrom": "33s", + "title": "Total Streams", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 2, + "y": 2 + }, + "hideTimeOverride": true, + "id": 23, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "transcode_streams" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "current_stream_stats" + } + ] + } + ], + "timeFrom": "33s", + "title": "Transocde Streams", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 4, + "y": 2 + }, + "hideTimeOverride": true, + "id": 24, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "direct_play_streams" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "current_stream_stats" + } + ] + } + ], + "timeFrom": "33s", + "title": "Direct Play Streams", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 6, + "y": 2 + }, + "hideTimeOverride": true, + "id": 25, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "direct_streams" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "current_stream_stats" + } + ] + } + ], + "timeFrom": "33s", + "title": "Direct Stream", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "rgba(212, 74, 58, 0.58)", + "value": 5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 8, + "y": 2 + }, + "hideTimeOverride": true, + "id": 44, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [], + "measurement": "Overseerr", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"open\")\r\n |> filter(fn: (r) => r.type == \"Issues_Counts\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "open" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Issues_Counts" + } + ] + } + ], + "timeFrom": "330s", + "title": "Issues Pending", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 10, + "y": 2 + }, + "hideTimeOverride": true, + "id": 46, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [], + "measurement": "Overseerr", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"varken\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r._field == \"closed\")\r\n |> filter(fn: (r) => r.type == \"Issues_Counts\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "closed" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Issues_Counts" + } + ] + } + ], + "timeFrom": "330s", + "title": "Issues Resolved", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.5 + }, + { + "color": "rgba(212, 74, 58, 0.58)", + "value": 5 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 12, + "y": 2 + }, + "hideTimeOverride": true, + "id": 45, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [], + "measurement": "Overseerr", + "orderByTime": "ASC", + "policy": "default", + "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.type == \"Issues_Counts\")\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "total" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Issues_Counts" + } + ] + } + ], + "timeFrom": "330s", + "title": "Total Issues", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 14, + "y": 2 + }, + "hideTimeOverride": true, + "id": 35, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "diff" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "groupBy": [], + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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.type == \"library_stats\")\r\n |> filter(fn: (r) => r.section_name =~ /^${tvlibrary:regex}/)\r\n |> distinct()\r\n |> keep(columns: [\"_time\", \"_value\"])\r\n |> sort(columns: [\"_time\"])", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "episodes" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "library_stats" + }, + { + "condition": "AND", + "key": "section_name", + "operator": "=~", + "value": "/^$tvlibrary$/" + } + ] + } + ], + "timeFrom": "24h", + "title": "Recently Added TV", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 16, + "y": 2 + }, + "hideTimeOverride": true, + "id": 11, + "interval": "", + "links": [], + "maxDataPoints": 1, + "options": { + "basemap": { + "config": {}, + "name": "Layer 0", + "type": "default" + }, + "controls": { + "mouseWheelZoom": true, + "showAttribution": true, + "showDebug": false, + "showMeasure": false, + "showScale": false, + "showZoom": true + }, + "layers": [ + { + "config": { + "blur": 20, + "radius": 8, + "weight": { + "fixed": 1, + "max": 1, + "min": 0 + } + }, + "filterData": { + "id": "byRefId", + "options": "A" + }, + "location": { + "latitude": "_value", + "longitude": "_value", + "mode": "auto" + }, + "name": "Locations", + "tooltip": true, + "type": "heatmap" + } + ], + "tooltip": { + "mode": "details" + }, + "view": { + "allLayers": true, + "id": "zero", + "lat": 0, + "lon": 0, + "zoom": 1 + } + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "alias": "$tag_region_code", + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "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", + "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", + "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": "labelsToFields", + "options": {} + }, + { + "id": "calculateField", + "options": { + "alias": "metric", + "mode": "reduceRow", + "reduce": { + "reducer": "sum" + } + } + } + ], + "type": "geomap" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "decimals": 0, + "mappings": [], + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Android" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#a4ca39", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Chrome" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#db3236", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Chromecast" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#039BE5", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "NetCast" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#c8135c", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Playstation 4" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#003791", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Plex Media Player" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#e67817", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Roku" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#6d3c97", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Samsung" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#034ea2", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Tizen" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#034ea2", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Xbox One" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#107c10", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iOS" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#858487", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "tvOS" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#858487", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 4, + "x": 0, + "y": 4 + }, + "id": 32, + "links": [], + "maxDataPoints": 3, + "options": { + "displayLabels": [ + "name", + "value" + ], + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true, + "values": [ + "percent" + ] + }, + "pieType": "donut", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "alias": "$tag_device_type", + "application": { + "filter": "" + }, + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "functions": [], + "group": { + "filter": "" + }, + "groupBy": [ + { + "params": [ + "device_type" + ], + "type": "tag" + } + ], + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "measurement": "Tautulli", + "mode": 0, + "options": { + "showDisabledItems": false, + "skipEmptyValues": false + }, + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + }, + { + "params": [], + "type": "count" + } + ] + ], + "table": { + "skipEmptyValues": false + }, + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Session" + } + ], + "triggers": { + "acknowledged": 2, + "count": true, + "minSeverity": 3 + } + } + ], + "timeFrom": "1w", + "title": "Device Types", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "valueLabel": "device_type" + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "decimals": 0, + "mappings": [], + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 4, + "x": 4, + "y": 4 + }, + "id": 33, + "links": [], + "maxDataPoints": 3, + "options": { + "displayLabels": [ + "name", + "value" + ], + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true, + "values": [ + "percent" + ] + }, + "pieType": "donut", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "alias": "$tag_video_decision", + "application": { + "filter": "" + }, + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "functions": [], + "group": { + "filter": "" + }, + "groupBy": [ + { + "params": [ + "video_decision" + ], + "type": "tag" + } + ], + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "measurement": "Tautulli", + "mode": 0, + "options": { + "showDisabledItems": false, + "skipEmptyValues": false + }, + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + }, + { + "params": [], + "type": "count" + } + ] + ], + "table": { + "skipEmptyValues": false + }, + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Session" + } + ], + "triggers": { + "acknowledged": 2, + "count": true, + "minSeverity": 3 + } + } + ], + "timeFrom": "1w", + "title": "Stream Types", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "valueLabel": "video_decision" + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "color-text" + }, + "filterable": false, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "yellow", + "index": 1, + "text": "Torrent" + }, + "1": { + "color": "green", + "index": 0, + "text": "Usenet" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + }, + { + "color": "yellow", + "value": 0 + }, + { + "color": "green", + "value": 1 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "name" + }, + "properties": [ + { + "id": "displayName", + "value": "Name" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "color", + "value": { + "mode": "thresholds" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "protocol_id" + }, + "properties": [ + { + "id": "displayName", + "value": "Type" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "custom.align", + "value": "left" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "yellow", + "value": null + }, + { + "color": "rgb(168, 147, 4)", + "value": -1 + }, + { + "color": "#629e51", + "value": 1 + } + ] + } + }, + { + "id": "custom.width", + "value": 84 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "quality" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 4 + }, + "hideTimeOverride": true, + "id": 51, + "interval": "30s", + "links": [], + "options": { + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "protocol_id" + ], + "type": "tag" + }, + { + "params": [ + "name" + ], + "type": "tag" + }, + { + "params": [ + "quality" + ], + "type": "tag" + } + ], + "measurement": "Radarr", + "orderByTime": "ASC", + "policy": "default", + "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", + "rawQuery": false, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Queue" + } + ] + } + ], + "timeFrom": "330s", + "title": "Movies in Queue", + "transformations": [ + { + "id": "labelsToFields", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true + }, + "indexByName": {}, + "renameByName": { + "name": "", + "quality": "Quality" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "downloaded" + }, + "properties": [ + { + "id": "displayName", + "value": "DL" + }, + { + "id": "unit", + "value": "none" + }, + { + "id": "custom.align" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#0a50a1", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)" + }, + { + "color": "#24c3ff", + "value": 1 + } + ] + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "red", + "index": 0, + "text": "No" + }, + "1": { + "color": "blue", + "index": 1, + "text": "Yes" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.width", + "value": 20 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "name" + }, + "properties": [ + { + "id": "displayName", + "value": "TV Show" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sxe" + }, + "properties": [ + { + "id": "displayName", + "value": "S/E" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "custom.width", + "value": 100 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 12 + }, + "hideTimeOverride": true, + "id": 30, + "interval": "32s", + "links": [], + "options": { + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "downloaded" + ], + "type": "tag" + }, + { + "params": [ + "name" + ], + "type": "tag" + }, + { + "params": [ + "sxe" + ], + "type": "tag" + } + ], + "limit": "", + "measurement": "Sonarr", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Future" + } + ] + } + ], + "timeFrom": "5m", + "title": "TV Shows on Today (Sonarr)", + "transformations": [ + { + "id": "labelsToFields", + "options": {} + }, + { + "id": "merge", + "options": { + "reducers": [] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "displayName", + "value": "Time" + }, + { + "id": "custom.align" + }, + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "name" + }, + "properties": [ + { + "id": "displayName", + "value": "Name" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "protocol_id" + }, + "properties": [ + { + "id": "displayName", + "value": "Type" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "custom.align", + "value": "left" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "#0a437c", + "value": null + }, + { + "color": "rgb(168, 147, 4)", + "value": -1 + }, + { + "color": "#629e51", + "value": 1 + } + ] + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "yellow", + "index": 1, + "text": "Torrent" + }, + "1": { + "color": "green", + "index": 0, + "text": "Usenet" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "distinct" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sxe" + }, + "properties": [ + { + "id": "displayName", + "value": "S/E" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "quality" + }, + "properties": [ + { + "id": "displayName", + "value": "Quality" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Type" + }, + "properties": [ + { + "id": "custom.width", + "value": 73 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Quality" + }, + "properties": [ + { + "id": "custom.width", + "value": 118 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Name" + }, + "properties": [ + { + "id": "custom.width", + "value": 299 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "S/E" + }, + "properties": [ + { + "id": "custom.width", + "value": 88 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 8, + "y": 12 + }, + "hideTimeOverride": true, + "id": 28, + "interval": "30s", + "links": [], + "options": { + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "protocol_id" + ], + "type": "tag" + }, + { + "params": [ + "sxe" + ], + "type": "tag" + }, + { + "params": [ + "name" + ], + "type": "tag" + }, + { + "params": [ + "quality" + ], + "type": "tag" + } + ], + "measurement": "Sonarr", + "orderByTime": "ASC", + "policy": "default", + "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\", \"quality\"], mode: \"by\")\r\n |> distinct()\r\n |> keep(columns: [\"_time\", \"_value\", \"protocol_id\", \"sxe\", \"name\", \"quality\"])\r\n |> sort(columns: [\"_time\"])\r\n", + "rawQuery": false, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Queue" + } + ] + } + ], + "timeFrom": "330s", + "title": "TV Shows in Queue", + "transformations": [ + { + "id": "labelsToFields", + "options": {} + }, + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true + }, + "indexByName": { + "Time": 0, + "distinct": 5, + "name": 1, + "protocol_id": 3, + "quality": 4, + "sxe": 2 + }, + "renameByName": { + "_value": "" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "name" + }, + "properties": [ + { + "id": "displayName", + "value": "Name" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "links", + "value": [] + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "distinct" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "titleSlug" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "custom.hidden", + "value": true + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 12 + }, + "hideTimeOverride": true, + "id": 40, + "links": [], + "options": { + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "name" + ], + "type": "tag" + }, + { + "params": [ + "titleSlug" + ], + "type": "tag" + } + ], + "measurement": "Radarr", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + } + ] + ], + "tags": [ + { + "key": "Missing_Available", + "operator": "=", + "value": "0" + } + ] + } + ], + "timeFrom": "330s", + "title": "Missing Available Movies", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "titleSlug", + "name" + ] + } + }, + { + "id": "merge", + "options": { + "reducers": [] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true + }, + "indexByName": {}, + "renameByName": { + "name": "" + } + } + } + ], + "type": "table" + }, + { + "columns": [], + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fontSize": "100%", + "gridPos": { + "h": 7, + "w": 16, + "x": 0, + "y": 18 + }, + "hideTimeOverride": true, + "id": 9, + "interval": "", + "links": [], + "maxPerRow": 2, + "pageSize": 5, + "scroll": true, + "showHeader": true, + "sort": { + "col": 9, + "desc": true + }, + "styles": [ + { + "$$hashKey": "object:61", + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "MM/DD/YY h:mm:ss a", + "decimals": 2, + "link": false, + "pattern": "Time", + "thresholds": [], + "type": "hidden", + "unit": "short" + }, + { + "$$hashKey": "object:62", + "alias": "User", + "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, + "pattern": "friendly_name", + "preserveFormat": false, + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:63", + "alias": "Media", + "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, + "pattern": "title", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:64", + "alias": "Decision", + "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, + "pattern": "video_decision", + "preserveFormat": false, + "sanitize": false, + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:65", + "alias": "Quality", + "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, + "pattern": "quality", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:66", + "alias": "Limits", + "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, + "pattern": "quality_profile", + "preserveFormat": true, + "sanitize": false, + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:67", + "alias": "Version", + "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, + "pattern": "product_version", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:68", + "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, + "pattern": "platform", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:69", + "alias": "", + "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, + "mappingType": 1, + "pattern": "distinct", + "thresholds": [], + "type": "hidden", + "unit": "short" + }, + { + "$$hashKey": "object:70", + "alias": "Location", + "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, + "mappingType": 1, + "pattern": "location", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "$$hashKey": "object:71", + "alias": "Player State", + "align": "auto", + "colorMode": "row", + "colors": [ + "rgba(50, 172, 45, 0.3)", + "rgba(14, 221, 229, 0.56)", + "rgba(214, 103, 28, 0.8)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 0, + "link": false, + "linkTargetBlank": false, + "linkTooltip": "", + "linkUrl": "", + "mappingType": 1, + "pattern": "player_state", + "thresholds": [ + "1", + "3" + ], + "type": "string", + "unit": "none", + "valueMaps": [ + { + "$$hashKey": "object:254", + "text": "Playing", + "value": "0" + }, + { + "$$hashKey": "object:255", + "text": "Paused", + "value": "1" + }, + { + "$$hashKey": "object:256", + "text": "Buffering", + "value": "3" + } + ] + } + ], + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "name" + ], + "type": "tag" + }, + { + "params": [ + "title" + ], + "type": "tag" + }, + { + "params": [ + "quality" + ], + "type": "tag" + }, + { + "params": [ + "video_decision" + ], + "type": "tag" + }, + { + "params": [ + "quality_profile" + ], + "type": "tag" + }, + { + "params": [ + "platform" + ], + "type": "tag" + }, + { + "params": [ + "product_version" + ], + "type": "tag" + }, + { + "params": [ + "location" + ], + "type": "tag" + } + ], + "hide": false, + "limit": "", + "measurement": "Tautulli", + "orderByTime": "ASC", + "policy": "default", + "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\"])", + "rawQuery": true, + "refId": "A", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "session_key" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Session" + } + ] + } + ], + "timeFrom": "33s", + "title": "Users Online", + "transform": "table", + "transformations": [ + { + "id": "labelsToFields", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true + }, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "table-old" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "dark-red", + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "sxe" + }, + "properties": [ + { + "id": "displayName", + "value": "S/E" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "custom.width", + "value": 84 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "server" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "1": { + "index": 0, + "text": "Sonarr" + }, + "2": { + "index": 1, + "text": "Sonarr 4K" + }, + "3": { + "index": 2, + "text": "Asian Sonarr" + }, + "4": { + "index": 3, + "text": "Anime Sonarr" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.width", + "value": 105 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 18 + }, + "hideTimeOverride": true, + "id": 41, + "links": [], + "options": { + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "name" + ], + "type": "tag" + }, + { + "params": [ + "sxe" + ], + "type": "tag" + } + ], + "measurement": "Sonarr", + "orderByTime": "ASC", + "policy": "default", + "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", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Missing" + } + ] + } + ], + "timeFrom": "330s", + "title": "Missing TV Episodes (Last 7 Days)", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "name", + "server", + "sxe" + ] + } + }, + { + "id": "merge", + "options": { + "reducers": [] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "_value": true + }, + "indexByName": {}, + "renameByName": { + "name": "TV Series", + "server": "Instance" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "text", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "displayName", + "value": "Time" + }, + { + "id": "custom.align" + }, + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "distinct" + }, + "properties": [ + { + "id": "custom.align" + }, + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "title" + }, + "properties": [ + { + "id": "displayName", + "value": "Title" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "TV Show" + }, + "1": { + "index": 1, + "text": "Movie" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "requested_date" + }, + "properties": [ + { + "id": "displayName", + "value": "Date Requested" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "unit", + "value": "dateTimeAsLocalNoDateIfToday" + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "request_type" + }, + "properties": [ + { + "id": "displayName", + "value": "Type" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + }, + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "index": 0, + "text": "TV Show" + }, + "1": { + "index": 1, + "text": "Movie" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "requested_user" + }, + "properties": [ + { + "id": "displayName", + "value": "User" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "status" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "1": { + "color": "red", + "index": 0, + "text": "Denied" + }, + "2": { + "color": "yellow", + "index": 1, + "text": "Pending" + }, + "3": { + "color": "blue", + "index": 2, + "text": "Requested" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.align", + "value": "left" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Date Requested" + }, + "properties": [ + { + "id": "custom.width", + "value": 126 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Type" + }, + "properties": [ + { + "id": "custom.width", + "value": 84 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "User" + }, + "properties": [ + { + "id": "custom.width", + "value": 108 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Title" + }, + "properties": [ + { + "id": "custom.width", + "value": 743 + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 16, + "x": 0, + "y": 25 + }, + "hideTimeOverride": true, + "id": 37, + "interval": "32s", + "links": [], + "options": { + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "9.4.7", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "title" + ], + "type": "tag" + }, + { + "params": [ + "requested_date" + ], + "type": "tag" + }, + { + "params": [ + "requested_user" + ], + "type": "tag" + }, + { + "params": [ + "request_type" + ], + "type": "tag" + }, + { + "params": [ + "status" + ], + "type": "tag" + } + ], + "limit": "", + "measurement": "Overseerr", + "orderByTime": "ASC", + "policy": "default", + "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": "B", + "resultFormat": "table", + "select": [ + [ + { + "params": [ + "hash" + ], + "type": "field" + }, + { + "params": [], + "type": "distinct" + } + ] + ], + "tags": [ + { + "key": "type", + "operator": "=", + "value": "Requests" + }, + { + "condition": "AND", + "key": "status", + "operator": "!=", + "value": "5" + } + ] + } + ], + "timeFrom": "330s", + "title": "Overseerr Requests Pending", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "Time": 0, + "distinct": 6, + "request_type": 3, + "requested_date": 2, + "requested_user": 4, + "status": 5, + "title": 1 + }, + "renameByName": {} + } + } + ], + "type": "table" + } + ], + "refresh": "30s", + "revision": 1, + "schemaVersion": 38, + "style": "dark", + "tags": [ + "Plex", + "Tautulli", + "Sonarr", + "Radarr" + ], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "definition": "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\"] == \"libraries\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"movie\")\r\n |> keep(columns: [\"section_type\", \"_value\"])\r\n |> distinct()\r\n |> yield(name: \"distinct\")\r\n", + "hide": 0, + "includeAll": false, + "label": "Movies Library", + "multi": false, + "name": "movieslibrary", + "options": [], + "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\"] == \"libraries\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"movie\")\r\n |> keep(columns: [\"section_type\", \"_value\"])\r\n |> distinct()\r\n |> yield(name: \"distinct\")\r\n", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB_V2_VARKEN}" + }, + "definition": "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\"] == \"libraries\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"show\")\r\n |> keep(columns: [\"section_type\", \"_value\"])\r\n |> distinct()\r\n |> yield(name: \"distinct\")\r\n", + "hide": 0, + "includeAll": false, + "label": "TV Library", + "multi": false, + "name": "tvlibrary", + "options": [], + "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\"] == \"libraries\")\r\n |> filter(fn: (r) => r[\"section_type\"] == \"show\")\r\n |> keep(columns: [\"section_type\", \"_value\"])\r\n |> distinct()\r\n |> yield(name: \"distinct\")\r\n", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-5y", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "Varken [v2.0.x]", + "uid": "aPa7eWE4k", + "version": 10, + "weekStart": "" + } \ No newline at end of file diff --git a/varken/iniparser.py b/varken/iniparser.py index c51e281b..774c6ad4 100644 --- a/varken/iniparser.py +++ b/varken/iniparser.py @@ -235,12 +235,19 @@ def parse_opts(self, read_file=False): fallback_ip = env.get(f'VRKN_{envsection}_FALLBACK_IP', self.config.get(section, 'fallback_ip')) + get_libraries = boolcheck(env.get(f'VRKN_{envsection}_GET_LIBRARIES', + self.config.get(section, 'get_libraries'))) + get_stats = boolcheck(env.get(f'VRKN_{envsection}_GET_STATS', self.config.get(section, 'get_stats'))) get_activity = boolcheck(env.get(f'VRKN_{envsection}_GET_ACTIVITY', self.config.get(section, 'get_activity'))) + get_libraries_run_days = int(env.get( + f'VRKN_{envsection}_GET_LIBRARIES_RUN_DAYS', + self.config.getint(section, 'get_libraries_run_days'))) + get_activity_run_seconds = int(env.get( f'VRKN_{envsection}_GET_ACTIVITY_RUN_SECONDS', self.config.getint(section, 'get_activity_run_seconds'))) @@ -260,9 +267,10 @@ def parse_opts(self, read_file=False): self.config.get('global', 'maxmind_license_key')) server = TautulliServer(id=server_id, url=scheme + url, api_key=apikey, - verify_ssl=verify_ssl, get_activity=get_activity, - fallback_ip=fallback_ip, get_stats=get_stats, - get_activity_run_seconds=get_activity_run_seconds, + verify_ssl=verify_ssl, get_libraries=get_libraries, + get_libraries_run_days=get_libraries_run_days, + get_activity=get_activity, fallback_ip=fallback_ip, + get_stats=get_stats, get_activity_run_seconds=get_activity_run_seconds, get_stats_run_seconds=get_stats_run_seconds, maxmind_license_key=maxmind_license_key) diff --git a/varken/structures.py b/varken/structures.py index d5329b13..deee315f 100644 --- a/varken/structures.py +++ b/varken/structures.py @@ -73,6 +73,8 @@ class OverseerrServer(NamedTuple): class TautulliServer(NamedTuple): api_key: str = None fallback_ip: str = None + get_libraries: bool = False + get_libraries_run_days: int = 30 get_activity: bool = False get_activity_run_seconds: int = 30 get_stats: bool = False @@ -459,6 +461,7 @@ class TautulliStream(NamedTuple): platform_name: str = None platform_version: str = None player: str = None + play_duration: int = None pre_tautulli: str = None product: str = None product_version: str = None diff --git a/varken/tautulli.py b/varken/tautulli.py index 62cebc72..078a5cb1 100644 --- a/varken/tautulli.py +++ b/varken/tautulli.py @@ -187,6 +187,37 @@ def get_activity(self): self.dbmanager.write_points(influx_payload) + def get_libraries(self): + now = datetime.now(timezone.utc).astimezone().isoformat() + influx_payload = [] + params = {'cmd': 'get_libraries'} + + req = self.session.prepare_request(Request('GET', self.server.url + self.endpoint, params=params)) + g = connection_handler(self.session, req, self.server.verify_ssl) + + if not g: + return + + get = g['response']['data'] + + for library in get: + data = { + "measurement": "Tautulli", + "tags": { + "type": "library_stats", + "server": self.server.id, + "name": library['section_name'], + "section_type": library['section_type'] + }, + "time": now, + "fields": { + "libraries": str(library['section_name']) + } + } + influx_payload.append(data) + + self.dbmanager.write_points(influx_payload) + def get_stats(self): now = datetime.now(timezone.utc).astimezone().isoformat() influx_payload = []