-
Notifications
You must be signed in to change notification settings - Fork 458
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
feat: add pending connections count to metrics #2713
Conversation
Given that this value can change rapidly between scrapes, do you think this might be better off as a counter rather than a gauge? It should probably also have the |
Counters can't go down. So we can't use them here since pending requests can go both up and down. https://prometheus.io/docs/tutorials/understanding_metric_types/#counter |
This is true - but when graphing them, we can use a rate() function to show their change over time. This way we don't miss spikes between scrapes. In Graphana you add a Range Function and select Rate: |
If at
I think catching spikes is a matter of the scrape interval. We could add a counter to track the total incoming connections (prior to upgrade unlike |
Are pending connections only inbound? We could use a histogram or summary for the # of pending connections observed when a new inbound connection is triggered. We can also have a histogram/summary to track time from pending to fully connected. |
How about adding the pending connections count to the existing inbound/outbound connections metric as a label? Then it'd graph with those automatically which might make things easier to observe? This is similar to the "inbound unnegotiated" and "outbound unnegotiated" stream metrics. |
Sounds good to me from a consistency perspective. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the latest changes
Title
Description
Notes & open questions
Change checklist