Skip to content

Commit c62589b

Browse files
authored
fix(RDSCPUUtilization): critical now and fixed formatting of number (#21)
fix(RDSCPUUtilization): severity to critical and fixed formatting of number
1 parent 03e48a6 commit c62589b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

charts/prometheus-rds-alerts/prometheus_tests/RDSCPUUtilization.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ rule_files:
44
evaluation_interval: 1m
55

66
tests:
7-
87
- name: RDSCPUUtilization
98
interval: 1m
109
input_series:
1110
- series: 'rds_cpu_usage_percent_average{aws_account_id="111111111111",aws_region="eu-west-3",dbidentifier="db1"}'
12-
values: '90x10'
11+
values: 90x10
1312
alert_rule_test:
1413
- alertname: RDSCPUUtilization
1514
eval_time: 10m
@@ -18,8 +17,8 @@ tests:
1817
aws_account_id: 111111111111
1918
aws_region: eu-west-3
2019
dbidentifier: db1
21-
severity: warning
20+
severity: critical
2221
exp_annotations:
23-
description: "db1 has 90% CPU used"
22+
description: "db1 has 90.00% CPU used"
2423
summary: "db1 has high CPU utilization"
2524
runbook_url: "https://qonto.github.io/database-monitoring-framework/0.0.0/runbooks/rds/RDSCPUUtilization"

charts/prometheus-rds-alerts/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ rulesGroupName: rds.rules
99
additionalPrometheusRuleLabels: {}
1010

1111
rules:
12-
1312
RDSExporterMissingMetrics:
1413
expr: absent(rds_exporter_build_info)
1514
for: 5m
@@ -68,10 +67,10 @@ rules:
6867
expr: max by (aws_account_id, aws_region, dbidentifier) (rds_cpu_usage_percent_average) > 85
6968
for: 10m
7069
labels:
71-
severity: warning
70+
severity: critical
7271
annotations:
7372
summary: "{{ $labels.dbidentifier }} has high CPU utilization"
74-
description: '{{ $labels.dbidentifier }} has {{ printf "%.2g" $value }}% CPU used'
73+
description: '{{ $labels.dbidentifier }} has {{ printf "%.2f" $value }}% CPU used'
7574

7675
RDSNonCPUUtilization:
7776
expr: |

0 commit comments

Comments
 (0)