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

Add more pool metrics #159

Closed
3 tasks done
An-DJ opened this issue Jul 12, 2021 · 1 comment
Closed
3 tasks done

Add more pool metrics #159

An-DJ opened this issue Jul 12, 2021 · 1 comment
Assignees
Labels
feature New feature

Comments

@An-DJ
Copy link
Contributor

An-DJ commented Jul 12, 2021

Is your feature request related to a problem? Please describe.
There is a lack of metrics to characterize the pool state.

Describe the solution you'd like

  • Add pgagroal_query_count which characterizes the number of queries in the most recent time interval.
  • Add pgagroal_tx_count which characterizes the number of transactions in the most recent time interval.
  • Add pgagroal_wait_time which characterizes the previous client waiting time.
@An-DJ An-DJ added the feature New feature label Jul 12, 2021
@jesperpedersen
Copy link
Collaborator

Lets start with a simple guard of if (config->metrics > 0)

An-DJ added a commit to An-DJ/pgagroal that referenced this issue Jul 19, 2021
An-DJ added a commit to An-DJ/pgagroal that referenced this issue Jul 20, 2021
An-DJ added a commit to An-DJ/pgagroal that referenced this issue Jul 21, 2021
An-DJ added a commit to An-DJ/pgagroal that referenced this issue Jul 21, 2021
An-DJ added a commit to An-DJ/pgagroal that referenced this issue Jul 25, 2021
An-DJ added a commit to An-DJ/pgagroal that referenced this issue Aug 2, 2021
An-DJ added a commit to An-DJ/pgagroal that referenced this issue Aug 3, 2021
An-DJ added a commit to An-DJ/pgagroal that referenced this issue Aug 5, 2021
@An-DJ An-DJ closed this as completed Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants