Skip to content

Commit

Permalink
apps/monitoring: fix what wasn't fixed in 3a6c4c4
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Feb 12, 2021
1 parent 3a6c4c4 commit 01452a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/monitoring/jsonnet/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ local kp =
groups: std.map(function(ruleGroup) ruleGroup {
rules: std.map(
function(rule) if 'alert' in rule && rule.alert == 'TargetDown' then
rule { expr: '100 * (count(up{job!="windows"}, == 0) BY (job, namespace, service) / count(up{job!="windows"}) BY (job, namespace, service)) > 10' }
rule { expr: '100 * (count(up{job!="windows"} == 0) BY (job, namespace, service) / count(up{job!="windows"}) BY (job, namespace, service)) > 10' }
else rule,
ruleGroup.rules,
),
Expand Down
4 changes: 2 additions & 2 deletions apps/monitoring/manifests/other/kubePrometheusRule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ spec:
annotations:
message: '{{ printf "%.4g" $value }}% of the {{ $labels.job }}/{{ $labels.service
}} targets in {{ $labels.namespace }} namespace are down.'
expr: 100 * (count(up{job!="windows"}, == 0) BY (job, namespace, service) /
count(up{job!="windows"}) BY (job, namespace, service)) > 10
expr: 100 * (count(up{job!="windows"} == 0) BY (job, namespace, service) / count(up{job!="windows"})
BY (job, namespace, service)) > 10
for: 10m
labels:
severity: warning
Expand Down

0 comments on commit 01452a9

Please sign in to comment.