Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add wait/backend to pg_stat_activity #1106

Merged
merged 4 commits into from
Feb 15, 2025

Conversation

fgalind1
Copy link
Contributor

@fgalind1 fgalind1 commented Dec 26, 2024

This PR adds backend_type, wait_event_type and wait_event labels to the pg_stat_activity metrics. These are very helpful when debugging and trying to understand what kind of queries are stacked in a waiting state and/or where those queries are coming from

Signed-off-by: Felipe Galindo Sanchez <[email protected]>
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.

I think there's a chance this could increase cardinality, but I believe that is something we could address if we need to.

@sysadmind sysadmind merged commit 2ee2a8f into prometheus-community:master Feb 15, 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.

3 participants