Merge pull request #239 from simonpasquier/improve-target-down-message

jsonnet/kube-prometheus/alerts: improve TargetDown message
This commit is contained in:
Frederic Branczyk
2019-09-25 09:56:53 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -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',