update ups grafana dash to have inverter stats [ci skip]

This commit is contained in:
Viktor Barzin 2025-10-28 22:17:32 +00:00
parent 6be6b06d90
commit 62bec95bf2
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 1535 additions and 1200 deletions

View file

@ -20,6 +20,16 @@
"graphTooltip": 0, "graphTooltip": 0,
"id": 18, "id": 18,
"links": [], "links": [],
"panels": [
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 23,
"panels": [ "panels": [
{ {
"datasource": { "datasource": {
@ -65,7 +75,7 @@
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 0, "x": 0,
"y": 0 "y": 33
}, },
"hideTimeOverride": true, "hideTimeOverride": true,
"id": 16, "id": 16,
@ -154,7 +164,7 @@
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 3, "x": 3,
"y": 0 "y": 33
}, },
"id": 9, "id": 9,
"options": { "options": {
@ -234,7 +244,7 @@
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 6, "x": 6,
"y": 0 "y": 33
}, },
"id": 10, "id": 10,
"options": { "options": {
@ -313,7 +323,7 @@
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 9, "x": 9,
"y": 0 "y": 33
}, },
"id": 15, "id": 15,
"options": { "options": {
@ -384,7 +394,7 @@
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 12, "x": 12,
"y": 0 "y": 33
}, },
"id": 3, "id": 3,
"options": { "options": {
@ -463,7 +473,7 @@
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 15, "x": 15,
"y": 0 "y": 33
}, },
"id": 13, "id": 13,
"options": { "options": {
@ -545,7 +555,7 @@
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 18, "x": 18,
"y": 0 "y": 33
}, },
"id": 17, "id": 17,
"options": { "options": {
@ -613,7 +623,7 @@
"h": 5, "h": 5,
"w": 3, "w": 3,
"x": 21, "x": 21,
"y": 0 "y": 33
}, },
"id": 6, "id": 6,
"options": { "options": {
@ -717,7 +727,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 5 "y": 38
}, },
"id": 11, "id": 11,
"options": { "options": {
@ -820,7 +830,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 5 "y": 38
}, },
"id": 14, "id": 14,
"options": { "options": {
@ -920,7 +930,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 13 "y": 46
}, },
"id": 5, "id": 5,
"options": { "options": {
@ -1020,7 +1030,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 13 "y": 46
}, },
"id": 12, "id": 12,
"options": { "options": {
@ -1120,7 +1130,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 21 "y": 54
}, },
"id": 18, "id": 18,
"options": { "options": {
@ -1220,7 +1230,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 21 "y": 54
}, },
"id": 19, "id": 19,
"options": { "options": {
@ -1333,7 +1343,7 @@
"h": 5, "h": 5,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 29 "y": 62
}, },
"id": 20, "id": 20,
"options": { "options": {
@ -1442,7 +1452,7 @@
"h": 5, "h": 5,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 29 "y": 62
}, },
"id": 21, "id": 21,
"options": { "options": {
@ -1480,6 +1490,331 @@
"type": "timeseries" "type": "timeseries"
} }
], ],
"title": "Huawei UPS",
"type": "row"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 1
},
"id": 24,
"panels": [],
"title": "Automatic Transfer Switch",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"index": 0,
"text": "Grid Power"
},
"1": {
"index": 1,
"text": "Inverter Power"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 0
},
{
"color": "green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 0,
"y": 2
},
"id": 25,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "automatic_transfer_switch_power_mode",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Current Power Source",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"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": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 21,
"x": 3,
"y": 2
},
"id": 26,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "automatic_transfer_switch_dwele_add",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "Grid Power",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "automatic_transfer_switch_totalele_add",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "Inverter Power",
"range": true,
"refId": "B",
"useBackend": false
}
],
"title": "Total Power by Source",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"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": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 10,
"x": 3,
"y": 10
},
"id": 27,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "automatic_transfer_switch_load_power_watts / 10",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Main source power draw",
"type": "timeseries"
}
],
"refresh": "5s", "refresh": "5s",
"schemaVersion": 39, "schemaVersion": 39,
"tags": [], "tags": [],
@ -1487,13 +1822,13 @@
"list": [] "list": []
}, },
"time": { "time": {
"from": "now-2d", "from": "now-15m",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "browser", "timezone": "browser",
"title": "Huawei UPS 2000", "title": "Huawei UPS 2000",
"uid": "ee70yskqw5u68f", "uid": "ee70yskqw5u68f",
"version": 19, "version": 24,
"weekStart": "" "weekStart": ""
} }

Binary file not shown.