jsonnet/kube-prometheus/alerts: Add namespace to TargetDown msg

This commit is contained in:
Lili Cosic
2019-10-29 14:27:39 +01:00
parent 139df678f0
commit 01d30382aa

View File

@@ -7,7 +7,7 @@
{
alert: 'TargetDown',
annotations: {
message: '{{ printf "%.4g" $value }}% of the {{ $labels.job }} targets are down.',
message: '{{ printf "%.4g" $value }}% of the {{ $labels.job }} targets in {{ $labels.namespace }} namespace are down.',
},
expr: '100 * (count(up == 0) BY (job, namespace, service) / count(up) BY (job, namespace, service)) > 10',
'for': '10m',