generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Atlas app-configuration alerts (#1268)
* Add Atlas app-configuration alerts * Adjust rules * Update atlas-app-configuration alerts * Update atlas-app-configuration alerts
- Loading branch information
1 parent
39bd73e
commit 0c9a62e
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
helm/prometheus-rules/templates/platform/atlas/alerting-rules/app-configuration.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
name: atlas-app-configuration.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: atlas-app-configuration | ||
rules: | ||
# Coming from https://gigantic.slack.com/archives/C07A03AN9JM | ||
# This alert ensures our app has no unexpected configmaps. | ||
- alert: ConfigmapUnexpected | ||
annotations: | ||
description: '{{`{{ $labels.configmap }} configmap is not expected.`}}' | ||
opsrecipe: atlas-app-configuration/ | ||
expr: | | ||
kube_configmap_info{cluster_type="management_cluster", configmap=~".*(loki|mimir|prometheus-agent)-user-values"} > 0 | ||
for: 2d | ||
labels: | ||
area: platform | ||
cancel_if_outside_working_hours: "true" | ||
severity: notify | ||
team: atlas | ||
topic: observability | ||
# This alert ensures our app has no unexpected secrets. | ||
- alert: SecretUnexpected | ||
annotations: | ||
description: '{{`{{ $labels.secret }} secret is not expected.`}}' | ||
opsrecipe: atlas-app-configuration/ | ||
expr: | | ||
kube_secret_info{cluster_type="management_cluster", secret=~".*(loki|mimir|prometheus-agent)-user-values"} > 0 | ||
for: 2d | ||
labels: | ||
area: platform | ||
cancel_if_outside_working_hours: "true" | ||
severity: notify | ||
team: atlas | ||
topic: observability |