Skip to content

Commit

Permalink
Merge pull request #120 from utilitywarehouse/as-thanos-rule
Browse files Browse the repository at this point in the history
adjust thanos rule alerts
  • Loading branch information
asiyani authored Sep 23, 2024
2 parents f329d4b + f7c94fc commit 39d1e53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/thanos.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ groups:
sum by (kubernetes_cluster,kubernetes_namespace,kubernetes_pod_name) (rate(prometheus_rule_evaluations_total{app="thanos-rule"}[5m])) <= 0
and
sum by (kubernetes_cluster,kubernetes_namespace,kubernetes_pod_name) (thanos_rule_loaded_rules{}) > 0
for: 5m
for: 10m
labels:
team: infra
annotations:
Expand All @@ -54,7 +54,7 @@ groups:
>
sum by(kubernetes_cluster, kubernetes_namespace, kubernetes_pod_name, rule_group) (prometheus_rule_group_interval_seconds{app="thanos-rule"})
) > 10
for: 5m
for: 15m
labels:
team: infra
annotations:
Expand All @@ -70,7 +70,7 @@ groups:
sum by (kubernetes_cluster,kubernetes_namespace, kubernetes_pod_name, rule_group) (rate(prometheus_rule_evaluations_total{app="thanos-rule"}[5m]))
* 100 > 5
) > 10
for: 5m
for: 15m
labels:
team: infra
annotations:
Expand Down

0 comments on commit 39d1e53

Please sign in to comment.