Merge pull request #189 from kylebyerly-hp/patch-2

Add labels for namespace and service to TargetDown
This commit is contained in:
Frederic Branczyk
2019-08-29 08:12:06 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
annotations: {
message: '{{ $value }}% of the {{ $labels.job }} targets are down.',
},
expr: '100 * (count(up == 0) BY (job) / count(up) BY (job)) > 10',
expr: '100 * (count(up == 0) BY (job, namespace, service) / count(up) BY (job, namespace, service)) > 10',
'for': '10m',
labels: {
severity: 'warning',