Skip to content
Snippets Groups Projects
Commit aa2b8428 authored by Jan David Mol's avatar Jan David Mol
Browse files

Improved display of power-consumption statistics

parent b4e422cb
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 20,
"iteration": 1655377230789,
"iteration": 1655461637744,
"links": [
{
"asDropdown": true,
......@@ -130,14 +130,18 @@
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "custom.showPoints",
"value": "never"
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 8,
"h": 8,
"w": 7,
"x": 0,
"y": 1
},
......@@ -163,7 +167,7 @@
"exemplar": true,
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 > 0",
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "{{name}}: {{x}} / {{y}}",
"range": true,
"refId": "A"
},
......@@ -192,11 +196,39 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mode": "palette-classic"
},
"custom": {
"axisLabel": "Average",
"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",
"mode": "percentage",
"steps": [
{
"color": "green",
......@@ -206,28 +238,42 @@
},
"unit": "mamp"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.axisLabel",
"value": "Standard Deviation"
}
]
}
]
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"h": 8,
"w": 6,
"x": 7,
"y": 1
},
"id": 35,
"id": 55,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"textMode": "value"
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.5.3",
"targets": [
......@@ -238,66 +284,14 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > $threshold_amp) * 1000",
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > 0 > $threshold_amp) * 1000",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "standard deviation",
"range": true,
"refId": "A"
}
],
"title": "Average > $threshold_amp A",
"transformations": [],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "mamp"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 12,
"y": 1
},
"id": 33,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
......@@ -305,16 +299,18 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} < $threshold_amp > 0) * 1000",
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > 0 > $threshold_amp) * 1000",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "average",
"range": true,
"refId": "A"
"refId": "B"
}
],
"title": "StdDev > $threshold_amp A",
"type": "stat"
"title": "Statistics between inputs > $threshold_amp A",
"type": "timeseries"
},
{
"datasource": {
......@@ -325,22 +321,39 @@
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "purple",
"mode": "fixed"
"mode": "palette-classic"
},
"custom": {
"fillOpacity": 80,
"axisLabel": "Average",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
"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",
"mode": "percentage",
"steps": [
{
"color": "green",
......@@ -350,88 +363,60 @@
},
"unit": "mamp"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.axisLabel",
"value": "Standard Deviation"
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"h": 8,
"w": 6,
"x": 13,
"y": 1
},
"id": 34,
"id": 56,
"options": {
"bucketOffset": 0,
"combine": true,
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"exemplar": true,
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 > 0",
"editorMode": "code",
"exemplar": false,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > 0 < $threshold_amp) * 1000",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "standard deviation",
"range": true,
"refId": "A"
}
],
"title": "$measurement Current Histogram",
"type": "histogram"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "mamp"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"y": 4
},
"id": 40,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
......@@ -439,16 +424,18 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 < ($threshold_amp * 1000) > 0)",
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > 0 < $threshold_amp) * 1000",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "average",
"range": true,
"refId": "A"
"refId": "B"
}
],
"title": "Average < $threshold_amp A",
"type": "stat"
"title": "Statistics between inputs < $threshold_amp A",
"type": "timeseries"
},
{
"datasource": {
......@@ -459,14 +446,25 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"fixedColor": "purple",
"mode": "fixed"
},
"custom": {
"fillOpacity": 80,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"color": "green",
"value": null
}
]
......@@ -476,44 +474,36 @@
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 12,
"y": 4
"h": 8,
"w": 5,
"x": 19,
"y": 1
},
"id": 39,
"id": 34,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
"bucketOffset": 0,
"combine": true,
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
}
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 < ($threshold_amp * 1000) > 0)",
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 > 0",
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"range": true,
"legendFormat": "RCU {{y}} - antenna {{x}}",
"refId": "A"
}
],
"title": "StdDev < $threshold_amp A",
"type": "stat"
"title": "$measurement Current Histogram",
"type": "histogram"
},
{
"datasource": {
......@@ -587,16 +577,20 @@
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "custom.showPoints",
"value": "never"
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 8,
"h": 8,
"w": 7,
"x": 0,
"y": 7
"y": 9
},
"id": 41,
"options": {
......@@ -620,7 +614,7 @@
"exemplar": true,
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * 1000 > 0",
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "{{name}}: {{x}} / {{y}}",
"range": true,
"refId": "A"
},
......@@ -649,11 +643,39 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mode": "palette-classic"
},
"custom": {
"axisLabel": "Average",
"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",
"mode": "percentage",
"steps": [
{
"color": "green",
......@@ -663,28 +685,42 @@
},
"unit": "mvolt"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.axisLabel",
"value": "Standard Deviation"
}
]
}
]
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"y": 7
"h": 8,
"w": 6,
"x": 7,
"y": 9
},
"id": 42,
"id": 57,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"textMode": "value"
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.5.3",
"targets": [
......@@ -694,81 +730,34 @@
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * 1000 > ($threshold_volt * 1000))",
"exemplar": false,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} > 0 > $threshold_volt) * 1000",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "standard deviation",
"range": true,
"refId": "A"
}
],
"title": "Average > $threshold_volt V",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "mvolt"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 12,
"y": 7
},
"id": 44,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * 1000 > ($threshold_volt * 1000))",
"exemplar": false,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} > 0 > $threshold_volt) * 1000",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "average",
"range": true,
"refId": "A"
"refId": "B"
}
],
"title": "StdDev > $threshold_volt V",
"type": "stat"
"title": "Statistics between inputs > $threshold_volt V",
"type": "timeseries"
},
{
"datasource": {
......@@ -779,22 +768,39 @@
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "purple",
"mode": "fixed"
"mode": "palette-classic"
},
"custom": {
"fillOpacity": 80,
"axisLabel": "Average",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
"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",
"mode": "percentage",
"steps": [
{
"color": "green",
......@@ -804,104 +810,79 @@
},
"unit": "mvolt"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.axisLabel",
"value": "Standard Deviation"
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 7
"h": 8,
"w": 6,
"x": 13,
"y": 9
},
"id": 46,
"id": 58,
"options": {
"bucketOffset": 0,
"combine": true,
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"exemplar": true,
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * 1000 > 0",
"editorMode": "code",
"exemplar": false,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} > 0 < $threshold_volt) * 1000",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "standard deviation",
"range": true,
"refId": "A"
}
],
"title": "$measurement Voltage Histogram",
"type": "histogram"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "mvolt"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"y": 10
},
"id": 43,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * 1000 < ($threshold_volt * 1000) > 0)",
"exemplar": false,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} > 0 < $threshold_volt) * 1000",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "average",
"range": true,
"refId": "A"
"refId": "B"
}
],
"title": "Average < $threshold_volt V",
"type": "stat"
"title": "Statistics between inputs < $threshold_volt V",
"type": "timeseries"
},
{
"datasource": {
......@@ -912,14 +893,25 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"fixedColor": "purple",
"mode": "fixed"
},
"custom": {
"fillOpacity": 80,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"color": "green",
"value": null
}
]
......@@ -929,44 +921,36 @@
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 12,
"y": 10
"h": 8,
"w": 5,
"x": 19,
"y": 9
},
"id": 45,
"id": 46,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
"bucketOffset": 0,
"combine": true,
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
}
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * 1000 < ($threshold_volt * 1000) > 0)",
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * 1000 > 0",
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"range": true,
"legendFormat": "RCU {{y}} - antenna {{x}}",
"refId": "A"
}
],
"title": "StdDev < $threshold_volt V",
"type": "stat"
"title": "$measurement Voltage Histogram",
"type": "histogram"
},
{
"datasource": {
......@@ -1040,16 +1024,20 @@
{
"id": "custom.lineWidth",
"value": 0
},
{
"id": "custom.showPoints",
"value": "never"
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 8,
"h": 8,
"w": 7,
"x": 0,
"y": 13
"y": 17
},
"id": 47,
"options": {
......@@ -1073,7 +1061,7 @@
"exemplar": true,
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 > 0",
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "{{name}}: {{x}} / {{y}}",
"range": true,
"refId": "A"
},
......@@ -1102,11 +1090,39 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mode": "palette-classic"
},
"custom": {
"axisLabel": "Average",
"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",
"mode": "percentage",
"steps": [
{
"color": "green",
......@@ -1116,28 +1132,42 @@
},
"unit": "mwatt"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.axisLabel",
"value": "Standard Deviation"
}
]
}
]
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"y": 13
"h": 8,
"w": 6,
"x": 7,
"y": 17
},
"id": 49,
"id": 59,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"textMode": "value"
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.5.3",
"targets": [
......@@ -1147,81 +1177,34 @@
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 > ($threshold_watt * 1000))",
"exemplar": false,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > 0 > $threshold_watt) * 1000",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "standard deviation",
"range": true,
"refId": "A"
}
],
"title": "Average > $threshold_watt W",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "mwatt"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 12,
"y": 13
},
"id": 51,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 > ($threshold_watt * 1000))",
"exemplar": false,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > 0 > $threshold_watt) * 1000",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "average",
"range": true,
"refId": "A"
"refId": "B"
}
],
"title": "StdDev > $threshold_watt W",
"type": "stat"
"title": "Statistics between inputs > $threshold_watt W",
"type": "timeseries"
},
{
"datasource": {
......@@ -1232,22 +1215,39 @@
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "purple",
"mode": "fixed"
"mode": "palette-classic"
},
"custom": {
"fillOpacity": 80,
"axisLabel": "Average",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
"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",
"mode": "percentage",
"steps": [
{
"color": "green",
......@@ -1257,104 +1257,79 @@
},
"unit": "mwatt"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.axisLabel",
"value": "Standard Deviation"
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 13
"h": 8,
"w": 6,
"x": 13,
"y": 17
},
"id": 48,
"id": 60,
"options": {
"bucketOffset": 0,
"combine": true,
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"exemplar": true,
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 > 0",
"editorMode": "code",
"exemplar": false,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > 0 < $threshold_watt) * 1000",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "standard deviation",
"range": true,
"refId": "A"
}
],
"title": "$measurement Power Histogram",
"type": "histogram"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
}
]
},
"unit": "mwatt"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"y": 16
},
"id": 50,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 < ($threshold_watt * 1000) > 0)",
"exemplar": false,
"expr": "avg(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} > 0 < $threshold_watt) * 1000",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"legendFormat": "average",
"range": true,
"refId": "A"
"refId": "B"
}
],
"title": "Average < $threshold_watt W",
"type": "stat"
"title": "Statistics between inputs < $threshold_watt W",
"type": "timeseries"
},
{
"datasource": {
......@@ -1365,14 +1340,25 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"fixedColor": "purple",
"mode": "fixed"
},
"custom": {
"fillOpacity": 80,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"color": "green",
"value": null
}
]
......@@ -1382,44 +1368,36 @@
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 12,
"y": 16
"h": 8,
"w": 5,
"x": 19,
"y": 17
},
"id": 52,
"id": 48,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
"bucketOffset": 0,
"combine": true,
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
}
},
"pluginVersion": "8.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "stddev(device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 < ($threshold_watt * 1000) > 0)",
"expr": "device_attribute{host=\"$station\",name=\"${measurement}_VOUT_R\"} * on(x,y) device_attribute{host=\"$station\",name=\"${measurement}_IOUT_R\"} * 1000 > 0",
"interval": "",
"legendFormat": "{{y}} / {{x}}",
"range": true,
"legendFormat": "RCU {{y}} - antenna {{x}}",
"refId": "A"
}
],
"title": "StdDev < $threshold_watt W",
"type": "stat"
"title": "$measurement Power Histogram",
"type": "histogram"
}
],
"refresh": false,
......@@ -1468,6 +1446,10 @@
"RCU_PWR_ANT"
]
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"definition": "device_attribute{name=~\".*_IOUT_R\"}",
"hide": 0,
"includeAll": true,
......@@ -1488,8 +1470,8 @@
{
"current": {
"selected": false,
"text": "0.04",
"value": "0.04"
"text": "0.5",
"value": "0.5"
},
"hide": 0,
"label": "Threshold (A)",
......@@ -1497,37 +1479,37 @@
"options": [
{
"selected": true,
"text": "0.04",
"value": "0.04"
"text": "0.5",
"value": "0.5"
}
],
"query": "0.04",
"query": "0.5",
"skipUrlSync": false,
"type": "textbox"
},
{
"current": {
"selected": false,
"text": "10",
"value": "10"
"text": "12",
"value": "12"
},
"hide": 0,
"label": "Threshold (V)",
"name": "threshold_volt",
"options": [
{
"selected": true,
"text": "10",
"value": "10"
"selected": false,
"text": "1",
"value": "1"
}
],
"query": "10",
"query": "12",
"skipUrlSync": false,
"type": "textbox"
},
{
"current": {
"selected": false,
"selected": true,
"text": "1",
"value": "1"
},
......@@ -1555,6 +1537,6 @@
"timezone": "",
"title": "Power Consumption",
"uid": "powerconsumption",
"version": 10,
"version": 14,
"weekStart": ""
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment