Skip to content

Commit

Permalink
feat: INFRA-685 fix minio disk alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
Issam committed Sep 8, 2024
1 parent 638fe43 commit dca7a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/node-exporter.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ groups:
expr: count without (device, major, minor, serial, path, model, revision) (node_disk_info{device=~"sd.|vd.",job="${job.tag}-node-exporter"})
%{ if job.expected_disks_count >= 0 ~}
- alert: ${replace(title(replace(job.tag, "-", " ")), " ", "")}DiskCountMismatch
expr: ${replace(job.tag, "-", "_")}:disks:count != ${job.expected_disks_count}
expr: (${replace(job.tag, "-", "_")}:disks:count <= 5 or ${replace(job.tag, "-", "_")}:disks:count >= 7)
for: 15m
%{ if length(job.alert_labels) > 0 ~}
labels:
Expand All @@ -66,7 +66,7 @@ groups:
%{ endif ~}
annotations:
summary: "${title(replace(job.tag, "-", " "))} Number of Disks Unexpected"
description: "Instance *{{ $labels.instance }}* of job *{{ $labels.job }}* has *{{ $value }}* disks. Expected *${job.expected_disks_count}*."
description: "Instance *{{ $labels.instance }}* of job *{{ $labels.job }}* has *{{ $value }}* disks. Expected between 5 and 7."
%{ endif ~}
- record: ${replace(job.tag, "-", "_")}:filesystem_size:gigabytes
expr: node_filesystem_size_bytes{job="${job.tag}-node-exporter", fstype="ext4"} / 1024 / 1024 / 1024
Expand Down

0 comments on commit dca7a2b

Please sign in to comment.