-
Notifications
You must be signed in to change notification settings - Fork 1.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
log_to_metrics generates only the first defined metric #9237
Comments
At second glance, it seems that I'm getting the same metric multiple times:
After a few seconds:
|
fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Describe the bug
I tried to set up metrics generation from an nginx log using the
log_to_metrics
filter. I need several metrics to be generated from access.log –requests_count
,request_time
, andupstream_response_time
. My config file is below. Unfortunately, only the metric described first in the configuration file is being generated – I’ve swapped them around, and always, in /metrics, only the first one is present. It also seems that after being processed by the first instance of the log_to_metrics filter, message processing stops – it also doesn’t output to stdout, despite the corresponding output being configured. If I comment out alllog_to_metrics
filters, messages are sent to stdout.To Reproduce
See configuration file below.
Expected behavior
Your Environment
3.1.6
log_to_metrics
The text was updated successfully, but these errors were encountered: