From fbe8e1c8716cffaf7d8cbb5d03a436722dbb7eea Mon Sep 17 00:00:00 2001 From: Shark Date: Tue, 3 Dec 2024 23:37:07 +0300 Subject: [PATCH] update dashboard --- dashboard.json | 2186 ++++++++++++++++++++++++++++-------------------- 1 file changed, 1263 insertions(+), 923 deletions(-) diff --git a/dashboard.json b/dashboard.json index 5e55281..a5fc36b 100644 --- a/dashboard.json +++ b/dashboard.json @@ -18,392 +18,803 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 2, - "id": 36, + "id": 20, "links": [], - "liveNow": true, + "liveNow": false, "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 14, + "panels": [], + "title": "Syno", + "type": "row" + }, { "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" }, "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 13, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": 600000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - } + }, + "unit": "binBps" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "sata1" + }, + "properties": [ + { + "id": "displayName", + "value": "sata1" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sata2" + }, + "properties": [ + { + "id": "displayName", + "value": "sata2" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sata3" + }, + "properties": [ + { + "id": "displayName", + "value": "sata3" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sata4" + }, + "properties": [ + { + "id": "displayName", + "value": "sata4" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "sata5" + }, + "properties": [ + { + "id": "displayName", + "value": "sata5" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "nvme0n1" + }, + "properties": [ + { + "id": "displayName", + "value": "nvme0" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "nvme1n1" + }, + "properties": [ + { + "id": "displayName", + "value": "nvme1" + } + ] + } + ] }, "gridPos": { - "h": 2, - "w": 2, + "h": 6, + "w": 12, "x": 0, - "y": 0 + "y": 1 }, - "id": 14, + "id": 9, "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^upsEIdentityUPSFirmwareVerison$/", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } }, - "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "${source}" }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEIdentityUPSFirmwareVerison\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")", + "query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"storageIOTable\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"storageIONReadX\")\r\n |> filter(fn: (r) => contains(value: r[\"storageIODevice\"], set: ${devices:json}))\r\n |> derivative()\r\n |> aggregateWindow(every: 1m, fn: mean)\r\n", "refId": "A" } ], - "title": "UPS firmware", - "type": "stat" + "title": "Disk Throughput Read", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "mode": "columns", + "valueLabel": "storageIODevice" + } + } + ], + "type": "timeseries" }, { "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" }, "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "dark-red", + "mode": "palette-classic" }, - "mappings": [ - { - "options": { - "1": { - "color": "dark-green", - "index": 0, - "text": "Power on" - }, - "2": { - "color": "dark-green", - "index": 1, - "text": "Stand by" - }, - "3": { - "color": "yellow", - "index": 2, - "text": "By pass" - }, - "4": { - "color": "dark-green", - "index": 3, - "text": "Line" - }, - "5": { - "color": "yellow", - "index": 4, - "text": "On Battery" - }, - "6": { - "color": "yellow", - "index": 5, - "text": "Battery test" - }, - "7": { - "color": "dark-red", - "index": 6, - "text": "Fault" - }, - "8": { - "color": "yellow", - "index": 7, - "text": "Converter" - }, - "9": { - "color": "green", - "index": 8, - "text": "Eco" - }, - "10": { - "color": "green", - "index": 9, - "text": "Shutdown" - }, - "11": { - "color": "yellow", - "index": 10, - "text": "On booster" - }, - "12": { - "color": "yellow", - "index": 11, - "text": "On reducer" - }, - "13": { - "color": "super-light-blue", - "index": 12, - "text": "Other" - } - }, - "type": "value" + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 55, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": 600000, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" } - ], + }, + "mappings": [], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - } + }, + "unit": "percent" }, - "overrides": [] + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "I/O Wait", + "System", + "User" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] }, "gridPos": { - "h": 4, - "w": 4, - "x": 3, - "y": 0 + "h": 6, + "w": 12, + "x": 12, + "y": 1 }, - "id": 20, + "id": 11, "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "desc" + } }, - "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsESystemStatus\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")", - "refId": "A" + "query": "numCpus = from(bucket: \"telegraf\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"systemStats\")\n |> filter(fn: (r) => r[\"_field\"] == \"ssCpuNumCpus\")\n |> aggregateWindow(every: 1m, fn: mean)\n |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n |> keep(columns: [\"_time\", \"_start\", \"_stop\", \"host\", \"agent_host\", \"ssCpuNumCpus\"])\n\nstats = from(bucket: \"telegraf\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"systemStats\")\n |> filter(fn: (r) => r[\"_field\"] == \"ssCpuRawSystem\" or r[\"_field\"] == \"ssCpuRawUser\" or r[\"_field\"] == \"ssCpuRawWait\")\n |> derivative()\n |> aggregateWindow(every: 1m, fn: mean)\n |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n |> keep(columns: [\"_time\", \"_start\", \"_stop\", \"host\", \"agent_host\", \"ssCpuRawSystem\", \"ssCpuRawUser\", \"ssCpuRawWait\"])\n\njoin(\n tables: { numCpus: numCpus, stats: stats },\n on: [\"_time\", \"_start\", \"_stop\"]\n )\n |> map(fn: (r) => ({\n r with\n \"ssCpuRawSystem\": r[\"ssCpuRawSystem\"] / float(v: r[\"ssCpuNumCpus\"]),\n \"ssCpuRawUser\": r[\"ssCpuRawUser\"] / float(v: r[\"ssCpuNumCpus\"]),\n \"ssCpuRawWait\": r[\"ssCpuRawWait\"] / float(v: r[\"ssCpuNumCpus\"]),\n }))\n |> drop(columns: [\"ssCpuNumCpus\"])\n\n", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series" + } + ], + "title": "CPU", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "mode": "columns" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "_start": 1, + "_stop": 2, + "_time": 0, + "agent_host": 3, + "host": 4, + "ssCpuRawSystem": 6, + "ssCpuRawUser": 5, + "ssCpuRawWait": 7 + }, + "renameByName": { + "ssCpuRawSystem": "System", + "ssCpuRawUser": "User", + "ssCpuRawWait": "I/O Wait" + } + } + }, + { + "id": "calculateField", + "options": {} } ], - "title": "UPS Status", - "type": "stat" + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 13, + "panels": [], + "title": "Keenetic", + "type": "row" }, { "datasource": { - "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "type": "datasource", + "uid": "-- Mixed --" }, "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 47, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 60000, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": 600000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "dark-green", + "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - } + }, + "unit": "Bps" }, "overrides": [] }, "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 0 + "h": 6, + "w": 12, + "x": 0, + "y": 8 }, - "id": 13, + "id": 17, "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^upsEIdentityModel$/", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "alias": "Amigo", + "datasource": { + "type": "influxdb", + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" + }, + "query": "SELECT mean(\"rxspeed\") FROM \"interface stat\" WHERE (\"name\"::tag = 'PPPoE0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series" + }, + { + "alias": "ByFly", + "datasource": { + "type": "influxdb", + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" + }, + "hide": false, + "query": "SELECT mean(\"rxspeed\") FROM \"autogen\".\"interface stat\" WHERE (\"name\"::tag = 'PPPoE1') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series" }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.0.0", - "targets": [ { + "alias": "Wireguard", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEIdentityModel\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")", - "refId": "A" + "hide": false, + "query": "SELECT mean(\"rxspeed\") FROM \"interface stat\" WHERE (\"name\"::tag = 'Wireguard0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series" + }, + { + "alias": "OpenVPN", + "datasource": { + "type": "influxdb", + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" + }, + "hide": false, + "query": "SELECT mean(\"rxspeed\") FROM \"interface stat\" WHERE (\"name\"::tag = 'OpenVPN0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series" } ], - "title": "UPS Type", - "type": "stat" + "title": "Download", + "type": "timeseries" }, { "datasource": { - "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "type": "datasource", + "uid": "-- Mixed --" }, - "description": "", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 47, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 60000, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": 600000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "dark-red", + "color": "green", "value": null }, { - "color": "dark-green", - "value": 215 - }, - { - "color": "dark-red", - "value": 232 + "color": "red", + "value": 80 } ] }, - "unit": "volt" + "unit": "Bps" }, "overrides": [] }, "gridPos": { - "h": 2, - "w": 2, - "x": 11, - "y": 0 + "h": 6, + "w": 12, + "x": 12, + "y": 8 }, - "id": 16, + "id": 12, "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^upsESystemInputVoltage$/", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } }, - "pluginVersion": "11.0.0", "targets": [ { + "alias": "Amigo", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" or r[\"_field\"] == \"upsEPositiveBatteryVoltage\" or r[\"_field\"] == \"upsESystemInputVoltage\" or r[\"_field\"] == \"upsESystemOutputLoad\" or r[\"_field\"] == \"upsESystemOutputVoltage\") \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsESystemInputVoltage\" then float(v: r._value) / 10.0 \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", - "refId": "A" + "query": "SELECT mean(\"txspeed\") FROM \"interface stat\" WHERE (\"name\"::tag = 'PPPoE0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series" + }, + { + "alias": "ByFly", + "datasource": { + "type": "influxdb", + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" + }, + "hide": false, + "query": "SELECT mean(\"txspeed\") FROM \"autogen\".\"interface stat\" WHERE (\"name\"::tag = 'PPPoE1') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series" + }, + { + "alias": "Wireguard", + "datasource": { + "type": "influxdb", + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" + }, + "hide": false, + "query": "SELECT mean(\"txspeed\") FROM \"interface stat\" WHERE (\"name\"::tag = 'Wireguard0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series" + }, + { + "alias": "OpenVPN", + "datasource": { + "type": "influxdb", + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" + }, + "hide": false, + "query": "SELECT mean(\"txspeed\") FROM \"interface stat\" WHERE (\"name\"::tag = 'OpenVPN0') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series" } ], - "title": "Input Volts", - "type": "stat" + "title": "Upload", + "type": "timeseries" }, { "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" }, - "description": "", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": 600000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, + "links": [], "mappings": [], + "max": 100, "thresholds": { "mode": "absolute", "steps": [ { - "color": "dark-green", + "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] }, - "unit": "rothz" + "unit": "percent" }, "overrides": [] }, "gridPos": { - "h": 2, - "w": 2, - "x": 13, - "y": 0 + "h": 4, + "w": 12, + "x": 12, + "y": 14 }, - "id": 17, + "id": 16, "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { + "legend": { "calcs": [ - "lastNotNull" + "mean" ], - "fields": "/^upsESystemOutputFrequency$/", - "values": false + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } }, - "pluginVersion": "11.0.0", + "pluginVersion": "10.1.4", "targets": [ { + "alias": "CPU Load", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "c820a432-f19c-4c6a-a00b-e471ba205968" }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsESystemOutputFrequency\" ) \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsESystemOutputFrequency\" then float(v: r._value) / 10.0\r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", - "refId": "A" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "system", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"cpuload\") as \"CPU Usage\" FROM \"system\" WHERE $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "cpuload" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] } ], - "title": "Output Hz", - "type": "stat" + "title": "CPU Load", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 20, + "panels": [], + "title": "UPS", + "type": "row" }, { "datasource": { @@ -413,73 +824,163 @@ "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" + "custom": { + "axisBorderShow": true, + "axisCenteredZero": false, + "axisColorMode": "series", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ], - "max": 100, - "min": 0, + }, + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "#d44a3a", - "value": null + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "upsEPositiveBatteryVoltage" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Battery Voltage" + }, + { + "id": "unit", + "value": "volt" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "upsESystemInputVoltage" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Input Voltage" }, { - "color": "#299c46", - "value": 0 + "id": "unit", + "value": "volt" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "upsEBatteryEstimatedChargeRemaining" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Charge Level" }, { - "color": "rgba(237, 129, 40, 0.89)", - "value": 60 + "id": "unit", + "value": "percent" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "upsESystemOutputLoad" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Load" }, { - "color": "dark-red", - "value": 90 + "id": "unit", + "value": "percent" } ] }, - "unit": "percent" - }, - "overrides": [] + { + "matcher": { + "id": "byName", + "options": "upsESystemOutputVoltage" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Output Voltage" + }, + { + "id": "unit", + "value": "volt" + } + ] + } + ] }, "gridPos": { - "h": 4, - "w": 2, - "x": 16, - "y": 0 + "h": 8, + "w": 12, + "x": 0, + "y": 19 }, "id": 18, - "maxDataPoints": 100, "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^upsESystemOutputLoad$/", - "values": false + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } }, - "pluginVersion": "11.0.0", + "pluginVersion": "9.5.2", "targets": [ { - "alias": "$col", + "alias": "UPS Load", "datasource": { "type": "influxdb", "uid": "ddp38pe3t92wwc" @@ -493,7 +994,7 @@ }, { "params": [ - "null" + "previous" ], "type": "fill" } @@ -501,103 +1002,181 @@ "measurement": "synoSystem", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsESystemOutputLoad\" ) \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsESystemOutputLoad\" then float(v: r._value) \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", + "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" or r[\"_field\"] == \"upsEPositiveBatteryVoltage\" or r[\"_field\"] == \"upsESystemInputVoltage\" or r[\"_field\"] == \"upsESystemOutputLoad\" or r[\"_field\"] == \"upsESystemOutputVoltage\") \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsEPositiveBatteryVoltage\" then float(v: r._value) / 10.0 \r\n else if r[\"_field\"] == \"upsESystemInputVoltage\" then float(v: r._value) / 10.0 \r\n else if r[\"_field\"] == \"upsESystemOutputVoltage\" then float(v: r._value) / 10.0 \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ - "upsBatteryCharge" + "upsLoad" ], "type": "field" }, { "params": [], - "type": "last" + "type": "mean" } ] ], "tags": [] } ], - "title": "UPS Load", - "type": "gauge" + "title": "IPPON UPS", + "type": "timeseries" }, { "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" }, "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" + "custom": { + "axisBorderShow": true, + "axisCenteredZero": false, + "axisColorMode": "series", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ], - "max": 41.2, - "min": 31.5, + }, + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "#d44a3a", + "color": "green", "value": null }, { - "color": "rgba(237, 129, 40, 0.89)", - "value": 34 + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "upsBatteryCharge" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Charge Level" }, { - "color": "#299c46", - "value": 37 + "id": "unit", + "value": "percent" } ] }, - "unit": "volt" - }, - "overrides": [] + { + "matcher": { + "id": "byName", + "options": "upsBatteryVoltage" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Battery Voltage" + }, + { + "id": "unit", + "value": "volt" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "upsInputVoltage" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Input Voltage" + }, + { + "id": "unit", + "value": "volt" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "upsLoad" + }, + "properties": [ + { + "id": "displayName", + "value": "UPS Load" + }, + { + "id": "unit", + "value": "percent" + } + ] + } + ] }, "gridPos": { - "h": 4, - "w": 2, - "x": 18, - "y": 0 + "h": 8, + "w": 12, + "x": 12, + "y": 19 }, - "id": 9, - "maxDataPoints": 100, + "id": 19, "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^upsEPositiveBatteryVoltage$/", - "values": false + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "right", + "showLegend": false }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } }, - "pluginVersion": "11.0.0", + "pluginVersion": "9.5.2", "targets": [ { - "alias": "$col", + "alias": "UPS Load", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "${source}" }, "groupBy": [ { @@ -608,7 +1187,7 @@ }, { "params": [ - "null" + "previous" ], "type": "fill" } @@ -616,107 +1195,30 @@ "measurement": "synoSystem", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" or r[\"_field\"] == \"upsEPositiveBatteryVoltage\" or r[\"_field\"] == \"upsESystemInputVoltage\" or r[\"_field\"] == \"upsESystemOutputLoad\" or r[\"_field\"] == \"upsESystemOutputVoltage\") \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsEPositiveBatteryVoltage\" then float(v: r._value) / 10.0 \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", + "query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups2\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsLoad\" or r[\"_field\"] == \"upsInputVoltage\" or r[\"_field\"] == \"upsBatteryVoltage\" or r[\"_field\"] == \"upsBatteryCharge\")\r\n |> aggregateWindow(every: 10s, fn: mean)\r\n |> yield(name: \"mean\")", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ - "upsBatteryCharge" + "upsLoad" ], "type": "field" }, { "params": [], - "type": "last" + "type": "mean" } ] ], "tags": [] - } - ], - "title": "Battery Volts", - "type": "gauge" - }, - { - "datasource": { - "type": "influxdb", - "uid": "ddp38pe3t92wwc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#d44a3a", - "value": null - }, - { - "color": "dark-red", - "value": 0 - }, - { - "color": "orange", - "value": 30 - }, - { - "color": "dark-green", - "value": 70 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 20, - "y": 0 - }, - "id": 22, - "maxDataPoints": 100, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^upsEBatteryEstimatedChargeRemaining$/", - "values": false }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.0.0", - "targets": [ { - "alias": "$col", + "alias": "UPS Charge Level", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "${source}" }, "groupBy": [ { @@ -727,7 +1229,7 @@ }, { "params": [ - "null" + "previous" ], "type": "fill" } @@ -735,8 +1237,8 @@ "measurement": "synoSystem", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" ) \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" then float(v: r._value) \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", - "refId": "A", + "query": "", + "refId": "B", "resultFormat": "time_series", "select": [ [ @@ -753,89 +1255,12 @@ ] ], "tags": [] - } - ], - "title": "Battery Charge", - "type": "gauge" - }, - { - "datasource": { - "type": "influxdb", - "uid": "ddp38pe3t92wwc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "transparent", - "value": null - }, - { - "color": "dark-green", - "value": 0 - }, - { - "color": "dark-orange", - "value": 55 - }, - { - "color": "dark-red", - "value": 75 - } - ] - }, - "unit": "celsius" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 22, - "y": 0 - }, - "id": 21, - "maxDataPoints": 100, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^upsESystemTemperature$/", - "values": false }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.0.0", - "targets": [ { - "alias": "$col", + "alias": "UPS Input Voltage", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "${source}" }, "groupBy": [ { @@ -846,7 +1271,7 @@ }, { "params": [ - "null" + "previous" ], "type": "fill" } @@ -854,211 +1279,106 @@ "measurement": "synoSystem", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsESystemTemperature\" ) \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsESystemTemperature\" then float(v: r._value) / 10.0 \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", - "refId": "A", + "refId": "C", "resultFormat": "time_series", "select": [ [ { "params": [ - "upsBatteryCharge" + "upsInputVoltage" ], "type": "field" }, { "params": [], - "type": "last" + "type": "mean" } ] ], "tags": [] - } - ], - "title": "UPS Temp", - "type": "gauge" - }, - { - "datasource": { - "type": "influxdb", - "uid": "ddp38pe3t92wwc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 0, - "y": 2 - }, - "id": 12, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^upsEIdentityAgentSoftwareVerison$/", - "values": false }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.0.0", - "targets": [ { + "alias": "UPS Battery Voltage", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" - }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEIdentityAgentSoftwareVerison\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")", - "refId": "A" - } - ], - "title": "Module firmware", - "type": "stat" - }, - { - "datasource": { - "type": "influxdb", - "uid": "ddp38pe3t92wwc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" + "uid": "${source}" }, - "mappings": [ + "groupBy": [ { - "options": { - "1": { - "color": "super-light-blue", - "index": 0, - "text": "Unknown" - }, - "2": { - "color": "dark-green", - "index": 1, - "text": "Normal" - }, - "3": { - "color": "orange", - "index": 2, - "text": "Low" - }, - "4": { - "color": "dark-orange", - "index": 3, - "text": "Depleted" - }, - "5": { - "color": "orange", - "index": 4, - "text": "Discharging" - }, - "6": { - "color": "dark-red", - "index": 5, - "text": "Failure" - } - }, - "type": "value" + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "previous" + ], + "type": "fill" } ], - "thresholds": { - "mode": "absolute", - "steps": [ + "measurement": "synoSystem", + "orderByTime": "ASC", + "policy": "default", + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "upsBatteryVoltage" + ], + "type": "field" + }, { - "color": "green", - "value": null + "params": [], + "type": "mean" } ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 2 - }, - "id": 8, - "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.0.0", - "targets": [ - { - "datasource": { - "type": "influxdb", - "uid": "ddp38pe3t92wwc" - }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEBatteryStatus\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")", - "refId": "A" + "tags": [] } ], - "title": "Battery Status", - "type": "stat" + "title": "APC UPS", + "type": "timeseries" }, { "datasource": { "type": "influxdb", "uid": "ddp38pe3t92wwc" }, - "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, - "mappings": [], + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 41.2, + "min": 31.5, "thresholds": { "mode": "absolute", "steps": [ { - "color": "dark-red", + "color": "#d44a3a", "value": null }, { - "color": "dark-green", - "value": 215 + "color": "rgba(237, 129, 40, 0.89)", + "value": 34 }, { - "color": "dark-red", - "value": 232 + "color": "#299c46", + "value": 37 } ] }, @@ -1067,286 +1387,269 @@ "overrides": [] }, "gridPos": { - "h": 2, + "h": 4, "w": 2, - "x": 11, - "y": 2 + "x": 7, + "y": 27 }, - "id": 19, + "id": 21, + "maxDataPoints": 100, "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], - "fields": "/^upsESystemOutputVoltage$/", + "fields": "/^upsEPositiveBatteryVoltage$/", "values": false }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, "pluginVersion": "11.0.0", "targets": [ { + "alias": "$col", "datasource": { "type": "influxdb", "uid": "ddp38pe3t92wwc" }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsESystemOutputVoltage\") \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsESystemOutputVoltage\" then float(v: r._value) / 10.0 \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", - "refId": "A" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "synoSystem", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" or r[\"_field\"] == \"upsEPositiveBatteryVoltage\" or r[\"_field\"] == \"upsESystemInputVoltage\" or r[\"_field\"] == \"upsESystemOutputLoad\" or r[\"_field\"] == \"upsESystemOutputVoltage\") \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsEPositiveBatteryVoltage\" then float(v: r._value) / 10.0 \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "upsBatteryCharge" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [] } ], - "title": "Output Volts", - "type": "stat" + "title": "Battery Volts", + "type": "gauge" }, { "datasource": { "type": "influxdb", "uid": "ddp38pe3t92wwc" }, - "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, - "mappings": [], + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { - "color": "dark-green", + "color": "#d44a3a", "value": null + }, + { + "color": "dark-red", + "value": 0 + }, + { + "color": "orange", + "value": 30 + }, + { + "color": "dark-green", + "value": 70 } ] }, - "unit": "s" + "unit": "percent" }, "overrides": [] }, "gridPos": { - "h": 2, + "h": 4, "w": 2, - "x": 13, - "y": 2 + "x": 9, + "y": 27 }, - "id": 15, + "id": 22, + "maxDataPoints": 100, "options": { - "colorMode": "background", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], - "fields": "/^upsESecondsOnBattery$/", + "fields": "/^upsEBatteryEstimatedChargeRemaining$/", "values": false }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, "pluginVersion": "11.0.0", "targets": [ { + "alias": "$col", "datasource": { "type": "influxdb", "uid": "ddp38pe3t92wwc" }, - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsESecondsOnBattery\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")", - "refId": "A" - } - ], - "title": "Time on battery", - "type": "stat" - }, - { - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 4 - }, - "id": 4, - "panels": [], - "repeat": "bucket", - "repeatDirection": "h", - "title": "Data", - "type": "row" - }, - { - "datasource": { - "type": "influxdb", - "uid": "ddp38pe3t92wwc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": true, - "axisCenteredZero": false, - "axisColorMode": "series", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "auto", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" }, - "thresholdsStyle": { - "mode": "off" + { + "params": [ + "null" + ], + "type": "fill" } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "upsEPositiveBatteryVoltage" - }, - "properties": [ - { - "id": "displayName", - "value": "UPS Battery Voltage" - }, - { - "id": "unit", - "value": "volt" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "upsESystemInputVoltage" - }, - "properties": [ + ], + "measurement": "synoSystem", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" ) \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" then float(v: r._value) \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ { - "id": "displayName", - "value": "UPS Input Voltage" + "params": [ + "upsBatteryCharge" + ], + "type": "field" }, { - "id": "unit", - "value": "volt" + "params": [], + "type": "last" } ] + ], + "tags": [] + } + ], + "title": "Battery Charge", + "type": "gauge" + }, + { + "datasource": { + "type": "influxdb", + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - { - "matcher": { - "id": "byName", - "options": "upsEBatteryEstimatedChargeRemaining" - }, - "properties": [ - { - "id": "displayName", - "value": "UPS Charge Level" + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } }, + "type": "special" + } + ], + "max": 13.4, + "min": 10.7, + "thresholds": { + "mode": "absolute", + "steps": [ { - "id": "unit", - "value": "percent" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "upsESystemOutputLoad" - }, - "properties": [ - { - "id": "displayName", - "value": "UPS Load" + "color": "#d44a3a", + "value": null }, { - "id": "unit", - "value": "percent" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "upsESystemOutputVoltage" - }, - "properties": [ - { - "id": "displayName", - "value": "UPS Output Voltage" + "color": "rgba(237, 129, 40, 0.89)", + "value": 11 }, { - "id": "unit", - "value": "volt" + "color": "#299c46", + "value": 12 } ] - } - ] + }, + "unit": "volt" + }, + "overrides": [] }, "gridPos": { - "h": 15, - "w": 24, - "x": 0, - "y": 5 + "h": 4, + "w": 2, + "x": 13, + "y": 27 }, - "id": 5, + "id": 24, + "maxDataPoints": 100, "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": false + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "tooltip": { - "maxHeight": 600, - "mode": "multi", - "sort": "none" - } + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "9.5.2", + "pluginVersion": "11.0.0", "targets": [ { - "alias": "UPS Load", + "alias": "$col", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" }, "groupBy": [ { @@ -1357,7 +1660,7 @@ }, { "params": [ - "previous" + "null" ], "type": "fill" } @@ -1365,133 +1668,107 @@ "measurement": "synoSystem", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsEBatteryEstimatedChargeRemaining\" or r[\"_field\"] == \"upsEPositiveBatteryVoltage\" or r[\"_field\"] == \"upsESystemInputVoltage\" or r[\"_field\"] == \"upsESystemOutputLoad\" or r[\"_field\"] == \"upsESystemOutputVoltage\") \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsEPositiveBatteryVoltage\" then float(v: r._value) / 10.0 \r\n else if r[\"_field\"] == \"upsESystemInputVoltage\" then float(v: r._value) / 10.0 \r\n else if r[\"_field\"] == \"upsESystemOutputVoltage\" then float(v: r._value) / 10.0 \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", + "query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups2\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsBatteryVoltage\" )\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")\r\n\r\n\r\n", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ - "upsLoad" + "upsBatteryCharge" ], "type": "field" }, { "params": [], - "type": "mean" + "type": "last" } ] ], "tags": [] } ], - "title": "IPPON UPS", - "type": "timeseries" + "title": "Battery Volts", + "type": "gauge" }, { "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" }, "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "mode": "thresholds" }, - "custom": { - "axisBorderShow": true, - "axisCenteredZero": false, - "axisColorMode": "series", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "auto", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } - }, - "mappings": [], + ], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { - "color": "green", + "color": "#d44a3a", "value": null }, { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "upsESystemTemperature" - }, - "properties": [ + "color": "dark-red", + "value": 0 + }, { - "id": "displayName", - "value": "UPS Temp" + "color": "orange", + "value": 30 }, { - "id": "unit", - "value": "celsius" + "color": "dark-green", + "value": 70 } ] - } - ] + }, + "unit": "percent" + }, + "overrides": [] }, "gridPos": { - "h": 11, - "w": 10, - "x": 0, - "y": 20 + "h": 4, + "w": 2, + "x": 15, + "y": 27 }, - "id": 23, + "id": 25, + "maxDataPoints": 100, "options": { - "legend": { - "calcs": [], - "displayMode": "table", - "placement": "right", - "showLegend": false + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/^upsBatteryCharge \\{agent_host=\"10\\.0\\.0\\.10\", host=\"stinger161\"\\}$/", + "values": false }, - "tooltip": { - "maxHeight": 600, - "mode": "multi", - "sort": "none" - } + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "9.5.2", + "pluginVersion": "11.0.0", "targets": [ { - "alias": "UPS Load", + "alias": "$col", "datasource": { "type": "influxdb", - "uid": "ddp38pe3t92wwc" + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" }, "groupBy": [ { @@ -1502,7 +1779,7 @@ }, { "params": [ - "previous" + "null" ], "type": "fill" } @@ -1510,45 +1787,108 @@ "measurement": "synoSystem", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: \"ups\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups_data\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsESystemTemperature\" ) \r\n |> map(fn: (r) => ({\r\n _time: r._time,\r\n _value: \r\n if r[\"_field\"] == \"upsESystemTemperature\" then float(v: r._value) / 10.0 \r\n else float(v: r._value),\r\n _field: r._field,\r\n _measurement: r._measurement\r\n }))\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> yield(name: \"mean\")\r\n", + "query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"ups2\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"upsBatteryCharge\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)\r\n |> yield(name: \"last\")", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ - "upsLoad" + "upsBatteryCharge" ], "type": "field" }, { "params": [], - "type": "mean" + "type": "last" } ] ], "tags": [] } ], - "title": "IPPON Temp", - "type": "timeseries" + "title": "Battery Charge", + "type": "gauge" } ], - "refresh": "5s", + "refresh": "1m", "schemaVersion": 39, "tags": [], "templating": { - "list": [] + "list": [ + { + "current": { + "selected": true, + "text": [ + "sata1", + "sata2", + "sata3", + "sata4", + "sata5" + ], + "value": [ + "sata1", + "sata2", + "sata3", + "sata4", + "sata5" + ] + }, + "datasource": { + "type": "influxdb", + "uid": "f3b099fe-d300-4b10-97cd-9c4ef886bda8" + }, + "definition": "import \"influxdata/influxdb/schema\"\n\nschema.tagValues(\n bucket: \"telegraf\",\n tag: \"storageIODevice\"\n)", + "hide": 0, + "includeAll": true, + "label": "Devices", + "multi": true, + "name": "devices", + "options": [], + "query": "import \"influxdata/influxdb/schema\"\n\nschema.tagValues(\n bucket: \"telegraf\",\n tag: \"storageIODevice\"\n)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] }, "time": { - "from": "now-6h", + "from": "now-24h", "to": "now" }, "timeRangeUpdatedDuringEditOrView": false, - "timepicker": {}, + "timepicker": { + "hidden": false, + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ], + "type": "timepicker" + }, "timezone": "browser", - "title": "UPS", - "uid": "be5qevsfuwc8we", - "version": 35, + "title": "Home", + "uid": "e392b1c7-0340-4be1-9c07-d66b511ced01", + "version": 93, "weekStart": "" } \ No newline at end of file