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.
Reorganize the job rules and the management-cluster-certificate alerts (
#1213) * reorganize-job-and-management-cluster-certificage * Split job alerts into 2 (aws specific and the rest) and move the management-cluster-certificate alerts Signed-off-by: QuentinBisson <[email protected]> * Fix changelog --------- Signed-off-by: QuentinBisson <[email protected]>
- Loading branch information
1 parent
c24cc26
commit da92a86
Showing
4 changed files
with
37 additions
and
17 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