Merge pull request #189 from kylebyerly-hp/patch-2
Add labels for namespace and service to TargetDown
This commit is contained in:
@@ -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',
|
||||
|
@@ -1124,7 +1124,8 @@ spec:
|
||||
- alert: TargetDown
|
||||
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
|
||||
|
Reference in New Issue
Block a user