Commit 18016895 authored by Marat Kalibekov's avatar Marat Kalibekov

Replace humanize with the printf function

parent 77161fed
......@@ -5,7 +5,7 @@ ALERT worker_10_disk
FOR 1m
LABELS { severity = "critical" }
ANNOTATIONS {
title = "Really low disk space left on {{ $labels.mountpoint }} on {{ $labels.fqdn }}: {{ $value | humanize }}%",
title = "Really low disk space left on {{ $labels.mountpoint }} on {{ $labels.fqdn }}: {{ $value | printf \"%.2f\" }}%",
description = "Consider sshing into the instance and removing old logs following the linked runbook. For status check http://performance.gitlab.net/dashboard/db/fleet-overview",
runbook="troubleshooting/filesystem_alerts.md"
}
......@@ -4,6 +4,6 @@ ALERT number_of_pending_builds_for_project_with_shared_runners_is_too_high
FOR 30m
LABELS {channel="ci"}
ANNOTATIONS {
title="Rate of pending builds for projects with shared runners is too high: {{$value | humanize}}",
title="Rate of pending builds for projects with shared runners is too high: {{$value | printf \"%.2f\" }}",
description="Rate of pending builds for projects with shared runners is increasing and is very high for more than 30 minutes. This may suggest problems with auto-scaling provider or Runner stability. You should check Runner's logs. Check http://performance.gitlab.net/dashboard/db/ci.",
}
......@@ -4,7 +4,7 @@ ALERT machines_creations_rate_is_too_high
FOR 20m
LABELS {channel="ci"}
ANNOTATIONS {
title="Machines creation rate for runners is too high: {{$value | humanize}}",
title="Machines creation rate for runners is too high: {{$value | printf \"%.2f\" }}",
description="Machines creation rate for the last 20 minutes is over 5. This may by a symptom of problems with auto-scaling provider. Check http://performance.gitlab.net/dashboard/db/ci.",
}
......@@ -14,7 +14,7 @@ ALERT machines_creation_rate_for_shared_runners_is_too_small
FOR 10m
LABELS {channel="ci"}
ANNOTATIONS {
title="Machines creation rate for shared runners is too low: {{$value | humanize}}",
title="Machines creation rate for shared runners is too low: {{$value | printf \"%.2f\" }}",
description="Machines creation rate for shared runners for the last 10 minutes is less than 0.1. This may suggest problems with auto-scaling provider. Check http://performance.gitlab.net/dashboard/db/ci.",
}
......@@ -24,6 +24,6 @@ ALERT machines_usage_rate_for_shared_runners_is_too_small
FOR 10m
LABELS {channel="ci"}
ANNOTATIONS {
title="Machines usage rate for shared runners is too low: {{$value | humanize}}",
title="Machines usage rate for shared runners is too low: {{$value | printf \"%.2f\" }}",
description="Machines usage rate for shared runners for the last 10 minutes is less than 0.1. This may suggest problems with auto-scaling provider. Check http://performance.gitlab.net/dashboard/db/ci.",
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment