You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2020/11/10 10:20:10 UTC
[camel-k] 10/25: chore: Reformat reconciliation duration alerting
rule
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit b37d64412b67b2227d57cfc0d80c4c90edfe7296
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Tue Oct 20 16:26:06 2020 +0200
chore: Reformat reconciliation duration alerting rule
---
deploy/operator-prometheus-rule.yaml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/deploy/operator-prometheus-rule.yaml b/deploy/operator-prometheus-rule.yaml
index 73b8722..6947505 100644
--- a/deploy/operator-prometheus-rule.yaml
+++ b/deploy/operator-prometheus-rule.yaml
@@ -7,13 +7,21 @@ spec:
- name: camel-k-operator
rules:
- alert: CamelKReconciliationDuration
- expr: 100 * (1 - sum(rate(camel_k_reconciliation_duration_seconds_bucket{le="0.5"}[5m])) by (job) / sum(rate(camel_k_reconciliation_duration_seconds_count[5m])) by (job)) > 10
+ expr: |
+ (
+ 1 - sum(rate(camel_k_reconciliation_duration_seconds_bucket{le="0.5"}[5m])) by (job)
+ /
+ sum(rate(camel_k_reconciliation_duration_seconds_count[5m])) by (job)
+ )
+ * 100
+ > 10
for: 1m
labels:
severity: warning
annotations:
message: |
- {{ printf "%0.0f" $value }}% of the reconciliation requests for {{ $labels.job }} have their duration above 0.5s.
+ {{ printf "%0.0f" $value }}% of the reconciliation requests
+ for {{ $labels.job }} have their duration above 0.5s.
- alert: CamelKReconciliationFailure
expr: |
sum(rate(camel_k_reconciliation_duration_seconds_count{result="Errored"}[5m])) by (job)