-
Notifications
You must be signed in to change notification settings - Fork 753
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
Add support for metrics from pg_stat_user_indexes? #1065
Comments
I was searching for that as well and the closest we have is select * from pg_statio_user_indexes order by idx_blks_read desc; I believe this can be a starting point until we can get Edit: Looking at |
I added a PR to add support for |
Thanks @michael-todorovic, came here looking for exactly this feature, was glad to see there was already a recent PR! I've tested #1071 on a pg14 database. It worked fine, I got the
So, yes, 👍 from a random happy beta-tester. |
@thomasgl-orange glad this works for you 🎉 |
I just completed the PR with new code and a promql example to find unused indexes. Any feedback is welcome! |
Proposal
Stats from the pg_stat_user_indexes group are very useful in general.
One particular use case I have is figuring out unused indexes, which is hard to do without metrics over time.
I'm secretly hoping I'm missing something, because as soon as I turned this exporter on I expected to see information about indexes and I couldn't find any and couldn't find where to enable them.
The text was updated successfully, but these errors were encountered: