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.
- Loading branch information
1 parent
a82316c
commit ba55ada
Showing
19 changed files
with
226 additions
and
153 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
29 changes: 29 additions & 0 deletions
29
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/aws.job.rules.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,29 @@ | ||
## TODO Remove with vintage | ||
# This rule applies to vintage aws management clusters | ||
{{- if eq .Values.managementCluster.provider.flavor "vintage" }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
# No need for .Values.mimir.enabled condition - will be gone with Vintage | ||
cluster_type: "management_cluster" | ||
name: aws.job.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: aws-jobs | ||
rules: | ||
- alert: JobHasNotBeenScheduledForTooLong | ||
annotations: | ||
description: '{{`CronJob {{ $labels.namespace }}/{{ $labels.cronjob }} has not been scheduled for more than 2 hours.`}}' | ||
opsrecipe: job-has-not-been-scheduled-for-too-long/ | ||
expr: (time() - kube_cronjob_status_last_schedule_time{cronjob="route53-manager"}) > 7200 | ||
for: 15m | ||
labels: | ||
area: kaas | ||
severity: page | ||
team: phoenix | ||
topic: managementcluster | ||
{{- end }} |
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
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
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
4 changes: 3 additions & 1 deletion
4
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/credentiald.rules.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
60 changes: 0 additions & 60 deletions
60
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/inhibit.all.rules.yml
This file was deleted.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
helm/prometheus-rules/templates/kaas/phoenix/alerting-rules/inhibit.kiam.rules.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,23 @@ | ||
{{- if eq .Values.managementCluster.provider.flavor "vintage" }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
name: inhibit.kiam.rules | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
groups: | ||
- name: inhibit.kiam | ||
rules: | ||
- alert: InhibitionKiamErrors | ||
annotations: | ||
description: '{{`Kiam on cluster {{ $labels.cluster_id }} has increased error rate.`}}' | ||
expr: increase(kiam_metadata_credential_fetch_errors_total[10m]) > 0 or increase(kiam_metadata_find_role_errors_total[10m]) > 0 or increase(kiam_sts_issuing_errors_total[10m]) > 0 | ||
labels: | ||
area: kaas | ||
kiam_has_errors: "true" | ||
team: phoenix | ||
topic: kiam | ||
{{- end }} |
Oops, something went wrong.