Skip to content
Snippets Groups Projects
Commit 22dd43e3 authored by Ben Kochie's avatar Ben Kochie
Browse files

Add printf to githost.rules

Reduce the excessive decimal places in storage space alert messages.
parent 21612464
No related branches found
No related tags found
1 merge request!4Add printf to githost.rules
Pipeline #
Loading
Loading
@@ -32,7 +32,7 @@ ALERT NodeFilesystemFull
}
ANNOTATIONS {
summary = "Filesystem is full",
description = "Filesystem '{{ $labels.mountpoint }}' on {{ $labels.instance }} is full: {{ $value }}%",
description = "Filesystem '{{ $labels.mountpoint }}' on {{ $labels.instance }} is full: {{ $value | printf \"%.2f\" }}%",
runbook = "troubleshooting/filesystem_alerts.md",
}
 
Loading
Loading
@@ -44,7 +44,7 @@ ALERT NodeFilesystemFull
}
ANNOTATIONS {
summary = "Filesystem is full",
description = "Filesystem '{{ $labels.mountpoint }}' on {{ $labels.instance }} is full: {{ $value }}%",
description = "Filesystem '{{ $labels.mountpoint }}' on {{ $labels.instance }} is full: {{ $value | printf \"%.2f\" }}%",
runbook = "troubleshooting/filesystem_alerts.md",
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment