diff options
-rw-r--r-- | kubernetes/namespaces/monitoring/alerts/alerts.d/postgres.yaml | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/kubernetes/namespaces/monitoring/alerts/alerts.d/postgres.yaml b/kubernetes/namespaces/monitoring/alerts/alerts.d/postgres.yaml deleted file mode 100644 index 399a84b..0000000 --- a/kubernetes/namespaces/monitoring/alerts/alerts.d/postgres.yaml +++ /dev/null @@ -1,29 +0,0 @@ -groups: -- name: postgres - rules: - - alert: PostgresUp - expr: pg_up == 0 - for: 0m - labels: - severity: page - annotations: - summary: "PostgreSQL is offline" - description: "Postgres Exporter cannot connect to PostgreSQL." - - - alert: PostgresTooManyConnections - expr: (sum(pg_stat_activity_count) by (instance)) / on (instance) pg_settings_max_connections * 100 > 80 - for: 1m - labels: - severity: page - annotations: - summary: PostgreSQL connections near max_connections setting - description: "PostgreSQL instance is near the maximum connection limit, currently {{ $value }} connections" - - - alert: PostgresDeadlockedTable - expr: increase(pg_stat_database_deadlocks{datname!~"template.*|postgres"}[1m]) > 3 - for: 1m - labels: - severity: page - annotations: - summary: Too many deadlocked tables - description: "PostgreSQL has dead-locks, value: {{ $value }}" |