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.
Move zot alerting rules to be CAPI only (#1270)
- Loading branch information
Showing
4 changed files
with
110 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
File renamed without changes.
54 changes: 54 additions & 0 deletions
54
test/tests/providers/capi/capa/platform/honeybadger/alerting-rules/zot.rules.test.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,54 @@ | ||
--- | ||
rule_files: | ||
- zot.rules.yml | ||
|
||
tests: | ||
- interval: 1m | ||
input_series: | ||
- series: 'kube_deployment_status_replicas_unavailable{cluster_type="management_cluster",namespace="zot",deployment="zot-zot"}' | ||
values: '_x5 0x10 1x45' | ||
alert_rule_test: | ||
- alertname: ZotDeploymentNotSatisfied | ||
eval_time: 46m | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: "ZotDeploymentNotSatisfied" | ||
area: "platform" | ||
cancel_if_cluster_status_creating: "true" | ||
cancel_if_cluster_status_deleting: "true" | ||
cancel_if_cluster_status_updating: "true" | ||
cancel_if_outside_working_hours: "true" | ||
cluster_type: "management_cluster" | ||
deployment: "zot-zot" | ||
namespace: "zot" | ||
severity: "page" | ||
team: "honeybadger" | ||
topic: "managementcluster" | ||
exp_annotations: | ||
description: "Zot deployment zot/zot-zot is not satisfied." | ||
opsrecipe: "zot/" | ||
- interval: 1m | ||
input_series: | ||
- series: 'kubelet_volume_stats_available_bytes{namespace="zot", persistentvolumeclaim="zot-zot-pvc"}' | ||
values: '50x30 20x30 15x30 5x60' | ||
- series: 'kubelet_volume_stats_capacity_bytes{namespace="zot", persistentvolumeclaim="zot-zot-pvc"}' | ||
values: '100x150' | ||
alert_rule_test: | ||
- alertname: ZotPersistentVolumeFillingUp | ||
eval_time: 150m | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: "ZotPersistentVolumeFillingUp" | ||
area: "platform" | ||
cancel_if_cluster_status_creating: "true" | ||
cancel_if_cluster_status_deleting: "true" | ||
cancel_if_cluster_status_updating: "true" | ||
cancel_if_outside_working_hours: "true" | ||
namespace: "zot" | ||
persistentvolumeclaim: "zot-zot-pvc" | ||
severity: "page" | ||
team: "honeybadger" | ||
topic: "managementcluster" | ||
exp_annotations: | ||
description: "The Zot PersistentVolume claimed by zot-zot-pvc in namespace zot is at least 80% full and projected to fill up soon." | ||
opsrecipe: "zot/" |
54 changes: 54 additions & 0 deletions
54
test/tests/providers/capi/capz/platform/honeybadger/alerting-rules/zot.rules.test.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,54 @@ | ||
--- | ||
rule_files: | ||
- zot.rules.yml | ||
|
||
tests: | ||
- interval: 1m | ||
input_series: | ||
- series: 'kube_deployment_status_replicas_unavailable{cluster_type="management_cluster",namespace="zot",deployment="zot-zot"}' | ||
values: '_x5 0x10 1x45' | ||
alert_rule_test: | ||
- alertname: ZotDeploymentNotSatisfied | ||
eval_time: 46m | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: "ZotDeploymentNotSatisfied" | ||
area: "platform" | ||
cancel_if_cluster_status_creating: "true" | ||
cancel_if_cluster_status_deleting: "true" | ||
cancel_if_cluster_status_updating: "true" | ||
cancel_if_outside_working_hours: "true" | ||
cluster_type: "management_cluster" | ||
deployment: "zot-zot" | ||
namespace: "zot" | ||
severity: "page" | ||
team: "honeybadger" | ||
topic: "managementcluster" | ||
exp_annotations: | ||
description: "Zot deployment zot/zot-zot is not satisfied." | ||
opsrecipe: "zot/" | ||
- interval: 1m | ||
input_series: | ||
- series: 'kubelet_volume_stats_available_bytes{namespace="zot", persistentvolumeclaim="zot-zot-pvc"}' | ||
values: '50x30 20x30 15x30 5x60' | ||
- series: 'kubelet_volume_stats_capacity_bytes{namespace="zot", persistentvolumeclaim="zot-zot-pvc"}' | ||
values: '100x150' | ||
alert_rule_test: | ||
- alertname: ZotPersistentVolumeFillingUp | ||
eval_time: 150m | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: "ZotPersistentVolumeFillingUp" | ||
area: "platform" | ||
cancel_if_cluster_status_creating: "true" | ||
cancel_if_cluster_status_deleting: "true" | ||
cancel_if_cluster_status_updating: "true" | ||
cancel_if_outside_working_hours: "true" | ||
namespace: "zot" | ||
persistentvolumeclaim: "zot-zot-pvc" | ||
severity: "page" | ||
team: "honeybadger" | ||
topic: "managementcluster" | ||
exp_annotations: | ||
description: "The Zot PersistentVolume claimed by zot-zot-pvc in namespace zot is at least 80% full and projected to fill up soon." | ||
opsrecipe: "zot/" |