-
Notifications
You must be signed in to change notification settings - Fork 21
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
Extend Metric-Logs: longpolling #928
Comments
This assumption is wrong. All connections that match this regex are counted: So currently, longpolling requests and h2-streams are in the same metic. I created this #929 that uses two separate metrics. One for longpolling and one for all other requests (mostly h2-streams). The naming of the metrics is different then requested from you. It was easier to use a prefix then a suffix. Keep in mind, that the local statistic gets updated immediately when a connection is opened or closed. But the non local statistic is only updated from time to time. The default value for Longpolling requests get opened and closed with each autoupdate. So there is much more flickering in the number of open longpolling requests. If there is an autoupdate requests, all longpolling connections get closed. If immediately after the metric is saved to redis, it will look like there are very few longpolling requests. |
I had that thought as well. |
I don't want to do this. At least not now. It would add more complexity for something, that is probably not needed when the metric are plotted by grafana. In grafana, you can probably see the spikes and get a feeling, what the real numbers are |
We would like to be able to see how many users are using longpolling as opposed to h2-streams.
So first we need to confirm our assumption that the
current_connections
,connected_users_current
,connected_users_total
,connected_users_average_connections
andconnected_users_anonymous_connections
metrics only measure the active h2-streams and longpolling is currently not affecting these values.
Then we would like to have separate metrics providing similar statistics for longpolling:
current_longpolls
- "Number of open requests at time of evaluation, polling for a new update",longpolling_users_current
- "Number of unique users at time of evaluation, polling for a new update",longpolling_users_total
- "Number of unique users who have polled for a new update since start of the service",- not feasible IMOlongpolling_users_average_longpolls
longpolling_users_anonymous_longpolls
- same ascurrent_longpolls
but only anonymous requestsAlso feel free to add
*_local
variants where you find it sensible.The text was updated successfully, but these errors were encountered: