Skip to content

Commit 8c34fa8

Browse files
authored
Fix alerts summary - remove labels (prometheus-community#13)
1 parent 0dcf5c4 commit 8c34fa8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

postgres_mixin/alerts/postgres.libsonnet

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
alert: 'PostgreSQLMaxConnectionsReached',
99
annotations: {
1010
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.',
11-
summary: '{{ $labels.instance }} has maxed out Postgres connections.',
11+
summary: 'Postgres connections count is over the maximum amount.',
1212
},
1313
expr: |||
1414
sum by (instance) (pg_stat_activity_count{%(postgresExporterSelector)s})
@@ -26,7 +26,7 @@
2626
alert: 'PostgreSQLHighConnections',
2727
annotations: {
2828
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).',
29-
summary: '{{ $labels.instance }} is over 80% of max Postgres connections.',
29+
summary: 'Postgres connections count is over 80% of maximum amount.',
3030
},
3131
expr: |||
3232
sum by (instance) (pg_stat_activity_count{%(postgresExporterSelector)s})
@@ -46,7 +46,7 @@
4646
alert: 'PostgreSQLDown',
4747
annotations: {
4848
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.',
49-
summary: 'PostgreSQL is not processing queries: {{ $labels.instance }}',
49+
summary: 'PostgreSQL is not processing queries.',
5050
},
5151
expr: 'pg_up{%(postgresExporterSelector)s} != 1' % $._config,
5252
'for': '1m',
@@ -58,7 +58,7 @@
5858
alert: 'PostgreSQLSlowQueries',
5959
annotations: {
6060
description: 'PostgreSQL high number of slow queries {{ $labels.cluster }} for database {{ $labels.datname }} with a value of {{ $value }} ',
61-
summary: 'PostgreSQL high number of slow on {{ $labels.cluster }} for database {{ $labels.datname }} ',
61+
summary: 'PostgreSQL high number of slow queries.',
6262
},
6363
expr: |||
6464
avg by (datname) (
@@ -76,7 +76,7 @@
7676
alert: 'PostgreSQLQPS',
7777
annotations: {
7878
description: 'PostgreSQL high number of queries per second on {{ $labels.cluster }} for database {{ $labels.datname }} with a value of {{ $value }}',
79-
summary: 'PostgreSQL high number of queries per second {{ $labels.cluster }} for database {{ $labels.datname }}',
79+
summary: 'PostgreSQL high number of queries per second.',
8080
},
8181
expr: |||
8282
avg by (datname) (
@@ -98,7 +98,7 @@
9898
alert: 'PostgreSQLCacheHitRatio',
9999
annotations: {
100100
description: 'PostgreSQL low on cache hit rate on {{ $labels.cluster }} for database {{ $labels.datname }} with a value of {{ $value }}',
101-
summary: 'PostgreSQL low cache hit rate on {{ $labels.cluster }} for database {{ $labels.datname }}',
101+
summary: 'PostgreSQL low cache hit rate.',
102102
},
103103
expr: |||
104104
avg by (datname) (

0 commit comments

Comments
 (0)