add low voltage alert to prometheus and update some dashboards [ci skip]
This commit is contained in:
parent
33be8d34cd
commit
5ee5e59e61
2 changed files with 98 additions and 9 deletions
|
|
@ -517,15 +517,27 @@
|
||||||
},
|
},
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "percentage",
|
"mode": "absolute",
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"color": "green",
|
"color": "green",
|
||||||
"value": null
|
"value": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "dark-red",
|
||||||
|
"value": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "orange",
|
||||||
|
"value": 210
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "green",
|
||||||
|
"value": 220
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "amp"
|
"unit": "volt"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
|
|
@ -535,7 +547,7 @@
|
||||||
"x": 18,
|
"x": 18,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"id": 4,
|
"id": 17,
|
||||||
"options": {
|
"options": {
|
||||||
"minVizHeight": 75,
|
"minVizHeight": 75,
|
||||||
"minVizWidth": 75,
|
"minVizWidth": 75,
|
||||||
|
|
@ -560,7 +572,7 @@
|
||||||
},
|
},
|
||||||
"disableTextWrap": false,
|
"disableTextWrap": false,
|
||||||
"editorMode": "builder",
|
"editorMode": "builder",
|
||||||
"expr": "ups_upsBatteryCurrent / 1000000000",
|
"expr": "ups_upsInputVoltage",
|
||||||
"fullMetaSearch": false,
|
"fullMetaSearch": false,
|
||||||
"includeNullMetadata": true,
|
"includeNullMetadata": true,
|
||||||
"instant": false,
|
"instant": false,
|
||||||
|
|
@ -570,7 +582,7 @@
|
||||||
"useBackend": false
|
"useBackend": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Battery Current",
|
"title": "Input Voltage",
|
||||||
"type": "gauge"
|
"type": "gauge"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -693,7 +705,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"color": "red",
|
"color": "red",
|
||||||
"value": 80
|
"value": 200
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -1043,9 +1055,77 @@
|
||||||
],
|
],
|
||||||
"title": "Output Current",
|
"title": "Output Current",
|
||||||
"type": "timeseries"
|
"type": "timeseries"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "PBFA97CFB590B2093"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
|
"mappings": [],
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "percentage",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green",
|
||||||
|
"value": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"unit": "amp"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 5,
|
||||||
|
"w": 3,
|
||||||
|
"x": 21,
|
||||||
|
"y": 21
|
||||||
|
},
|
||||||
|
"id": 4,
|
||||||
|
"options": {
|
||||||
|
"minVizHeight": 75,
|
||||||
|
"minVizWidth": 75,
|
||||||
|
"orientation": "auto",
|
||||||
|
"reduceOptions": {
|
||||||
|
"calcs": [
|
||||||
|
"lastNotNull"
|
||||||
|
],
|
||||||
|
"fields": "",
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"showThresholdLabels": false,
|
||||||
|
"showThresholdMarkers": true,
|
||||||
|
"sizing": "auto"
|
||||||
|
},
|
||||||
|
"pluginVersion": "11.1.0",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "PBFA97CFB590B2093"
|
||||||
|
},
|
||||||
|
"disableTextWrap": false,
|
||||||
|
"editorMode": "builder",
|
||||||
|
"expr": "ups_upsBatteryCurrent / 1000000000",
|
||||||
|
"fullMetaSearch": false,
|
||||||
|
"includeNullMetadata": true,
|
||||||
|
"instant": false,
|
||||||
|
"legendFormat": "__auto",
|
||||||
|
"range": true,
|
||||||
|
"refId": "A",
|
||||||
|
"useBackend": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Battery Current",
|
||||||
|
"type": "gauge"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"refresh": "auto",
|
"refresh": "5s",
|
||||||
"schemaVersion": 39,
|
"schemaVersion": 39,
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"templating": {
|
"templating": {
|
||||||
|
|
@ -1059,6 +1139,6 @@
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"title": "Huawei UPS 2000",
|
"title": "Huawei UPS 2000",
|
||||||
"uid": "ee70yskqw5u68f",
|
"uid": "ee70yskqw5u68f",
|
||||||
"version": 11,
|
"version": 15,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ server:
|
||||||
# enabled: false
|
# enabled: false
|
||||||
existingClaim: prometheus-iscsi-pvc
|
existingClaim: prometheus-iscsi-pvc
|
||||||
# storageClass: rook-cephfs
|
# storageClass: rook-cephfs
|
||||||
retention: "4w"
|
retention: "12w"
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
baseURL: "https://prometheus.viktorbarzin.me"
|
baseURL: "https://prometheus.viktorbarzin.me"
|
||||||
|
|
@ -149,6 +149,15 @@ serverFiles:
|
||||||
# targets: "alertmanager.viktorbarzin.lan"
|
# targets: "alertmanager.viktorbarzin.lan"
|
||||||
alerting_rules.yml:
|
alerting_rules.yml:
|
||||||
groups:
|
groups:
|
||||||
|
- name: LowVoltage
|
||||||
|
rules:
|
||||||
|
- alert: LowVoltage
|
||||||
|
expr: ups_upsInputVoltage < 205
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: page
|
||||||
|
annotations:
|
||||||
|
summary: Low input voltage
|
||||||
- name: NodeDown
|
- name: NodeDown
|
||||||
rules:
|
rules:
|
||||||
- alert: NodeDown
|
- alert: NodeDown
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue