Skip to content

Commit

Permalink
PMM-12992 add service name to PostgreSQL connections in Use alert (#2888
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BupycHuk authored Mar 11, 2024
1 parent 06c8f68 commit 3545b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions managed/data/iatemplates/postgresql_too_many_connections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ templates:
version: 1
summary: PostgreSQL connections in use
expr: |-
sum by(agent_id, agent_type, instance, node_id, node_name)
sum by(agent_id, agent_type, instance, node_id, node_name, service_name)
(pg_stat_activity_count{datname!~"template.*|postgres"})
/
on(agent_id, agent_type, instance, node_id, node_name)
on(agent_id, agent_type, instance, node_id, node_name, service_name)
pg_settings_max_connections * 100
> [[ .threshold ]]
params:
Expand Down

0 comments on commit 3545b3a

Please sign in to comment.