Skip to content

Fix alerts summary - remove labels #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions postgres_mixin/alerts/postgres.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
alert: 'PostgreSQLMaxConnectionsReached',
annotations: {
description: '{{ $labels.instance }} is exceeding the currently configured maximum Postgres connection limit (current value: {{ $value }}s). Services may be degraded - please take immediate action (you probably need to increase max_connections in the Docker image and re-deploy.',
summary: '{{ $labels.instance }} has maxed out Postgres connections.',
summary: 'Postgres connections count is over the maximum amount.',
},
expr: |||
sum by (instance) (pg_stat_activity_count{%(postgresExporterSelector)s})
Expand All @@ -26,7 +26,7 @@
alert: 'PostgreSQLHighConnections',
annotations: {
description: '{{ $labels.instance }} is exceeding 80% of the currently configured maximum Postgres connection limit (current value: {{ $value }}s). Please check utilization graphs and confirm if this is normal service growth, abuse or an otherwise temporary condition or if new resources need to be provisioned (or the limits increased, which is mostly likely).',
summary: '{{ $labels.instance }} is over 80% of max Postgres connections.',
summary: 'Postgres connections count is over 80% of maximum amount.',
},
expr: |||
sum by (instance) (pg_stat_activity_count{%(postgresExporterSelector)s})
Expand All @@ -46,7 +46,7 @@
alert: 'PostgreSQLDown',
annotations: {
description: '{{ $labels.instance }} is rejecting query requests from the exporter, and thus probably not allowing DNS requests to work either. User services should not be effected provided at least 1 node is still alive.',
summary: 'PostgreSQL is not processing queries: {{ $labels.instance }}',
summary: 'PostgreSQL is not processing queries.',
},
expr: 'pg_up{%(postgresExporterSelector)s} != 1' % $._config,
'for': '1m',
Expand All @@ -58,7 +58,7 @@
alert: 'PostgreSQLSlowQueries',
annotations: {
description: 'PostgreSQL high number of slow queries {{ $labels.cluster }} for database {{ $labels.datname }} with a value of {{ $value }} ',
summary: 'PostgreSQL high number of slow on {{ $labels.cluster }} for database {{ $labels.datname }} ',
summary: 'PostgreSQL high number of slow queries.',
},
expr: |||
avg by (datname) (
Expand All @@ -76,7 +76,7 @@
alert: 'PostgreSQLQPS',
annotations: {
description: 'PostgreSQL high number of queries per second on {{ $labels.cluster }} for database {{ $labels.datname }} with a value of {{ $value }}',
summary: 'PostgreSQL high number of queries per second {{ $labels.cluster }} for database {{ $labels.datname }}',
summary: 'PostgreSQL high number of queries per second.',
},
expr: |||
avg by (datname) (
Expand All @@ -98,7 +98,7 @@
alert: 'PostgreSQLCacheHitRatio',
annotations: {
description: 'PostgreSQL low on cache hit rate on {{ $labels.cluster }} for database {{ $labels.datname }} with a value of {{ $value }}',
summary: 'PostgreSQL low cache hit rate on {{ $labels.cluster }} for database {{ $labels.datname }}',
summary: 'PostgreSQL low cache hit rate.',
},
expr: |||
avg by (datname) (
Expand Down