updated dashboard
Docker Push / build (push) Successful in 42s Details

This commit is contained in:
Nick Trimborn 2023-07-21 11:21:06 +02:00
parent b7bc47e2d5
commit ed97c06180
1 changed files with 1398 additions and 1287 deletions

View File

@ -1,4 +1,47 @@
{ {
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "panel",
"id": "bargauge",
"name": "Bar gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.4.3"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": { "annotations": {
"list": [ "list": [
{ {
@ -28,14 +71,14 @@
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"gnetId": 13950, "gnetId": 13950,
"graphTooltip": 0, "graphTooltip": 0,
"id": 9, "id": null,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -95,29 +138,33 @@
}, },
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "tasmota_power_W{}", "expr": "tasmota_active_power_W{job=~\"$job\"}",
"interval": "", "interval": "",
"legendFormat": "power_W", "legendFormat": "power_W",
"range": true,
"refId": "A" "refId": "A"
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "tasmota_current_A{}", "expr": "tasmota_current_A{job=~\"$job\"}",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "current_A", "legendFormat": "current_A",
"range": true,
"refId": "B" "refId": "B"
} }
], ],
@ -128,7 +175,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -187,29 +234,33 @@
}, },
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "avg_over_time(tasmota_power_W{}[$__range])", "expr": "avg_over_time(tasmota_active_power_W{job=~\"$job\"}[$__range])",
"interval": "", "interval": "",
"legendFormat": "power_W", "legendFormat": "power_W",
"range": true,
"refId": "A" "refId": "A"
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "avg_over_time(tasmota_current_A{}[$__range])", "expr": "avg_over_time(tasmota_current_A{job=~\"$job\"}[$__range])",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "current_A", "legendFormat": "current_A",
"range": true,
"refId": "B" "refId": "B"
} }
], ],
@ -220,7 +271,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -263,17 +314,19 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "delta(tasmota_energy_kWh_total[$__range])", "expr": "delta(tasmota_energy_kWh_total{job=~\"$job\"}[$__range])",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -284,7 +337,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -332,17 +385,19 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "delta(tasmota_energy_kWh_total[$__range]) * .098", "expr": "delta(tasmota_energy_kWh_total{job=~\"$job\"}[$__range]) * .276",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -353,7 +408,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -396,18 +451,20 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "delta(tasmota_energy_kWh_total[$__range])", "expr": "delta(tasmota_energy_kWh_total{job=~\"$job\"}[$__range])",
"format": "time_series", "format": "time_series",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -418,7 +475,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -477,17 +534,19 @@
"text": {}, "text": {},
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "delta(tasmota_energy_kWh_total[$__range])*.098", "expr": "delta(tasmota_energy_kWh_total{job=~\"$job\"}[$__range])*.276",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -499,7 +558,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -542,18 +601,20 @@
"text": {}, "text": {},
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "delta(tasmota_energy_kWh_total[$__range])", "expr": "delta(tasmota_energy_kWh_total{job=~\"$job\"}[$__range])",
"format": "time_series", "format": "time_series",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -564,7 +625,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -623,17 +684,19 @@
"text": {}, "text": {},
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "delta(tasmota_energy_kWh_total[$__range])*.098", "expr": "delta(tasmota_energy_kWh_total{job=~\"$job\"}[$__range])*.276",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -645,7 +708,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -704,29 +767,33 @@
}, },
"textMode": "value" "textMode": "value"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "max_over_time(tasmota_power_W{}[$__range])", "expr": "max_over_time(tasmota_active_power_W{job=~\"$job\"}[$__range])",
"interval": "", "interval": "",
"legendFormat": "power_W", "legendFormat": "power_W",
"range": true,
"refId": "A" "refId": "A"
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "max_over_time(tasmota_current_A{}[$__range])", "expr": "max_over_time(tasmota_current_A{job=~\"$job\"}[$__range])",
"hide": false, "hide": false,
"interval": "", "interval": "",
"legendFormat": "current_A", "legendFormat": "current_A",
"range": true,
"refId": "B" "refId": "B"
} }
], ],
@ -737,7 +804,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -784,17 +851,19 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "max_over_time(tasmota_voltage_V{}[$__range])", "expr": "max_over_time(tasmota_voltage_V{job=~\"$job\"}[$__range])",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -805,7 +874,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -851,17 +920,19 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "max_over_time(tasmota_energy_today_kWh_total{}[$__range])", "expr": "max_over_time(tasmota_energy_today_kWh_total{job=~\"$job\"}[$__range])",
"interval": "", "interval": "",
"legendFormat": "", "legendFormat": "",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -872,7 +943,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -881,6 +952,8 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
@ -952,7 +1025,8 @@
"legend": { "legend": {
"calcs": [], "calcs": [],
"displayMode": "list", "displayMode": "list",
"placement": "bottom" "placement": "bottom",
"showLegend": true
}, },
"tooltip": { "tooltip": {
"mode": "single", "mode": "single",
@ -964,13 +1038,15 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "tasmota_power_W{}", "expr": "tasmota_active_power_W{job=~\"$job\"}",
"format": "time_series", "format": "time_series",
"interval": "", "interval": "",
"legendFormat": "{{ device }}", "legendFormat": "{{ device }}",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -982,7 +1058,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1033,15 +1109,16 @@
"showUnfilled": true, "showUnfilled": true,
"text": {} "text": {}
}, },
"pluginVersion": "8.5.0", "pluginVersion": "9.4.3",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "delta(tasmota_energy_kWh_total[$__range])", "expr": "delta(tasmota_energy_kWh_total{job=~\"$job\"}[$__range])",
"format": "table", "format": "table",
"instant": false, "instant": false,
"interval": "", "interval": "",
@ -1057,7 +1134,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -1066,6 +1143,8 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
@ -1138,7 +1217,8 @@
"legend": { "legend": {
"calcs": [], "calcs": [],
"displayMode": "list", "displayMode": "list",
"placement": "bottom" "placement": "bottom",
"showLegend": true
}, },
"tooltip": { "tooltip": {
"mode": "single", "mode": "single",
@ -1150,7 +1230,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"exemplar": true, "exemplar": true,
"expr": "tasmota_energy_today_kWh_total{}", "expr": "tasmota_energy_today_kWh_total{}",
@ -1168,7 +1248,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1176,6 +1256,8 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
@ -1234,7 +1316,8 @@
"legend": { "legend": {
"calcs": [], "calcs": [],
"displayMode": "list", "displayMode": "list",
"placement": "bottom" "placement": "bottom",
"showLegend": true
}, },
"tooltip": { "tooltip": {
"mode": "single", "mode": "single",
@ -1246,12 +1329,14 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "XOGiKiT7k" "uid": "${DS_PROMETHEUS}"
}, },
"editorMode": "code",
"exemplar": true, "exemplar": true,
"expr": "rate(tasmota_power_W[1h])", "expr": "rate(tasmota_active_power_W{job=~\"$job\"}[1h])",
"interval": "", "interval": "",
"legendFormat": " Rate of Power", "legendFormat": " Rate of Power",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
@ -1260,12 +1345,38 @@
"type": "timeseries" "type": "timeseries"
} }
], ],
"refresh": "10s", "refresh": "5s",
"schemaVersion": 36, "revision": 1,
"schemaVersion": 38,
"style": "dark", "style": "dark",
"tags": [], "tags": [],
"templating": { "templating": {
"list": [] "list": [
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(job)",
"description": "variable to filter plugs by job",
"hide": 0,
"includeAll": true,
"label": "Job",
"multi": false,
"name": "job",
"options": [],
"query": {
"query": "label_values(job)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/^tasmota-/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
}, },
"time": { "time": {
"from": "now-30d", "from": "now-30d",
@ -1290,6 +1401,6 @@
"timezone": "", "timezone": "",
"title": "Tasmota Plug Usage", "title": "Tasmota Plug Usage",
"uid": "_nyxoAfMk3", "uid": "_nyxoAfMk3",
"version": 33, "version": 10,
"weekStart": "" "weekStart": ""
} }