-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from stackrox/vbologa/rds_quota_alerts
ROX-16561: Add alerts for AWS quotas
- Loading branch information
Showing
2 changed files
with
155 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
rule_files: | ||
- /tmp/prometheus-rules-test.yaml | ||
|
||
evaluation_interval: 1m | ||
|
||
tests: | ||
- interval: 1m | ||
input_series: | ||
- series: acs_fleetshard_central_db_clusters_used | ||
values: "81+0x70 91+0x110" | ||
- series: acs_fleetshard_central_db_clusters_max | ||
values: "100+0x140 150+0x50" | ||
alert_rule_test: | ||
- eval_time: 50m | ||
alertname: RHACSCentralDBClustersUtilizationHigh | ||
exp_alerts: [] | ||
- eval_time: 61m | ||
alertname: RHACSCentralDBClustersUtilizationHigh | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: RHACSCentralDBClustersUtilizationHigh | ||
severity: warning | ||
exp_annotations: | ||
summary: "The number of RDS DB clusters is close to its limit." | ||
description: "Remaining DB clusters: 19. A quota increase should be requested from AWS.\n" | ||
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-managed-service-runbooks/blob/master/sops/dp-029-increase-aws-rds-limits.md" | ||
- eval_time: 131m | ||
alertname: RHACSCentralDBClustersUtilizationCritical | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: RHACSCentralDBClustersUtilizationCritical | ||
severity: critical | ||
exp_annotations: | ||
summary: "The number of RDS DB clusters is very close to its limit." | ||
description: "Remaining DB clusters: 9. A quota increase must be requested from AWS.\n" | ||
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-managed-service-runbooks/blob/master/sops/dp-029-increase-aws-rds-limits.md" | ||
- eval_time: 141m | ||
alertname: RHACSCentralDBClustersUtilizationCritical | ||
exp_alerts: | ||
[] | ||
- interval: 1m | ||
input_series: | ||
- series: acs_fleetshard_central_db_instances_used | ||
values: "165+0x70 182+0x110" | ||
- series: acs_fleetshard_central_db_instances_max | ||
values: "200+0x140 300+0x50" | ||
alert_rule_test: | ||
- eval_time: 50m | ||
alertname: RHACSCentralDBInstancesUtilizationHigh | ||
exp_alerts: [] | ||
- eval_time: 61m | ||
alertname: RHACSCentralDBInstancesUtilizationHigh | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: RHACSCentralDBInstancesUtilizationHigh | ||
severity: warning | ||
exp_annotations: | ||
summary: "The number of RDS DB instances is close to its limit." | ||
description: "Remaining DB instances: 35. A quota increase should be requested from AWS.\n" | ||
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-managed-service-runbooks/blob/master/sops/dp-029-increase-aws-rds-limits.md" | ||
- eval_time: 131m | ||
alertname: RHACSCentralDBInstancesUtilizationCritical | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: RHACSCentralDBInstancesUtilizationCritical | ||
severity: critical | ||
exp_annotations: | ||
summary: "The number of RDS DB instances is very close to its limit." | ||
description: "Remaining DB instances: 18. A quota increase must be requested from AWS.\n" | ||
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-managed-service-runbooks/blob/master/sops/dp-029-increase-aws-rds-limits.md" | ||
- eval_time: 141m | ||
alertname: RHACSCentralDBInstancesUtilizationCritical | ||
exp_alerts: | ||
[] | ||
- interval: 1m | ||
input_series: | ||
- series: acs_fleetshard_central_db_snapshots_used | ||
values: "801+0x60 901+0x60" | ||
- series: acs_fleetshard_central_db_snapshots_max | ||
values: "1000+0x70 1500+0x50" | ||
alert_rule_test: | ||
- eval_time: 2m | ||
alertname: RHACSCentralDBManualSnapshotsUtilizationHigh | ||
exp_alerts: [] | ||
- eval_time: 7m | ||
alertname: RHACSCentralDBManualSnapshotsUtilizationHigh | ||
exp_alerts: | ||
- exp_labels: | ||
alertname: RHACSCentralDBInstancesUtilizationHigh | ||
severity: warning | ||
exp_annotations: | ||
summary: "The number of RDS DB snapshots is close to its limit." | ||
description: "Remaining DB manual snapshots: 199. A quota increase should be requested from AWS.\n" | ||
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-managed-service-runbooks/blob/master/sops/dp-029-increase-aws-rds-limits.md" | ||
- eval_time: 71m | ||
alertname: RHACSCentralDBManualSnapshotsUtilizationHigh | ||
exp_alerts: | ||
[] |