{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "links": [], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 1, "panels": [], "title": "Overview", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "red", "index": 1, "text": "Offline" } }, "type": "value" }, { "options": { "1": { "color": "green", "index": 0, "text": "Online" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": 0 }, { "color": "green", "value": 1 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 }, "id": 2, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "max by (econet_friendly_name) (econet_connected{econet_friendly_name=~\"$device\"})", "instant": true, "legendFormat": "{{econet_friendly_name}}", "refId": "A" } ], "title": "Connected", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "blue", "index": 1, "text": "Idle" } }, "type": "value" }, { "options": { "1": { "color": "orange", "index": 0, "text": "Heating" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": 0 }, { "color": "orange", "value": 1 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 }, "id": 3, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value_and_name", "wideLayout": true }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "max by (econet_running_state) (econet_running{econet_friendly_name=~\"$device\"})", "instant": true, "legendFormat": "{{econet_running_state}}", "refId": "A" } ], "title": "Heating State", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "purple", "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "purple", "value": 0 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 }, "id": 4, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "name", "wideLayout": true }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "max by (econet_friendly_name, econet_mode) (econet_mode{econet_friendly_name=~\"$device\"}) == 1", "instant": true, "legendFormat": "{{econet_mode}}", "refId": "A" } ], "title": "Mode", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": 0 }, { "color": "green", "value": 110 }, { "color": "orange", "value": 130 } ] }, "unit": "fahrenheit" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 12, "y": 1 }, "id": 5, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "avg by (econet_friendly_name) (econet_setpoint_fahrenheit{econet_friendly_name=~\"$device\"})", "instant": true, "legendFormat": "{{econet_friendly_name}}", "refId": "A" } ], "title": "Setpoint", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": 0 }, { "color": "orange", "value": 25 }, { "color": "green", "value": 60 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 16, "y": 1 }, "id": 6, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "avg by (econet_friendly_name) (econet_hot_water_availability_percent{econet_friendly_name=~\"$device\"})", "instant": true, "legendFormat": "{{econet_friendly_name}}", "refId": "A" } ], "title": "Hot Water Available", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 1 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 }, "id": 7, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "max by (econet_friendly_name) (econet_alert_count{econet_friendly_name=~\"$device\"})", "instant": true, "legendFormat": "{{econet_friendly_name}}", "refId": "A" } ], "title": "Active Alerts", "type": "stat" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "id": 10, "panels": [], "title": "Temperature & Hot Water", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "fahrenheit" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": ".*min.*" }, "properties": [ { "id": "custom.lineStyle", "value": { "dash": [ 10, 10 ], "fill": "dash" } }, { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": ".*max.*" }, "properties": [ { "id": "custom.lineStyle", "value": { "dash": [ 10, 10 ], "fill": "dash" } }, { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 6 }, "id": 11, "options": { "legend": { "calcs": [ "lastNotNull", "min", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "avg by (econet_friendly_name) (econet_setpoint_fahrenheit{econet_friendly_name=~\"$device\"})", "legendFormat": "{{econet_friendly_name}} setpoint", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "min by (econet_friendly_name) (econet_setpoint_min_fahrenheit{econet_friendly_name=~\"$device\"})", "legendFormat": "{{econet_friendly_name}} min", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "max by (econet_friendly_name) (econet_setpoint_max_fahrenheit{econet_friendly_name=~\"$device\"})", "legendFormat": "{{econet_friendly_name}} max", "refId": "C" } ], "title": "Setpoint (with allowed range)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "text", "mode": "fixed", "seriesBy": "last" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 8, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepBefore", "lineWidth": 5, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "dashed+area" } }, "mappings": [], "max": 101, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "dark-red", "value": 0 }, { "color": "dark-orange", "value": 15 }, { "color": "#EAB839", "value": 48 }, { "color": "green", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 6 }, "id": 12, "interval": "1m", "maxDataPoints": 100, "options": { "legend": { "calcs": [ "lastNotNull", "min", "mean" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "editorMode": "code", "expr": "min by (econet_friendly_name) (econet_hot_water_availability_percent{econet_friendly_name=~\"$device\"})[$__interval]", "legendFormat": "{{econet_friendly_name}}", "range": true, "refId": "A" } ], "title": "Hot Water Availability", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "axisPlacement": "auto", "fillOpacity": 80, "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineWidth": 0, "spanNulls": false }, "mappings": [ { "options": { "0": { "color": "blue", "index": 1, "text": "Idle" } }, "type": "value" }, { "options": { "1": { "color": "orange", "index": 0, "text": "Heating" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": 0 }, { "color": "orange", "value": 1 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 14 }, "id": 31, "options": { "alignValue": "left", "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "mergeValues": true, "rowHeight": 0.9, "showValue": "auto", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "max by (econet_running_state) (econet_running{econet_friendly_name=~\"$device\"})", "legendFormat": "{{econet_running_state}}", "refId": "A" } ], "title": "Heating Timeline", "transformations": [ { "id": "filterFieldsByName", "options": { "byVariable": false, "include": { "pattern": "^[^V]+" } } } ], "type": "state-timeline" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "bars", "fillOpacity": 60, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "volgal" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 14 }, "id": 23, "options": { "legend": { "calcs": [ "lastNotNull", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "max by (econet_friendly_name) (econet_water_usage_gallons * on(econet_serial) group_left(econet_friendly_name) econet_device_info{econet_friendly_name=~\"$device\"})", "legendFormat": "{{econet_friendly_name}}", "refId": "A" } ], "title": "Water Usage Today (gal)", "type": "timeseries" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 22 }, "id": 20, "panels": [], "title": "Energy & Water", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.9, "drawStyle": "bars", "fillOpacity": 100, "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 0, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "purple", "value": 0 }, { "color": "red", "value": 3 } ] }, "unit": "kwatth" }, "overrides": [] }, "gridPos": { "h": 8, "w": 9, "x": 0, "y": 23 }, "id": 21, "interval": "1h", "options": { "legend": { "calcs": [ "lastNotNull", "max", "sum" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "editorMode": "code", "expr": "increase(max by (econet_friendly_name) (econet_energy_usage_kwh * on(econet_serial) group_left(econet_friendly_name) econet_device_info{econet_friendly_name=~\"$device\"}))", "legendFormat": "{{econet_friendly_name}}", "range": true, "refId": "A" } ], "title": "Energy Usage Today (kWh)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 3, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "#EAB839", "value": 10 }, { "color": "red", "value": 20 } ] }, "unit": "kwatth" }, "overrides": [] }, "gridPos": { "h": 8, "w": 11, "x": 9, "y": 23 }, "id": 34, "interval": "1h", "options": { "displayMode": "gradient", "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": false }, "maxVizHeight": 300, "minVizHeight": 16, "minVizWidth": 8, "namePlacement": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "sizing": "auto", "valueMode": "color" }, "pluginVersion": "12.3.1", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_usage_kwh[6h]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "instant": true, "legendFormat": "6h", "range": false, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_usage_kwh[24h]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "24h", "range": false, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_usage_kwh[2d]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "2d", "range": false, "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_usage_kwh[7d]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "7d", "range": false, "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_usage_kwh[30d]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "30d", "range": false, "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_usage_kwh[12h]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "12h", "range": false, "refId": "F" } ], "title": "Energy Usage Rollups", "type": "bargauge" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "fillOpacity": 80, "gradientMode": "scheme", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineWidth": 1, "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "#EAB839", "value": 5 }, { "color": "red", "value": 10 } ] }, "unit": "kwatth" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 20, "y": 23 }, "id": 36, "options": { "barRadius": 0.1, "barWidth": 0.97, "fullHighlight": false, "groupWidth": 0.7, "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "orientation": "auto", "showValue": "auto", "stacking": "none", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 0 }, "pluginVersion": "12.3.1", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_usage_kwh[$__range]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "instant": true, "legendFormat": "{{econet_friendly_name}}", "range": false, "refId": "A" } ], "title": "Current Interval Usage", "type": "barchart" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.9, "drawStyle": "bars", "fillOpacity": 94, "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 0, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "currencyUSD" }, "overrides": [] }, "gridPos": { "h": 8, "w": 9, "x": 0, "y": 31 }, "id": 22, "interval": "1h", "options": { "legend": { "calcs": [ "lastNotNull", "max", "sum" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "editorMode": "code", "expr": "increase(max by (econet_friendly_name) (econet_energy_cost_dollars * on(econet_serial) group_left(econet_friendly_name) econet_device_info{econet_friendly_name=~\"$device\"}))", "legendFormat": "{{econet_friendly_name}}", "range": true, "refId": "A" } ], "title": "Energy Cost Today ($)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 3, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 5 } ] }, "unit": "currencyUSD" }, "overrides": [] }, "gridPos": { "h": 8, "w": 11, "x": 9, "y": 31 }, "id": 35, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.3.1", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_cost_dollars[12h]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "instant": true, "legendFormat": "12h", "range": false, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_cost_dollars[24h]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "24h", "range": false, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_cost_dollars[2d]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "2d", "range": false, "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_cost_dollars[7d]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "7d", "range": false, "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_cost_dollars[30d]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "hide": false, "instant": true, "legendFormat": "30d", "range": false, "refId": "E" } ], "title": "Energy Cost Rollups", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "000000003" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "fillOpacity": 76, "gradientMode": "scheme", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineWidth": 0, "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "#EAB839", "value": 0.6 }, { "color": "red", "value": 1 } ] }, "unit": "currencyUSD" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 20, "y": 31 }, "id": 37, "options": { "barRadius": 0.25, "barWidth": 0.97, "colorByField": "Value", "fullHighlight": false, "groupWidth": 0.7, "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "orientation": "auto", "showValue": "auto", "stacking": "none", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 0 }, "pluginVersion": "12.3.1", "targets": [ { "editorMode": "code", "exemplar": false, "expr": "sum by (econet_friendly_name) (\n increase(econet_energy_cost_dollars[$__range]) \n * on(econet_serial) group_left(econet_friendly_name) \n (max by (econet_serial, econet_friendly_name) (econet_device_info{econet_friendly_name=~\"$device\"}))\n)", "instant": true, "legendFormat": "{{econet_friendly_name}}", "range": false, "refId": "A" } ], "title": "Current Interval Cost", "type": "barchart" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 39 }, "id": 30, "panels": [], "title": "Device Health", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "dB" }, "overrides": [] }, "gridPos": { "h": 8, "w": 11, "x": 0, "y": 40 }, "id": 32, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "avg by (econet_friendly_name) (econet_wifi_signal_db{econet_friendly_name=~\"$device\"})", "legendFormat": "{{econet_friendly_name}}", "refId": "A" } ], "title": "WiFi Signal", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "footer": { "reducers": [] }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 13, "x": 11, "y": 40 }, "id": 33, "options": { "cellHeight": "sm", "showHeader": true }, "pluginVersion": "12.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" }, "expr": "econet_device_info{econet_friendly_name=~\"$device\"}", "format": "table", "instant": true, "refId": "A" } ], "title": "Device Info", "transformations": [ { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true, "__name__": true, "instance": true, "job": true }, "indexByName": {}, "renameByName": { "econet_device_id": "Device ID", "econet_friendly_name": "Name", "econet_generic_type": "Generic Type", "econet_mode": "Mode", "econet_serial": "Serial", "econet_type": "Type" } } }, { "id": "transpose", "options": {} } ], "type": "table" } ], "preload": false, "refresh": "30s", "schemaVersion": 42, "tags": [ "econet", "rheem", "water-heater" ], "templating": { "list": [ { "current": {}, "includeAll": false, "label": "Data source", "name": "datasource", "options": [], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "current": {}, "datasource": { "type": "prometheus", "uid": "${datasource}" }, "definition": "label_values(econet_device_info, econet_friendly_name)", "includeAll": true, "label": "Device", "multi": true, "name": "device", "options": [], "query": { "query": "label_values(econet_device_info, econet_friendly_name)", "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", "sort": 1, "type": "query" } ] }, "time": { "from": "now-24h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "EcoNet Water Heater", "uid": "econet-exporter", "version": 5 }