-
Notifications
You must be signed in to change notification settings - Fork 464
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
How can I count the 5XX reqeusts numbers by Location or URI? #302
Comments
@huangyonghome Hi, Thanks submit the issue.
I come up with the possibility of this issue, the pattern of url(path) might have been quite huge, this your computer resource consume massively. |
I have a prometheus rule to alert the 5XX request with nginx_server_requests metrics. But the metric only contains nginx $host information.
I want to filter some URLs,Could anyone help me? Thank you very much!
the conf is below
I noticed there was a new metric
nginx_filter_requests
and it has three key informations(status,uri,domain) that I indeed need.But I want to confirm that my configuration is correct,Are the statistical results of the indicators correct??
Addtions:
After running for several minites. When I running
curl http://127.0.0.1:9913/metrics
command. all metrics has gone awayAfter running for a while ,the Nginx Server CPU high usaged (4 cores).and one CPU core 100% usage with nginx error logs:
When I commented the config
vhost_traffic_status_filter_by_set_key $host $uri;
, the CPU usage returned to original level.The text was updated successfully, but these errors were encountered: