Created
November 3, 2021 15:30
-
-
Save discreetmayor/ad8ab953e1bfae3ba30ea89398c0c0ea to your computer and use it in GitHub Desktop.
Grafana Power Analysis Dashboard
This file contains 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, | |
"gnetId": null, | |
"graphTooltip": 2, | |
"id": 7, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": null, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 4, | |
"title": "Power Analyzer", | |
"type": "row" | |
}, | |
{ | |
"datasource": null, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"axisWidth": 100, | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "none", | |
"hideFrom": { | |
"graph": false, | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"lineInterpolation": "linear", | |
"lineStyle": { | |
"fill": "solid" | |
}, | |
"lineWidth": 1, | |
"pointSize": 4, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "always", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
}, | |
"unit": "celsius" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "BBQ" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-red", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 24, | |
"x": 0, | |
"y": 1 | |
}, | |
"id": 12, | |
"options": { | |
"graph": {}, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom" | |
}, | |
"tooltip": { | |
"mode": "single" | |
} | |
}, | |
"pluginVersion": "7.5.2", | |
"targets": [ | |
{ | |
"refId": "A", | |
"target": "aliasByTags(seriesByTag('sensorname=BBQ', 'name=mayor.tempsensor.Temperature'), 'sensorname')" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Temperature Sensor", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": "Redis", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 2, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "super-light-blue", | |
"value": null | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 3, | |
"x": 0, | |
"y": 9 | |
}, | |
"id": 10, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "value" | |
}, | |
"pluginVersion": "8.2.2", | |
"targets": [ | |
{ | |
"command": "get", | |
"keyName": "estimate_time", | |
"query": "", | |
"refId": "A", | |
"type": "command" | |
} | |
], | |
"title": "Time Running", | |
"transparent": true, | |
"type": "stat" | |
}, | |
{ | |
"datasource": "Redis", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 6, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "super-light-blue", | |
"value": null | |
} | |
] | |
}, | |
"unit": "mamph" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "value" | |
}, | |
"properties": [ | |
{ | |
"id": "decimals", | |
"value": 4 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 3, | |
"x": 3, | |
"y": 9 | |
}, | |
"id": 7, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "value" | |
}, | |
"pluginVersion": "8.2.2", | |
"targets": [ | |
{ | |
"command": "ts.get", | |
"keyName": "energy:sum", | |
"query": "", | |
"refId": "A", | |
"type": "timeSeries" | |
} | |
], | |
"title": "Total", | |
"transparent": true, | |
"type": "stat" | |
}, | |
{ | |
"datasource": "Redis", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 6, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "super-light-blue", | |
"value": null | |
} | |
] | |
}, | |
"unit": "mamph" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "estimate" | |
}, | |
"properties": [ | |
{ | |
"id": "decimals", | |
"value": 4 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 3, | |
"x": 6, | |
"y": 9 | |
}, | |
"id": 9, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "value" | |
}, | |
"pluginVersion": "8.2.2", | |
"targets": [ | |
{ | |
"command": "get", | |
"keyName": "estimate", | |
"query": "", | |
"refId": "A", | |
"type": "command" | |
} | |
], | |
"title": "One-Day Estimate", | |
"transparent": true, | |
"type": "stat" | |
}, | |
{ | |
"datasource": "MetaQueries", | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "super-light-blue", | |
"value": null | |
} | |
] | |
}, | |
"unit": "d" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 3, | |
"x": 9, | |
"y": 9 | |
}, | |
"id": 13, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "none", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"text": {}, | |
"textMode": "value" | |
}, | |
"pluginVersion": "8.2.2", | |
"targets": [ | |
{ | |
"command": "get", | |
"datasource": "Redis", | |
"hide": true, | |
"keyName": "estimate", | |
"query": "", | |
"refCount": 0, | |
"refId": "A", | |
"type": "command" | |
}, | |
{ | |
"datasource": "__expr__", | |
"expression": "220/$A", | |
"hide": false, | |
"refCount": 0, | |
"refId": "B", | |
"type": "math" | |
} | |
], | |
"title": "Lifetime (${battery_capacity} mAh battery)", | |
"transparent": true, | |
"type": "stat" | |
}, | |
{ | |
"datasource": "-- Dashboard --", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"max": 0.05, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "#EAB839", | |
"value": 0.03 | |
}, | |
{ | |
"color": "red", | |
"value": 0.04 | |
} | |
] | |
}, | |
"unit": "mamp" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 6, | |
"x": 12, | |
"y": 9 | |
}, | |
"id": 15, | |
"options": { | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"mean" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true, | |
"text": {} | |
}, | |
"pluginVersion": "8.2.2", | |
"targets": [ | |
{ | |
"panelId": 2, | |
"refId": "A" | |
} | |
], | |
"title": "Average", | |
"transformations": [ | |
{ | |
"id": "filterFieldsByName", | |
"options": { | |
"include": { | |
"names": [ | |
"Average" | |
] | |
} | |
} | |
} | |
], | |
"type": "gauge" | |
}, | |
{ | |
"datasource": "-- Dashboard --", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"max": 40, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "#EAB839", | |
"value": 30 | |
}, | |
{ | |
"color": "red", | |
"value": 35 | |
} | |
] | |
}, | |
"unit": "mamp" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 6, | |
"x": 18, | |
"y": 9 | |
}, | |
"id": 16, | |
"options": { | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"max" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showThresholdLabels": false, | |
"showThresholdMarkers": true, | |
"text": {} | |
}, | |
"pluginVersion": "8.2.2", | |
"targets": [ | |
{ | |
"panelId": 2, | |
"refId": "A" | |
} | |
], | |
"title": "Max Instantaneous", | |
"transformations": [ | |
{ | |
"id": "filterFieldsByName", | |
"options": { | |
"include": { | |
"names": [ | |
"Consumption (mA)" | |
] | |
} | |
} | |
} | |
], | |
"type": "gauge" | |
}, | |
{ | |
"datasource": "Redis", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"graph": false, | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"log": 10, | |
"type": "log" | |
}, | |
"showPoints": "never", | |
"spanNulls": true, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"decimals": 5, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
} | |
] | |
}, | |
"unit": "mamp" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Average" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-blue", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "displayName", | |
"value": "Average" | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 2 | |
}, | |
{ | |
"id": "custom.lineInterpolation", | |
"value": "smooth" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Consumption (mA)" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "super-light-blue", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "displayName", | |
"value": "Consumption" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Total" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "yellow", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "unit", | |
"value": "mamph" | |
}, | |
{ | |
"id": "custom.scaleDistribution", | |
"value": { | |
"type": "linear" | |
} | |
}, | |
{ | |
"id": "decimals", | |
"value": 6 | |
}, | |
{ | |
"id": "displayName", | |
"value": "Total" | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 2 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 14, | |
"w": 24, | |
"x": 0, | |
"y": 15 | |
}, | |
"hideTimeOverride": false, | |
"id": 2, | |
"options": { | |
"graph": {}, | |
"legend": { | |
"calcs": [ | |
"lastNotNull", | |
"min", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom" | |
}, | |
"tooltip": { | |
"mode": "single" | |
} | |
}, | |
"pluginVersion": "7.5.2", | |
"targets": [ | |
{ | |
"aggregation": "", | |
"bucket": 2, | |
"command": "ts.range", | |
"filter": "Temperature", | |
"hide": false, | |
"keyName": "energy:sub", | |
"legend": "Consumption (mA)", | |
"query": "", | |
"refId": "C", | |
"streaming": false, | |
"type": "timeSeries" | |
}, | |
{ | |
"aggregation": "avg", | |
"bucket": 300000, | |
"command": "ts.range", | |
"fill": true, | |
"filter": "Temperature", | |
"hide": false, | |
"keyName": "energy:sub", | |
"legend": "Average", | |
"query": "", | |
"refId": "B", | |
"streaming": false, | |
"type": "timeSeries" | |
}, | |
{ | |
"aggregation": "", | |
"bucket": 10000, | |
"command": "ts.range", | |
"keyName": "energy:sum", | |
"legend": "Total", | |
"query": "", | |
"refId": "A", | |
"type": "timeSeries" | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Energy Consumption", | |
"transformations": [], | |
"type": "timeseries" | |
} | |
], | |
"refresh": false, | |
"schemaVersion": 31, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "2021-11-02T21:28:28.825Z", | |
"to": "2021-11-02T22:14:41.881Z" | |
}, | |
"timepicker": { | |
"hidden": false, | |
"refresh_intervals": [ | |
"5s", | |
"10s", | |
"30s", | |
"1m", | |
"5m", | |
"15m", | |
"30m", | |
"1h", | |
"2h", | |
"1d" | |
] | |
}, | |
"timezone": "", | |
"title": "Energy", | |
"uid": "fUIlEM_Mz", | |
"version": 85 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment