Skip to content

Commit

Permalink
Improve API server alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Sep 19, 2024
1 parent 27a71fb commit 186efd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/kamu-api-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kamu-api-server
description: API server component of the Kamu Compute Node
type: application
version: 0.38.1
version: 0.38.2
appVersion: "0.38.0"
home: https://kamu.dev
icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png
Expand Down
10 changes: 6 additions & 4 deletions charts/kamu-api-server/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ spec:
rules:
- alert: OutboxFailedConsumers
expr: >
kamu_api_server_outbox_failed_consumers_total {
namespace="{{ .Release.Namespace }}",
service="{{ include "kamu-api-server.fullname" . }}",
} > 0
sum by (namespace,service) (
kamu_api_server_outbox_failed_consumers_total {
namespace="{{ .Release.Namespace }}",
service="{{ include "kamu-api-server.fullname" . }}",
}
) > 0
annotations:
message: >
API server {{ .Release.Namespace }}/{{ include "kamu-api-server.fullname" . }}
Expand Down

0 comments on commit 186efd5

Please sign in to comment.