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