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

Grafana Dashboard #33

Open
gravgaard opened this issue Sep 13, 2024 · 2 comments
Open

Grafana Dashboard #33

gravgaard opened this issue Sep 13, 2024 · 2 comments

Comments

@gravgaard
Copy link

gravgaard commented Sep 13, 2024

First off, thanks for maintaining this helpful project! I've been using pgxpool-prometheus to monitor PostgreSQL connection pool metrics in Prometheus, and it works out of the box.

However, I was wondering if there are any recommended Grafana dashboards available to visualize these metrics effectively. Or someone can give an example of what works for them. If any dashboards are available or if you have suggestions on how to set one up, it would be really helpful.

@cmackenzie1
Copy link
Owner

Hey @gravgaard, I unfortunately don't have any pre-built Grafana dashboards for these prometheus metrics but I'd be happy to add them if you end up building any!

@gravgaard
Copy link
Author

gravgaard commented Oct 10, 2024

@cmackenzie1 I did construct a tiny one here. Its not much but better than nothing and it helped me :)
pgxpool-prometheus-grafana-dashboard.json

It has a variable constructed for a namespace label on the metrics which is templated using "my-namespace" this meaning that the prometheus metrics are with "namepsace": "my-namespace". This can be done

Here is a tiny example from developer environment where there is a deadlock going on.
Screenshot 2024-10-10 at 09 50 57

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

No branches or pull requests

2 participants