Skip to content
Snippets Groups Projects
Unverified Commit a3b11215 authored by Sergiusz Urbaniak's avatar Sergiusz Urbaniak Committed by GitHub
Browse files

Merge pull request #290 from LiliC/imrove-targets-down

jsonnet/kube-prometheus/alerts: Add namespace to TargetDown msg
parents cc389a71 78b91838
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{ {
alert: 'TargetDown', alert: 'TargetDown',
annotations: { 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', expr: '100 * (count(up == 0) BY (job, namespace, service) / count(up) BY (job, namespace, service)) > 10',
'for': '10m', 'for': '10m',
......
...@@ -1185,8 +1185,8 @@ spec: ...@@ -1185,8 +1185,8 @@ spec:
rules: rules:
- alert: TargetDown - alert: TargetDown
annotations: annotations:
message: '{{ printf "%.4g" $value }}% of the {{ $labels.job }} targets are message: '{{ printf "%.4g" $value }}% of the {{ $labels.job }} targets in
down.' {{ $labels.namespace }} namespace are down.'
expr: 100 * (count(up == 0) BY (job, namespace, service) / count(up) BY (job, expr: 100 * (count(up == 0) BY (job, namespace, service) / count(up) BY (job,
namespace, service)) > 10 namespace, service)) > 10
for: 10m for: 10m
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment