Skip to content

Commit

Permalink
Remove akv2k8s and opencost from AppWithoutTeamAnnotation
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson committed Dec 4, 2023
1 parent a780c42 commit 784c922
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- reduced sensitivity for lokiringunhealthy

### Removed

- Ignore `akv2k8s` and `opencost` from `AppWithoutTeamAnnotation` alert.

## [2.144.0] - 2023-11-27

### Changed
Expand Down
4 changes: 2 additions & 2 deletions helm/prometheus-rules/templates/alerting-rules/app.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ spec:
description: '{{`App {{ $labels.name }} has no team label.`}}'
opsrecipe: app-without-team-annotation/
{{- if eq .Values.managementCluster.provider.flavor "capi" }}
expr: label_replace(app_operator_app_info{team=~"^$|noteam", catalog=~"giantswarm.*|control-plane(-test)?-catalog|cluster(-test)?|default(-test)?|releases(-test)?"}, "cluster_id", "$1", "name", "([a-zA-Z0-9]+)-.*") == 1
expr: label_replace(app_operator_app_info{app!~"akv2k8s|opencost", team=~"^$|noteam", catalog=~"giantswarm.*|control-plane(-test)?-catalog|cluster(-test)?|default(-test)?|releases(-test)?"}, "cluster_id", "$1", "name", "([a-zA-Z0-9]+)-.*") == 1
{{- else }}
expr: label_replace(app_operator_app_info{team=~"^$|noteam", catalog=~"giantswarm.*|control-plane(-test)?-catalog|cluster(-test)?|default(-test)?|releases(-test)?"}, "cluster_id", "$1", "namespace", {{ include "namespaceNotGiantswarm" . }}) == 1
expr: label_replace(app_operator_app_info{app!~"akv2k8s|opencost", team=~"^$|noteam", catalog=~"giantswarm.*|control-plane(-test)?-catalog|cluster(-test)?|default(-test)?|releases(-test)?"}, "cluster_id", "$1", "namespace", {{ include "namespaceNotGiantswarm" . }}) == 1
{{- end }}
for: 40m
labels:
Expand Down

0 comments on commit 784c922

Please sign in to comment.