File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
coder-observability/templates Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 218218 rules:
219219 { { $alert := " PostgresDown" } }
220220 - alert: { { $alert } }
221- expr: pg_up{ namespace= {{ .Release.Namespace } }} == 0
221+ expr: pg_up{ namespace= " {{ .Release.Namespace }}" } == 0
222222 for: { { $group .delay } }
223223 annotations:
224224 summary: The postgres instance { { `{{ $labels .instance } }` }} is down!
235235 { { $alert := " PostgresConnectionsRunningLow" } }
236236 { {- range $severity , $threshold := .thresholds } }
237237 - alert: { { $alert } }
238- expr: sum by (datname, instance) (pg_stat_activity_count{ namespace= {{ .Release.Namespace } }}) > on () group_left() (pg_settings_max_connections{ namespace= {{ .Release.Namespace } }} * { { $threshold } })
238+ expr: sum by (datname, instance) (pg_stat_activity_count{ namespace= " {{ .Release.Namespace }}" } ) > on () group_left() (pg_settings_max_connections{ namespace= " {{ .Release.Namespace }}" } * { { $threshold } })
239239 for: { { $group .delay } }
240240 labels:
241241 summary: The postgres instance { { `{{ $labels .instance } }` }} is running low on connections which may impact application performance.
You can’t perform that action at this time.
0 commit comments