postgres_exporter
postgres_exporter copied to clipboard
Capture usename and application_name for pg_stat_activity
It is necessary to be able to exclude backups from long-running transaction alerts, as they are to be expected. With the current pg_stat_activity metric there is no ability to filter out specific users or application names.
Resolves #668
Hi, thank you for this work. I've been able to test it myself on a few instances and it lgtm. This will really help to have this out of the box. Hope this will be merged soon :+1:
This PR is out of date with the base branch.
@sysadmind rebase complete
Hi, small bump as I'm hoping to see this reviewed soon. Thanks for your time.
Hopefully, someone will merge it for you soon @Arnoways, if you need to use this version.
If this PR remains unmerged then you could look at using PMM, as this change was merged in for the 2.32.0 release (latest is 2.34.0). The forked exporter should work just fine on its own, if you wanted just that; you can download the client and extract the postgresql_exporter (or use a package repo for APT/YUM via percona-release).