-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
$upstream_response_time might contain multiple, comma-separated values #217
Comments
Thanks for the report. I've been wondering that the appropriate behaviour would be in this case? Different solutions that come to mind:
Any thoughts? Apart from that, the |
@martin-helmich I think use sum is a good idea. |
Describe the bug
If there are multiple upstream backends and more than one will be tried by nginx,
$upstream_response_time
will contain a comma-separated list of times.If this is happening, the log line will be parsed incorrectly
nginx documentation for
$upstream_response_time
:To Reproduce
Add multiple upstream backends (e.g. PHP-FPM) to nginx, break the first one and request a site using this backend.
Expected behavior
Log line is parsed properly and proper metrics are available
Configuration file (remove section, if not applicable):
Example log file (remove section, if not applicable):
Metrics output (remove section, if not applicable):
Not exactly matching the log lines above, but the error is clearly visible, looking at
ssl_protocol
, which should have a value likeTLSv1.3
onlyEnvironment:
The text was updated successfully, but these errors were encountered: