-
Notifications
You must be signed in to change notification settings - Fork 61
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 grafana dashboard to pgagroal #152
Conversation
This is a great start to your GSoC project ! I think you can assume Grafana 8.x for this work, so you can use the new features as described in https://grafana.com/docs/grafana/latest/whatsnew/whats-new-in-v8-0/ - like the bar charts and histograms. I have updated my Prometheus/Grafana image @ https://github.com/jesperpedersen/podman-pgsql/tree/master/pgsql13-grafana-centos8 and added Prometheus as the default data source out-of-the-box. Some comments for your pull request. For the README.md -- I would split step 2 into 2 separate steps as one is in Prometheus and the other is in Grafana; that makes it more clear for users I think. For the dashboard; I think it is a good idea to split the dashboard into categories -- maybe add an "Overview" category that has the most important information - like "Authentication" - I think that one is good. "Session time" - likely better as a histogram, and having the time on the X-axis, and the count on the Y-axis. "Connection details" - I think if we have percentage of "Connection tread" - Rename that to "Connection events". "Connection state" - Rename that one to "Connections" and move it to the "Overview" panel. "Failed servers" - I think just the number of failed servers is enough to display. Needs to be moved to "Overview" as well. We will likely have to move more stuff around once we get further, but that should be an easier task. See if you can split the "Server errors" panel into separate lines per server (eg. based on Thanks ! |
New panel
Is there anything else I need to adjust? : ) |
I took a look at the various panels. Overview: State: You need a value mapping for '2' (GRACEFUL) - likely yellow Connection: Connection event: Rename to Connection events. Server: Server connections: I don't know if we can remove any mappings with 0 such that "Value" doesn't show up - not critical right now. We have to figure out how to represent it over time... Could you add your name to the AUTHORS file as well ? Then squash all your commits, and force push your branch - and I'll merge it :) |
Done.
Done.
Done.
Done.
Done.
Done.
Done.
Done. Thanks 😄 |
Merged. Thanks for your contribution ! |
Feature
Add grafana dashboard to pgagroal.
How to use it
Importing the configuration file by following the steps in
contrib/grafana/README.md
.You can get the grafana dashboard of pgagroal.