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

Merge pull request #634 from lilic/adjust-prom-operator-alerts

jsonnet/prometheus-operator.libsonnet: Adjust alerts range
parents 055d378d 16778e0f
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{ {
alert: 'PrometheusOperatorListErrors', alert: 'PrometheusOperatorListErrors',
expr: ||| expr: |||
(sum by (controller,namespace) (rate(prometheus_operator_list_operations_failed_total{%(prometheusOperatorSelector)s}[1h])) / sum by (controller,namespace) (rate(prometheus_operator_list_operations_total{%(prometheusOperatorSelector)s}[1h]))) > 0.4 (sum by (controller,namespace) (rate(prometheus_operator_list_operations_failed_total{%(prometheusOperatorSelector)s}[10m])) / sum by (controller,namespace) (rate(prometheus_operator_list_operations_total{%(prometheusOperatorSelector)s}[10m]))) > 0.4
||| % $._config, ||| % $._config,
labels: { labels: {
severity: 'warning', severity: 'warning',
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
alert: 'PrometheusOperatorWatchErrors', alert: 'PrometheusOperatorWatchErrors',
expr: ||| expr: |||
(sum by (controller,namespace) (rate(prometheus_operator_watch_operations_failed_total{%(prometheusOperatorSelector)s}[1h])) / sum by (controller,namespace) (rate(prometheus_operator_watch_operations_total{%(prometheusOperatorSelector)s}[1h]))) > 0.4 (sum by (controller,namespace) (rate(prometheus_operator_watch_operations_failed_total{%(prometheusOperatorSelector)s}[10m])) / sum by (controller,namespace) (rate(prometheus_operator_watch_operations_total{%(prometheusOperatorSelector)s}[10m]))) > 0.4
||| % $._config, ||| % $._config,
labels: { labels: {
severity: 'warning', severity: 'warning',
......
...@@ -1875,7 +1875,7 @@ spec: ...@@ -1875,7 +1875,7 @@ spec:
message: Errors while performing List operations in controller {{$labels.controller}} message: Errors while performing List operations in controller {{$labels.controller}}
in {{$labels.namespace}} namespace. in {{$labels.namespace}} namespace.
expr: | expr: |
(sum by (controller,namespace) (rate(prometheus_operator_list_operations_failed_total{job="prometheus-operator",namespace="monitoring"}[1h])) / sum by (controller,namespace) (rate(prometheus_operator_list_operations_total{job="prometheus-operator",namespace="monitoring"}[1h]))) > 0.4 (sum by (controller,namespace) (rate(prometheus_operator_list_operations_failed_total{job="prometheus-operator",namespace="monitoring"}[10m])) / sum by (controller,namespace) (rate(prometheus_operator_list_operations_total{job="prometheus-operator",namespace="monitoring"}[10m]))) > 0.4
for: 15m for: 15m
labels: labels:
severity: warning severity: warning
...@@ -1884,7 +1884,7 @@ spec: ...@@ -1884,7 +1884,7 @@ spec:
message: Errors while performing Watch operations in controller {{$labels.controller}} message: Errors while performing Watch operations in controller {{$labels.controller}}
in {{$labels.namespace}} namespace. in {{$labels.namespace}} namespace.
expr: | expr: |
(sum by (controller,namespace) (rate(prometheus_operator_watch_operations_failed_total{job="prometheus-operator",namespace="monitoring"}[1h])) / sum by (controller,namespace) (rate(prometheus_operator_watch_operations_total{job="prometheus-operator",namespace="monitoring"}[1h]))) > 0.4 (sum by (controller,namespace) (rate(prometheus_operator_watch_operations_failed_total{job="prometheus-operator",namespace="monitoring"}[10m])) / sum by (controller,namespace) (rate(prometheus_operator_watch_operations_total{job="prometheus-operator",namespace="monitoring"}[10m]))) > 0.4
for: 15m for: 15m
labels: labels:
severity: warning severity: warning
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment