Skip to content

Commit

Permalink
fix(RDSCPUUtilization): severity to critical and fixed formatting of …
Browse files Browse the repository at this point in the history
…number
  • Loading branch information
qfritz committed Dec 28, 2023
1 parent 03e48a6 commit 2b2fa09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ rule_files:
evaluation_interval: 1m

tests:

- name: RDSCPUUtilization
interval: 1m
input_series:
- series: 'rds_cpu_usage_percent_average{aws_account_id="111111111111",aws_region="eu-west-3",dbidentifier="db1"}'
values: '90x10'
values: "90x10"
alert_rule_test:
- alertname: RDSCPUUtilization
eval_time: 10m
Expand All @@ -18,7 +17,7 @@ tests:
aws_account_id: 111111111111
aws_region: eu-west-3
dbidentifier: db1
severity: warning
severity: critical
exp_annotations:
description: "db1 has 90% CPU used"
summary: "db1 has high CPU utilization"
Expand Down
5 changes: 2 additions & 3 deletions charts/prometheus-rds-alerts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ rulesGroupName: rds.rules
additionalPrometheusRuleLabels: {}

rules:

RDSExporterMissingMetrics:
expr: absent(rds_exporter_build_info)
for: 5m
Expand Down Expand Up @@ -68,10 +67,10 @@ rules:
expr: max by (aws_account_id, aws_region, dbidentifier) (rds_cpu_usage_percent_average) > 85
for: 10m
labels:
severity: warning
severity: critical
annotations:
summary: "{{ $labels.dbidentifier }} has high CPU utilization"
description: '{{ $labels.dbidentifier }} has {{ printf "%.2g" $value }}% CPU used'
description: '{{ $labels.dbidentifier }} has {{ printf "%.2f" $value }}% CPU used'

RDSNonCPUUtilization:
expr: |
Expand Down

0 comments on commit 2b2fa09

Please sign in to comment.