fix: grafana alerts
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
datasourceUid = "vm-datasource-uid";
|
||||
relativeTimeRange = { from = 300; to = 0; };
|
||||
model = {
|
||||
expr = ''mdadm_array_state == 0'';
|
||||
expr = ''mdadm_array_state < 1'';
|
||||
instant = false;
|
||||
};
|
||||
}
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
];
|
||||
for = "0s";
|
||||
noDataState = "NoData";
|
||||
noDataState = "OK";
|
||||
execErrState = "Error";
|
||||
annotations = {
|
||||
summary = "RAID array {{ $labels.array }} is degraded";
|
||||
@@ -84,7 +84,7 @@
|
||||
}
|
||||
];
|
||||
for = "0s";
|
||||
noDataState = "NoData";
|
||||
noDataState = "OK";
|
||||
execErrState = "Error";
|
||||
annotations = {
|
||||
summary = "RAID array {{ $labels.array }} has missing devices";
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
datasourceUid = "vm-datasource-uid";
|
||||
relativeTimeRange = { from = 300; to = 0; };
|
||||
model = {
|
||||
expr = ''smart_health_passed == 0'';
|
||||
expr = ''smart_health_passed < 1'';
|
||||
instant = false;
|
||||
};
|
||||
}
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
];
|
||||
for = "0s";
|
||||
noDataState = "NoData";
|
||||
noDataState = "OK";
|
||||
execErrState = "Error";
|
||||
annotations = {
|
||||
summary = "S.M.A.R.T. health check FAILED on {{ $labels.device }}";
|
||||
@@ -84,7 +84,7 @@
|
||||
}
|
||||
];
|
||||
for = "0s";
|
||||
noDataState = "NoData";
|
||||
noDataState = "OK";
|
||||
execErrState = "Error";
|
||||
annotations = {
|
||||
summary = "Reallocated sectors detected on {{ $labels.device }}";
|
||||
@@ -133,7 +133,7 @@
|
||||
}
|
||||
];
|
||||
for = "0s";
|
||||
noDataState = "NoData";
|
||||
noDataState = "OK";
|
||||
execErrState = "Error";
|
||||
annotations = {
|
||||
summary = "Pending sectors detected on {{ $labels.device }}";
|
||||
@@ -182,7 +182,7 @@
|
||||
}
|
||||
];
|
||||
for = "0s";
|
||||
noDataState = "NoData";
|
||||
noDataState = "OK";
|
||||
execErrState = "Error";
|
||||
annotations = {
|
||||
summary = "Offline uncorrectable errors on {{ $labels.device }}";
|
||||
@@ -231,7 +231,7 @@
|
||||
}
|
||||
];
|
||||
for = "10m";
|
||||
noDataState = "NoData";
|
||||
noDataState = "OK";
|
||||
execErrState = "Error";
|
||||
annotations = {
|
||||
summary = "High temperature on {{ $labels.device }}";
|
||||
@@ -280,7 +280,7 @@
|
||||
}
|
||||
];
|
||||
for = "0s";
|
||||
noDataState = "NoData";
|
||||
noDataState = "OK";
|
||||
execErrState = "Error";
|
||||
annotations = {
|
||||
summary = "UDMA CRC errors on {{ $labels.device }}";
|
||||
|
||||
@@ -115,7 +115,6 @@ in
|
||||
settings = {
|
||||
apiToken = "\${PUSHOVER_API_TOKEN}";
|
||||
userKey = "\${PUSHOVER_USER_KEY}";
|
||||
device = "iphone";
|
||||
priority = 2;
|
||||
retry = "30s";
|
||||
expire = "2m";
|
||||
@@ -134,7 +133,6 @@ in
|
||||
settings = {
|
||||
apiToken = "\${PUSHOVER_API_TOKEN}";
|
||||
userKey = "\${PUSHOVER_USER_KEY}";
|
||||
device = "iphone";
|
||||
priority = 1;
|
||||
sound = "siren";
|
||||
okSound = "magic";
|
||||
|
||||
Reference in New Issue
Block a user