Skip to content

Conversation

@cristiangreco
Copy link
Contributor

PR Description

This PR introduces a change for excluding "own queries" in postgres from pg_stat_activity: we need to drop samples (and wait events) for the currently connected user. This new behaviour is enabled by default through the setting exclude_current_user, as it's deemed safe / recommended.

No changes to be done on pg_stat_statements as that is achieved through user permissions update (docs on the website).

Which issue(s) this PR fixes

Relates to https://github.com/grafana/grafana-dbo11y-app/issues/1307

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@cristiangreco cristiangreco force-pushed the cristian/dbo11y-disable-own-queries-tracking-pg branch 2 times, most recently from 2bfa3e8 to d37df3f Compare December 3, 2025 10:33
This PR introduces a change for excluding "own queries" in postgres from
`pg_stat_activity`: we need to drop samples (and wait events) for the
currently connected user. This new behaviour is enabled by default
through the setting `exclude_current_user`, as it's deemed safe /
recommended.

No changes to be done on `pg_stat_statements` as that is achieved
through user permissions update (docs on the website).
@cristiangreco cristiangreco force-pushed the cristian/dbo11y-disable-own-queries-tracking-pg branch from d37df3f to d8a065d Compare December 3, 2025 10:34
@cristiangreco cristiangreco marked this pull request as ready for review December 3, 2025 10:36
@cristiangreco cristiangreco requested review from a team and clayton-cornell as code owners December 3, 2025 10:36
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

💻 Deploy preview available (dbo11y: stop tracking alloy's own queries in pg_stat_activity):

@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/docs Docs Squad label across all Grafana Labs repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants