Prometheus alert rules incorrectly showing total disk capacity

10 views
Skip to first unread message

Faik OZCAN

unread,
Feb 25, 2021, 5:08:47 AM2/25/21
to Prometheus Users

Hi, 
I'm writing a rule about the Windows server disk fullness, but the warning is showing the capacity of the disk incorrectly, I can't find where there is an error

DiskFull

  • alert: DiskFull expr: ((100 - 100 * ((windows_logical_disk_free_bytes / 1024 / 1024) / ((windows_logical_disk_size_bytes) / 1024 / 1024)) > 90)) for: 3s labels: severity: 'Warning' annotations: DiscCapasity: "{{ printf "windows_logical_disk_size_bytes{volume='%s'}" .Labels.volume | query | first | value | humanize }}"
Reply all
Reply to author
Forward
0 new messages