Skip to content

Commit

Permalink
chart: convert serviceUserLimit to int
Browse files Browse the repository at this point in the history
Co-authored-by: Morten Lied Johansen <[email protected]>
  • Loading branch information
tronghn and mortenlj committed Sep 16, 2024
1 parent 809a611 commit fb2e57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/aivenator/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
* Check for other Aiven problems:
https://monitoring.nais.io/d/aiven-kafka-overview/aiven-kafka-overview?orgId=1&refresh=1m&var-tenant={{ .Values.tenant }}&var-ds={{ .Values.tenant }}-{{ .Values.clusterName }}
{{- if ge .Values.aiven.serviceUserLimit 1000 }}
{{- if ge (.Values.aiven.serviceUserLimit | atoi) 1000 }}
- alert: AivenServiceUserLimit
expr: 'sum(aivenator_service_users_count{pool="{{ .Values.aiven.mainProject }}"}) >= ({{ .Values.aiven.serviceUserLimit }} - 100)'
for: 5m
Expand Down

0 comments on commit fb2e57d

Please sign in to comment.