8000 Feature/add configuration metrics by jgduarte-stratio · Pull Request #23 · spreaker/prometheus-pgbouncer-exporter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat 8000 ure/add configuration metrics #23

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

Merged

Conversation

jgduarte-stratio
Copy link
Contributor

It is really useful to be able to compare existing metrics with allowed maximums.
A new database metric with max_connections column has been added.
A new set of metrics with configuration values is now available. Current available values are max_client_conn and max_user_connections

@jgduarte-stratio
Copy link
Contributor Author

Hi @esanchezm , I hope you are doing well.
Would you have time to take a look to this PR soon?

Copy link
Contributor
@esanchezm esanchezm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, thank you @jgduarte-stratio . I just found some style issues and minor things, could you please fix them? Ping me when it's done 😄

@jgduarte-stratio
Copy link
Contributor Author

Hi @esanchezm, I added your fix request from my original branch. I released later that github already allowed me to do it from your change request. Anyway I fixed a bad type format when reading from the config table as it's reading values as strings.

Copy link
Contributor
@esanchezm esanchezm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jgduarte-stratio . Sorry for the late reply. I'm glad you found an issue with the returned data type, thanks for fixing it. It looks good to me, I just found that in some lines you added extra spaces at the end, could you removed them? I'll comment the lines I found, but since it's tricky, I suggest you to use a trailing space removal plugin in your IDE or editor 😄

jgduarte-stratio and others added 6 commits June 8, 2020 11:49
Trim spaces

Co-authored-by: Esteban Sanchez <esteban.sanchez@gmail.com>
Trim spaces

Co-authored-by: Esteban Sanchez <esteban.sanchez@gmail.com>
Trim spaces

Co-authored-by: Esteban Sanchez <esteban.sanchez@gmail.com>
Trim spaces

Co-authored-by: Esteban Sanchez <esteban.sanchez@gmail.com>
Trim spaces

Co-authored-by: Esteban Sanchez <esteban.sanchez@gmail.com>
Trim spaces

Co-authored-by: Esteban Sanchez <esteban.sanchez@gmail.com>
@jgduarte-stratio
Copy link
Contributor Author

No worries, and thank you for your feedback
Yes I think I need to improve my IDE. I not a python dev, and I have a basic setup.
I was also too confident about it because I was fixing al the issues the linter command was raising.

@jgduarte-stratio
Copy link
Contributor Author

Hi @esanchezm , I hope you're doing well. Would you have time to check everything is right now?

Copy link
Contributor
@esanchezm esanchezm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jgduarte-stratio ! Thanks for addressing my feedback. I added @RichardFord-VN as a reviewer but it LGTM so I'm approving it

@esanchezm esanchezm merged commit 558229e into spreaker:master Jul 10, 2020
@esanchezm
Copy link
Contributor

@jgduarte-stratio we just released a new version 2.1.0. Please check the release notes in https://github.com/spreaker/prometheus-pgbouncer-exporter/releases

@jgduarte-stratio
Copy link
Contributor Author
jgduarte-stratio commented Jul 11, 2020 via email

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
0