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:12 UTC

[camel-k] 12/25: feat: Add default alerting rule for build failure SLO

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 8c53d37466227ad5b20f3a6e52c48ffc22fc1c7b
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Wed Oct 21 12:18:26 2020 +0200

    feat: Add default alerting rule for build failure SLO
---
 deploy/operator-prometheus-rule.yaml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/deploy/operator-prometheus-rule.yaml b/deploy/operator-prometheus-rule.yaml
index 6a009dd..0d6ca96 100644
--- a/deploy/operator-prometheus-rule.yaml
+++ b/deploy/operator-prometheus-rule.yaml
@@ -68,3 +68,16 @@ spec:
             message: |
               {{ printf "%0.0f" $value }}% of the successful builds
               for {{ $labels.job }} have their duration above 5m.
+        - alert: CamelKBuildFailure
+          expr: |
+            sum(rate(camel_k_build_duration_seconds_count{result="Error"}[5m])) by (job)
+            /
+            sum(rate(camel_k_build_duration_seconds_count[5m])) by (job)
+            * 100
+            > 1
+          for: 10m
+          labels:
+            severity: warning
+          annotations:
+            message: |
+              {{ printf "%0.0f" $value }}% of the builds for {{ $labels.job }} have failed.