Skip to content

Commit

Permalink
fix(RDSCPUUtilization): critical now and fixed formatting of number (#21
Browse files Browse the repository at this point in the history
)

fix(RDSCPUUtilization): severity to critical and fixed formatting of number
  • Loading branch information
qfritz authored Dec 28, 2023
1 parent 03e48a6 commit c62589b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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,8 +17,8 @@ tests:
aws_account_id: 111111111111
aws_region: eu-west-3
dbidentifier: db1
severity: warning
severity: critical
exp_annotations:
description: "db1 has 90% CPU used"
description: "db1 has 90.00% CPU used"
summary: "db1 has high CPU utilization"
runbook_url: "https://qonto.github.io/database-monitoring-framework/0.0.0/runbooks/rds/RDSCPUUtilization"
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 c62589b

Please sign in to comment.