Skip to content
Snippets Groups Projects
Commit b9504efe authored by Simon Pasquier's avatar Simon Pasquier
Browse files

jsonnet/kube-prometheus/alerts: improve TargetDown message

parent dc20838d
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
{
alert: 'TargetDown',
annotations: {
message: '{{ $value }}% of the {{ $labels.job }} targets are down.',
message: '{{ printf "%.4g" $value }}% of the {{ $labels.job }} targets are down.',
},
expr: '100 * (count(up == 0) BY (job, namespace, service) / count(up) BY (job, namespace, service)) > 10',
'for': '10m',
......
......@@ -1123,7 +1123,8 @@ spec:
rules:
- alert: TargetDown
annotations:
message: '{{ $value }}% of the {{ $labels.job }} targets are down.'
message: '{{ printf "%.4g" $value }}% of the {{ $labels.job }} targets are
down.'
expr: 100 * (count(up == 0) BY (job, namespace, service) / count(up) BY (job,
namespace, service)) > 10
for: 10m
......
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