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 <kaarel.moppel@gmail.com>
To extract time in seconds for pg_long_running_transactions_oldest_timestamp_seconds query which currently return epoch time.
Signed-off-by: Jyothi Kiran Thammana <147131742+jyothikirant-sayukth@users.noreply.github.com>
* Long running transactions collector and test
---------
Signed-off-by: Felix Yuan <felix.yuan@reddit.com>
Co-authored-by: Ben Kochie <superq@gmail.com>