Skip to content
Snippets Groups Projects
Unverified Commit fa6d6833 authored by Frederic Branczyk's avatar Frederic Branczyk Committed by GitHub
Browse files

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

Add labels for namespace and service to TargetDown
parents e9341231 fda58119
Branches
Tags
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
annotations: { annotations: {
message: '{{ $value }}% of the {{ $labels.job }} targets are down.', 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', 'for': '10m',
labels: { labels: {
severity: 'warning', severity: 'warning',
......
...@@ -1124,7 +1124,8 @@ spec: ...@@ -1124,7 +1124,8 @@ spec:
- alert: TargetDown - alert: TargetDown
annotations: annotations:
message: '{{ $value }}% of the {{ $labels.job }} targets are down.' 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 for: 10m
labels: labels:
severity: warning severity: warning
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment