Created
January 23, 2022 06:14
-
-
Save ibizaman/e4a79c2e1800a74c25ba3755aa75426a to your computer and use it in GitHub Desktop.
Torrent Grafana Dashboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", | |
| "target": { | |
| "limit": 100, | |
| "matchAny": false, | |
| "tags": [], | |
| "type": "dashboard" | |
| }, | |
| "type": "dashboard" | |
| } | |
| ] | |
| }, | |
| "editable": true, | |
| "fiscalYearStartMonth": 0, | |
| "graphTooltip": 0, | |
| "id": 5, | |
| "iteration": 1642834354129, | |
| "links": [], | |
| "liveNow": false, | |
| "panels": [ | |
| { | |
| "collapsed": false, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "id": 15, | |
| "panels": [], | |
| "title": "Torrent", | |
| "type": "row" | |
| }, | |
| { | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "decimals": 0, | |
| "mappings": [], | |
| "min": 0, | |
| "thresholds": { | |
| "mode": "percentage", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "#EAB839", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "decgbytes" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 5, | |
| "w": 3, | |
| "x": 0, | |
| "y": 1 | |
| }, | |
| "id": 19, | |
| "maxPerRow": 3, | |
| "options": { | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showThresholdLabels": true, | |
| "showThresholdMarkers": true, | |
| "text": {} | |
| }, | |
| "pluginVersion": "8.4.0-pre", | |
| "repeat": "mountpoint", | |
| "repeatDirection": "v", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": false, | |
| "expr": "(node_filesystem_size_bytes{mountpoint=~\"$mountpoint\"}-node_filesystem_free_bytes{mountpoint=~\"$mountpoint\"})/1e9", | |
| "format": "table", | |
| "hide": false, | |
| "instant": true, | |
| "interval": "", | |
| "legendFormat": "{{mountpoint}}", | |
| "refId": "A" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": false, | |
| "expr": "node_filesystem_size_bytes{mountpoint=~\"$mountpoint\"}/1e9", | |
| "format": "table", | |
| "hide": false, | |
| "instant": true, | |
| "interval": "", | |
| "legendFormat": "{{mountpoint}}", | |
| "refId": "B" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": false, | |
| "expr": "ceil(node_filesystem_size_bytes{mountpoint=~\"$mountpoint\"}/1e9 * 0.8)", | |
| "format": "table", | |
| "hide": false, | |
| "instant": true, | |
| "interval": "", | |
| "legendFormat": "{{mountpoint}}", | |
| "refId": "C" | |
| } | |
| ], | |
| "title": "$mountpoint Used Space", | |
| "transformations": [ | |
| { | |
| "id": "merge", | |
| "options": {} | |
| }, | |
| { | |
| "disabled": true, | |
| "id": "configFromData", | |
| "options": { | |
| "applyTo": { | |
| "id": "byType", | |
| "options": "number" | |
| }, | |
| "configRefId": "B", | |
| "mappings": [ | |
| { | |
| "fieldName": "Value #B", | |
| "handlerKey": "max" | |
| }, | |
| { | |
| "fieldName": "Time", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "device", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "domain", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "fstype", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "hostname", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "instance", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "job", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "mountpoint", | |
| "handlerKey": "__ignore" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "rowsToFields", | |
| "options": { | |
| "mappings": [ | |
| { | |
| "fieldName": "Value #B", | |
| "handlerKey": "max" | |
| }, | |
| { | |
| "fieldName": "Value #C", | |
| "handlerKey": "threshold1" | |
| }, | |
| { | |
| "fieldName": "mountpoint", | |
| "handlerKey": "field.name" | |
| }, | |
| { | |
| "fieldName": "Time", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "device", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "domain", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "fstype", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "hostname", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "instance", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "job", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "Value #A", | |
| "handlerKey": "field.value" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "type": "gauge" | |
| }, | |
| { | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "yellow", | |
| "value": null | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 15, | |
| "w": 4, | |
| "x": 3, | |
| "y": 1 | |
| }, | |
| "id": 17, | |
| "options": { | |
| "colorMode": "none", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "textMode": "auto" | |
| }, | |
| "pluginVersion": "8.4.0-pre", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": true, | |
| "expr": "deluge_torrents", | |
| "instant": false, | |
| "interval": "", | |
| "legendFormat": "{{state}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Torrent States", | |
| "type": "stat" | |
| }, | |
| { | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "continuous-RdYlGr" | |
| }, | |
| "mappings": [], | |
| "max": 100, | |
| "min": 0, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "percent" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 5, | |
| "x": 7, | |
| "y": 1 | |
| }, | |
| "id": 23, | |
| "options": { | |
| "displayMode": "gradient", | |
| "orientation": "horizontal", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showUnfilled": true | |
| }, | |
| "pluginVersion": "8.4.0-pre", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": true, | |
| "expr": "deluge_torrent_progress{state=\"downloading\",name=~\"$torrent\"}", | |
| "format": "time_series", | |
| "instant": false, | |
| "interval": "", | |
| "legendFormat": "{{name}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "In Progress Downloads", | |
| "transformations": [], | |
| "type": "bargauge" | |
| }, | |
| { | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [ | |
| { | |
| "options": { | |
| "1642487291": { | |
| "color": "semi-dark-red", | |
| "index": 0, | |
| "text": "Never" | |
| } | |
| }, | |
| "type": "value" | |
| } | |
| ], | |
| "max": 3600, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "semi-dark-green", | |
| "value": null | |
| }, | |
| { | |
| "color": "#EAB839", | |
| "value": 86400 | |
| }, | |
| { | |
| "color": "semi-dark-red", | |
| "value": 1642487290 | |
| } | |
| ] | |
| }, | |
| "unit": "s" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 6, | |
| "x": 12, | |
| "y": 1 | |
| }, | |
| "id": 29, | |
| "options": { | |
| "displayMode": "basic", | |
| "orientation": "horizontal", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showUnfilled": true | |
| }, | |
| "pluginVersion": "8.4.0-pre", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": false, | |
| "expr": "time()-deluge_torrent_last_seen_complete{state=\"downloading\",name=~\"$torrent\"}", | |
| "instant": true, | |
| "interval": "", | |
| "legendFormat": "{{name}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Last Seen Completed", | |
| "transformations": [ | |
| { | |
| "id": "seriesToRows", | |
| "options": {} | |
| }, | |
| { | |
| "id": "sortBy", | |
| "options": { | |
| "fields": {}, | |
| "sort": [ | |
| { | |
| "desc": true, | |
| "field": "Value" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "rowsToFields", | |
| "options": { | |
| "mappings": [ | |
| { | |
| "fieldName": "Time", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "Value", | |
| "handlerKey": "field.value" | |
| }, | |
| { | |
| "fieldName": "Metric", | |
| "handlerKey": "field.name" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "type": "bargauge" | |
| }, | |
| { | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 0, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "lineInterpolation": "linear", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "Bps" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 6, | |
| "x": 18, | |
| "y": 1 | |
| }, | |
| "id": 35, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": true, | |
| "expr": "rate(node_network_receive_bytes_total{device=\"tun0\"}[1m])", | |
| "interval": "", | |
| "legendFormat": "in", | |
| "refId": "A" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": true, | |
| "expr": "rate(node_network_transmit_bytes_total{device=\"tun0\"}[1m])", | |
| "hide": false, | |
| "interval": "", | |
| "legendFormat": "out", | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "VPN Network I/O", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 0, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "lineInterpolation": "linear", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "max": 100, | |
| "min": 0, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "percent" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 5, | |
| "x": 7, | |
| "y": 9 | |
| }, | |
| "id": 30, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "multi", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "8.3.0", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": true, | |
| "expr": "deluge_torrent_progress{state=\"downloading\",name=~\"$torrent\"}", | |
| "format": "time_series", | |
| "instant": false, | |
| "interval": "", | |
| "legendFormat": "{{name}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "In Progress Downloads", | |
| "transformations": [], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [ | |
| { | |
| "options": { | |
| "-1": { | |
| "index": 0, | |
| "text": "Never" | |
| } | |
| }, | |
| "type": "value" | |
| } | |
| ], | |
| "max": 86400, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "semi-dark-red", | |
| "value": null | |
| }, | |
| { | |
| "color": "semi-dark-green", | |
| "value": 1 | |
| }, | |
| { | |
| "color": "semi-dark-orange", | |
| "value": 86400 | |
| } | |
| ] | |
| }, | |
| "unit": "s" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 6, | |
| "x": 12, | |
| "y": 9 | |
| }, | |
| "id": 31, | |
| "options": { | |
| "displayMode": "basic", | |
| "orientation": "horizontal", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showUnfilled": true | |
| }, | |
| "pluginVersion": "8.4.0-pre", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": false, | |
| "expr": "deluge_torrent_time_since_download{state=\"downloading\",name=~\"$torrent\"}", | |
| "instant": true, | |
| "interval": "", | |
| "legendFormat": "{{name}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Last Download", | |
| "transformations": [ | |
| { | |
| "id": "seriesToRows", | |
| "options": {} | |
| }, | |
| { | |
| "id": "sortBy", | |
| "options": { | |
| "fields": {}, | |
| "sort": [ | |
| { | |
| "desc": false, | |
| "field": "Value" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "rowsToFields", | |
| "options": { | |
| "mappings": [ | |
| { | |
| "fieldName": "Time", | |
| "handlerKey": "__ignore" | |
| }, | |
| { | |
| "fieldName": "Value", | |
| "handlerKey": "field.value" | |
| }, | |
| { | |
| "fieldName": "Metric", | |
| "handlerKey": "field.name" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "type": "bargauge" | |
| }, | |
| { | |
| "collapsed": false, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 17 | |
| }, | |
| "id": 9, | |
| "panels": [], | |
| "title": "Services", | |
| "type": "row" | |
| }, | |
| { | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 0, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "lineInterpolation": "linear", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 4, | |
| "w": 8, | |
| "x": 0, | |
| "y": 18 | |
| }, | |
| "id": 6, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom" | |
| }, | |
| "tooltip": { | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "2ZFYhCz7k" | |
| }, | |
| "exemplar": true, | |
| "expr": "node_systemd_unit_state{name=~\"deluged.service|deluge-web.service|openvpn-client@.*.service\",state=\"active\"}", | |
| "interval": "", | |
| "legendFormat": "{{name}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Services Up", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "wSbA8Fonk" | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 16, | |
| "x": 8, | |
| "y": 18 | |
| }, | |
| "id": 2, | |
| "options": { | |
| "dedupStrategy": "exact", | |
| "enableLogDetails": false, | |
| "prettifyLogMessage": false, | |
| "showCommonLabels": false, | |
| "showLabels": false, | |
| "showTime": true, | |
| "sortOrder": "Descending", | |
| "wrapLogMessage": false | |
| }, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "wSbA8Fonk" | |
| }, | |
| "expr": "{unit=\"deluged.service\",level=~\"$level\"}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Deluge Logs", | |
| "type": "logs" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "wSbA8Fonk" | |
| }, | |
| "gridPos": { | |
| "h": 5, | |
| "w": 4, | |
| "x": 0, | |
| "y": 22 | |
| }, | |
| "id": 4, | |
| "options": { | |
| "dedupStrategy": "exact", | |
| "enableLogDetails": false, | |
| "prettifyLogMessage": false, | |
| "showCommonLabels": false, | |
| "showLabels": false, | |
| "showTime": false, | |
| "sortOrder": "Descending", | |
| "wrapLogMessage": false | |
| }, | |
| "pluginVersion": "8.3.0", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "wSbA8Fonk" | |
| }, | |
| "expr": "{unit=\"deluged.service\"} |= \"on_alert_external_ip\" | line_format \"{{.ip}}\"", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Latest External IPs", | |
| "type": "logs" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "wSbA8Fonk" | |
| }, | |
| "gridPos": { | |
| "h": 5, | |
| "w": 4, | |
| "x": 4, | |
| "y": 22 | |
| }, | |
| "id": 13, | |
| "options": { | |
| "dedupStrategy": "exact", | |
| "enableLogDetails": false, | |
| "prettifyLogMessage": false, | |
| "showCommonLabels": false, | |
| "showLabels": false, | |
| "showTime": false, | |
| "sortOrder": "Descending", | |
| "wrapLogMessage": false | |
| }, | |
| "pluginVersion": "8.3.0", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "wSbA8Fonk" | |
| }, | |
| "expr": "{unit=~\"openvpn-client@.*.service\"} |= \"config -s listen_interface\" | pattern \"<_> listen_interface <ip>'\" | line_format \"{{.ip}}\"", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Latest Interface IPs", | |
| "type": "logs" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "wSbA8Fonk" | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 16, | |
| "x": 8, | |
| "y": 27 | |
| }, | |
| "id": 7, | |
| "options": { | |
| "dedupStrategy": "exact", | |
| "enableLogDetails": false, | |
| "prettifyLogMessage": false, | |
| "showCommonLabels": false, | |
| "showLabels": false, | |
| "showTime": true, | |
| "sortOrder": "Descending", | |
| "wrapLogMessage": false | |
| }, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "loki", | |
| "uid": "wSbA8Fonk" | |
| }, | |
| "expr": "{unit=~\"openvpn-client@.+.service\",level=~\"$level\"}", | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "VPN Logs", | |
| "type": "logs" | |
| } | |
| ], | |
| "refresh": "10s", | |
| "schemaVersion": 34, | |
| "style": "dark", | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "allValue": ".*", | |
| "current": { | |
| "selected": false, | |
| "text": [ | |
| "All" | |
| ], | |
| "value": [ | |
| "$__all" | |
| ] | |
| }, | |
| "hide": 0, | |
| "includeAll": true, | |
| "label": "", | |
| "multi": true, | |
| "name": "level", | |
| "options": [ | |
| { | |
| "selected": true, | |
| "text": "All", | |
| "value": "$__all" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "warning", | |
| "value": "warning" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "error", | |
| "value": "error" | |
| } | |
| ], | |
| "query": "warning,error", | |
| "queryValue": "", | |
| "skipUrlSync": false, | |
| "type": "custom" | |
| }, | |
| { | |
| "current": { | |
| "selected": false, | |
| "text": [ | |
| "All" | |
| ], | |
| "value": [ | |
| "$__all" | |
| ] | |
| }, | |
| "hide": 2, | |
| "includeAll": true, | |
| "multi": true, | |
| "name": "mountpoint", | |
| "options": [ | |
| { | |
| "selected": true, | |
| "text": "All", | |
| "value": "$__all" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "/srv/movies", | |
| "value": "/srv/movies" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "/srv/music", | |
| "value": "/srv/music" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "/srv/series", | |
| "value": "/srv/series" | |
| } | |
| ], | |
| "query": "/srv/movies,/srv/music,/srv/series", | |
| "queryValue": "", | |
| "skipUrlSync": false, | |
| "type": "custom" | |
| }, | |
| { | |
| "current": { | |
| "selected": true, | |
| "text": [ | |
| "All" | |
| ], | |
| "value": [ | |
| "$__all" | |
| ] | |
| }, | |
| "definition": "deluge_torrent_progress", | |
| "hide": 0, | |
| "includeAll": true, | |
| "multi": true, | |
| "name": "torrent", | |
| "options": [], | |
| "query": { | |
| "query": "deluge_torrent_progress", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 2, | |
| "regex": "/.*name=\"(?<text>[^\"]+)\".*/", | |
| "skipUrlSync": false, | |
| "sort": 0, | |
| "type": "query" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-6h", | |
| "to": "now" | |
| }, | |
| "timepicker": {}, | |
| "timezone": "", | |
| "title": "Torrents", | |
| "uid": "Bg5L6T17k", | |
| "version": 23, | |
| "weekStart": "" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment