Skip to content

Conversation

kmoppel
Copy link
Contributor

@kmoppel kmoppel commented Aug 22, 2025

To reduce the observer effect, filter out pg_stat_activity rows of the postgres_exporter session from all SA queries, based on pid / procpid.

A bit annoying to see idling DBs showing pg_stat_activity_count "active" count of 1. Other Postgres monitoring tools (like pgwatch for example) take it into account

To reduce the observer effect, filter out pg_stat_activity rows of the
postgres_exporter session from all SA queries, based on pid / procpid.

A bit annoying to see idling DBs showing pg_stat_activity_count "active"
count of 1

Signed-off-by: Kaarel Moppel <[email protected]>
@kmoppel kmoppel force-pushed the exclude-collecting-query-from-pg-stat-activity branch from aa2f47b to 3fc80a7 Compare August 25, 2025 08:04
@sysadmind sysadmind merged commit 198454c into prometheus-community:master Aug 26, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants