-
Notifications
You must be signed in to change notification settings - Fork 13
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
5b1c682
commit 877edfd
Showing
14 changed files
with
44 additions
and
44 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
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
24 changes: 12 additions & 12 deletions
24
build/kube-prometheus/mixins/kube-version/prometheus.yaml
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 |
---|---|---|
@@ -1,39 +1,39 @@ | ||
groups: | ||
- name: kubernetes-version-info | ||
rules: | ||
- alert: KubernetesVersionInfoEOS | ||
- alert: KubernetesVersionInfoEos | ||
annotations: | ||
description: The Kubernetes version on the cluster **{{ .Labels.certname }}** (that is version **{{ .Labels.current_version }}**) is **{{ .Value }}** days away from its end of support date which is **{{ .Labels.end_of_support_date }}**. You really should upgrade to ensure you will still get security updates. Please visit https://kubernetes.io/releases/patch-releases/ for more version related information. | ||
summary: Kubernetes version is close to end of support | ||
summary: Kubernetes version is close to end of support. | ||
expr: count by (certname, current_version, end_of_support_date) (kubernetes_version_info_eos <= 30 and kubernetes_version_info_eos > 0) | ||
for: 15m | ||
labels: | ||
alert_id: KubernetesVersionInfoEOS | ||
alert_id: KubernetesVersionInfoEos | ||
severity: warning | ||
- alert: KubernetesVersionInfoEOS | ||
- alert: KubernetesVersionInfoEos | ||
annotations: | ||
description: The Kubernetes version on the cluster **{{ .Labels.certname }}** (that is version **{{ .Labels.current_version }}**) reached its end of support date on **{{ .Labels.end_of_support_date }}**. You really should upgrade to ensure you will still get security updates. Please visit https://kubernetes.io/releases/patch-releases/ for more version related information. | ||
summary: Kubernetes version has reached its end of support | ||
summary: Kubernetes version has reached its end of support. | ||
expr: count by (certname, current_version, end_of_support_date) (kubernetes_version_info_eos < 0 ) | ||
for: 15m | ||
labels: | ||
alert_id: KubernetesVersionInfoEOS | ||
alert_id: KubernetesVersionInfoEos | ||
severity: critical | ||
- alert: KubernetesVersionInfoEOL | ||
- alert: KubernetesVersionInfoEol | ||
annotations: | ||
description: The Kubernetes version on the cluster **{{ .Labels.certname }}** (that is version **{{ .Labels.current_version }}**) is **{{ .Value }}** days away from its end of life date which is **{{ .Labels.end_of_life_date }}**. You really should upgrade soon. Please visit https://kubernetes.io/releases/patch-releases/ for more version related information. | ||
summary: Kubernetes version is close to end of life | ||
summary: Kubernetes version is close to end of life. | ||
expr: count by (certname, current_version, end_of_life_date) (kubernetes_version_info_eol <= 60 and kubernetes_version_info_eol > 0) | ||
for: 15m | ||
labels: | ||
alert_id: KubernetesVersionInfoEOL | ||
alert_id: KubernetesVersionInfoEol | ||
severity: warning | ||
- alert: KubernetesVersionInfoEOL | ||
- alert: KubernetesVersionInfoEol | ||
annotations: | ||
description: The Kubernetes version on the cluster **{{ .Labels.certname }}** (that is version **{{ .Labels.current_version }}**) reached its end of life on **{{ .Labels.end_of_life_date }}**. It is now vital to upgrade. Please visit https://kubernetes.io/releases/patch-releases/ for more version related information. | ||
summary: Kubernetes version has reached its end of life | ||
summary: Kubernetes version has reached its end of life. | ||
expr: count by (certname, current_version, end_of_life_date) (kubernetes_version_info_eol < 0) | ||
for: 15m | ||
labels: | ||
alert_id: KubernetesVersionInfoEOL | ||
alert_id: KubernetesVersionInfoEol | ||
severity: critical |
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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
groups: | ||
- name: monitoring | ||
rules: | ||
- alert: monitor::monitoring_stack::watchdog_missing | ||
- alert: WatchdogMissing | ||
annotations: | ||
description: Prometheus Stack instance **{{ $labels.exported_instance }}** has stopped sending watchdog alerts | ||
summary: Prometheus Stack instance **{{ $labels.exported_instance }}** has sent less than 1 watchdog alert in the past 35 minutes. | ||
summary: Prometheus Stack instance has sent less than 1 watchdog alert in the past 35 minutes. | ||
expr: changes(watchdog_alerts_total[65m]) == 0 | ||
for: 10m | ||
labels: | ||
alert_id: monitor::monitoring_stack::watchdog_missing | ||
alert_id: WatchdogMissing | ||
severity: critical |
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
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