Update rules.yml

This commit is contained in:
Samuel Berthe 2023-08-22 15:51:53 +02:00 committed by GitHub
parent 4279dedb52
commit 053cde27e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -619,7 +619,7 @@ groups:
severity: warning
- name: Postgresql too many connections
description: PostgreSQL instance has too many connections (> 80%).
expr: 'sum by (instance, job, server) (pg_stat_activity_count) > min by (instance, job, server) (pg_settings_max_connections * 0.8)'
query: 'sum by (instance, job, server) (pg_stat_activity_count) > min by (instance, job, server) (pg_settings_max_connections * 0.8)'
severity: warning
for: 2m
- name: Postgresql not enough connections