update ups grafana [ci skip]

This commit is contained in:
Viktor Barzin 2024-12-17 19:22:08 +00:00
parent 23a882a3d5
commit e6aa28be1c
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -26,26 +26,34 @@
"type": "prometheus", "type": "prometheus",
"uid": "PBFA97CFB590B2093" "uid": "PBFA97CFB590B2093"
}, },
"description": "System uptime",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "thresholds" "mode": "thresholds"
}, },
"mappings": [], "decimals": 1,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "red", "color": "green",
"value": null "value": null
}, },
{ {
"color": "#EAB839", "color": "red",
"value": 1 "value": 80
},
{
"color": "green",
"value": 2
} }
] ]
}, },
@ -59,11 +67,15 @@
"x": 0, "x": 0,
"y": 0 "y": 0
}, },
"id": 2, "hideTimeOverride": true,
"id": 16,
"maxDataPoints": 100,
"options": { "options": {
"minVizHeight": 75, "colorMode": "none",
"minVizWidth": 75, "graphMode": "none",
"orientation": "auto", "justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
"lastNotNull" "lastNotNull"
@ -71,9 +83,9 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"showThresholdLabels": false, "showPercentChange": false,
"showThresholdMarkers": true, "textMode": "auto",
"sizing": "auto" "wideLayout": true
}, },
"pluginVersion": "11.1.0", "pluginVersion": "11.1.0",
"targets": [ "targets": [
@ -86,7 +98,6 @@
"editorMode": "builder", "editorMode": "builder",
"expr": "ups_sysUpTime / 100", "expr": "ups_sysUpTime / 100",
"fullMetaSearch": false, "fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"instant": false, "instant": false,
"legendFormat": "__auto", "legendFormat": "__auto",
@ -95,8 +106,8 @@
"useBackend": false "useBackend": false
} }
], ],
"title": "System Uptime", "title": "Uptime",
"type": "gauge" "type": "stat"
}, },
{ {
"datasource": { "datasource": {
@ -549,7 +560,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"expr": "ups_upsBatteryCurrent", "expr": "ups_upsBatteryCurrent / 1000000000",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"instant": false, "instant": false,
@ -581,7 +592,8 @@
"value": null "value": null
} }
] ]
} },
"unit": "volt"
}, },
"overrides": [] "overrides": []
}, },
@ -616,7 +628,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"expr": "ups_upsBatteryVoltage", "expr": "ups_upsBatteryVoltage / 10",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"instant": false, "instant": false,
@ -746,6 +758,8 @@
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"axisSoftMax": 235,
"axisSoftMin": 225,
"barAlignment": 0, "barAlignment": 0,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 0, "fillOpacity": 0,
@ -830,205 +844,6 @@
"title": "Output Voltage", "title": "Output Voltage",
"type": "timeseries" "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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 13
},
"id": 7,
"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": "ups_upsBypassFrequency / 10",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Bypass Frequency",
"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": "amp"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 13
},
"id": 12,
"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": "ups_upsOutputCurrent",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Output Current",
"type": "timeseries"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -1093,7 +908,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 21 "y": 13
}, },
"id": 5, "id": 5,
"options": { "options": {
@ -1184,7 +999,8 @@
"value": 80 "value": 80
} }
] ]
} },
"unit": "amp"
}, },
"overrides": [] "overrides": []
}, },
@ -1192,9 +1008,9 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 21 "y": 13
}, },
"id": 8, "id": 12,
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@ -1215,7 +1031,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"expr": "ups_upsBypassVoltage", "expr": "ups_upsOutputCurrent / 10",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"instant": false, "instant": false,
@ -1225,11 +1041,11 @@
"useBackend": false "useBackend": false
} }
], ],
"title": "Bypass Voltage", "title": "Output Current",
"type": "timeseries" "type": "timeseries"
} }
], ],
"refresh": "", "refresh": "auto",
"schemaVersion": 39, "schemaVersion": 39,
"tags": [], "tags": [],
"templating": { "templating": {
@ -1243,6 +1059,6 @@
"timezone": "browser", "timezone": "browser",
"title": "Huawei UPS 2000", "title": "Huawei UPS 2000",
"uid": "ee70yskqw5u68f", "uid": "ee70yskqw5u68f",
"version": 7, "version": 11,
"weekStart": "" "weekStart": ""
} }