-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Support per-response-status response time gauge for HTTP requests #9517
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
Comments
If the response status is included as part of the metric name, you'll no longer be able to see the time for the last response irrespective of its status. That sounds like a step backwards to me. I think additional gauges with the status in their name may be better. That said, I'm not sure that I like the idea of adding any more complexity to We need to revisit the metrics filter in 2.0 as part of our reactive web story. We also need to think about improving its capabilities when using Jersey. As part of that work I think it would be interesting to remove a lot of logic from the filter and plug the logic into it instead. We could allow applications to make their own contributions to this logic where they could record whatever counters and gauges they like. |
I am trying to understand this statement. I am assuming, status will be another DOT separated field. |
Apart from this, is there any work around? Can I totally turn OFF metric filter and how i can write custom filter for this? |
I am proposing that
Yes:
I'd use the existing filter code (that you already linked to above) as inspiration. |
We decided that we don't want to support this. Rather than using a gauge for response times, a timer is far more useful as you can then see the performance over a period of time rather than a one-off snapshot. Please see #4405 and #9555 for that change. We may still consider the pluggability that I talked about above. That'll be looked at as part of the general metrics overhaul in 2.0. |
Ref: Metrics Filter class,
Problem statement:
When recording and visualizing gauge response times, I want to know, if last response time is for which http status code. It is quite possible, gauge response time is wildly different if it 200 or some other error like 404 or 500.
Recommendation
As linked above, we should add status field as part of metric name for gauge.
This is enhancement request. If acknowledged, I can do PR.
The text was updated successfully, but these errors were encountered: