We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When we've been working with prometheus-nginxlog-exporter on the hachyderm.io infrastructure, we kept seeing the log line:
warn config/struct_namespace.go:98 No globs for /var/log/nginx/access.log
Which felt like something we should pay attention to, but upon reading the code it seems like this is actually an expected condition? https://github.com/martin-helmich/prometheus-nginxlog-exporter/blob/master/pkg/config/struct_namespace.go#L89-L101
To Reproduce
Use configuration such as:
listen { port = 4040 metrics_endpoint = "/metrics" } namespace "example" { source = { files = [ "/var/log/nginx/access.log" ] } format = "$remote_addr - $remote_user [$time_local] \"$request\" $status $body_bytes_sent \"$http_referer\" \"$http_user_agent\" rt=$request_time urt=$upstream_response_time" labels { app = "example" } metrics_override = { prefix = "nginxlog" } namespace_label = "server" }
Expected behavior
The warning should be reduced to an info level log line, since it doesn't actually indicate that something went wrong.
Environment:
prometheus-nginxlog-exporter, version (branch: , revision: unknown) build user: build date: go version: go1.21.1 platform: linux/amd64 tags: unknown
$ pacman -Qe prometheus-nginxlog-exporter prometheus-nginxlog-exporter 1.11.0-1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When we've been working with prometheus-nginxlog-exporter on the hachyderm.io infrastructure, we kept seeing the log line:
Which felt like something we should pay attention to, but upon reading the code it seems like this is actually an expected condition? https://github.com/martin-helmich/prometheus-nginxlog-exporter/blob/master/pkg/config/struct_namespace.go#L89-L101
To Reproduce
Use configuration such as:
Expected behavior
The warning should be reduced to an info level log line, since it doesn't actually indicate that something went wrong.
Environment:
The text was updated successfully, but these errors were encountered: