-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Web_log doesn't support response times in nanoseconds #4003
Comments
Hi @alibo Please check if it works correctly after https://github.com/firehol/netdata/blob/master/python.d/web_log.chart.py#L632 => if not isinstance(resp_time_func, (int, float)): |
Nice you opened the issue. I completley forgot about |
Btw, I wonder what's the case we need nanoseconds precision for web log? Do you notice the difference between 1ms and 0.1ms? |
@l2isbad It works like a charm :D, thanks a lot :)
You're welcome 😁
@Wing924 You're right, but unfortunately many Go libraries use nanoseconds (e.x https://github.com/labstack/echo/blob/master/middleware/logger.go#L182) |
Nice! PR?
This is nice too.I will ask your help for testing/optimization later. |
I'll send the PR in a few minutes.
Sure, I'll be glad to help you :) |
Plugin
web_log
only supports response times in microseconds. In order to convert different types of units to microseconds, it provides an extra option (calledtime_multiplier
) to multiply the given number. However, it only supports integer type. So if the response time is in nanoseconds, I can't settime_multiplier
to0.001
.Could you please support the float type for option
time_multiplier
as well?https://github.com/firehol/netdata/blob/master/conf.d/python.d/web_log.conf#L87
https://github.com/firehol/netdata/blob/master/python.d/web_log.chart.py#L632
The text was updated successfully, but these errors were encountered: