Skip to content

feat: allow excluding databases or users names in stat_statements#1232

Merged
sysadmind merged 2 commits intomasterfrom
cristian/pgstatstatements-exclude-dbs-users
Jan 10, 2026
Merged

feat: allow excluding databases or users names in stat_statements#1232
sysadmind merged 2 commits intomasterfrom
cristian/pgstatstatements-exclude-dbs-users

Conversation

@cristiangreco
Copy link
Contributor

Add a couple of of options to the stat_statements collector that allow excluding certain database names or user names from metrics.

This is useful if you don't care about certain preconfigured databases with admin activity.

Add a couple of of options to the `stat_statements` collector that
allow excluding certain database names or user names from metrics.

This is useful if you don't care about certain preconfigured databases
with admin activity.

Signed-off-by: Cristian Greco <cristian@regolo.cc>
@cristiangreco cristiangreco force-pushed the cristian/pgstatstatements-exclude-dbs-users branch from 95b4bb3 to 0cfc7b2 Compare December 15, 2025 11:02
Comment on lines +159 to +160
* `--collector.stat_statements.limit`
Maximum number of statements to return. Default is 100.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by: forgot to update the README in #1205

Signed-off-by: Cristian Greco <cristian@regolo.cc>
Copy link
Contributor

@sysadmind sysadmind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sysadmind sysadmind merged commit 7b2975a into master Jan 10, 2026
27 checks passed
@sysadmind sysadmind deleted the cristian/pgstatstatements-exclude-dbs-users branch January 10, 2026 18:39
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