-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: Prometheus metrics igress and egress is inaccurate #6555
Comments
@zhendongcmss when cc @spacewander |
Another test case is, config prometheus on global rules only. Request |
We can do it with apisix/apisix/plugins/skywalking.lua Line 69 in 72bc1ef
|
the solution is the same. |
Issue description
There two routes, one priority is 0 route id = 1, anther is 30 route id = 3.
if request hit route 1, the prometheus metric igress and egress is accurate, but if request hit route 3, the igress and egress valuse is double of bandwidth.
I think that apisix records twice
request_length
andbytes_sent
.Environment
apisix version
): 2.7uname -a
):nginx -V
oropenresty -V
):curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API):luarocks --version
):Steps to reproduce
route configuration
Client write: 145MB/s + 133MB/s + 144MB/s + 1.15GB/s = 1.55GB/s, but apisix igress is 2.85GB/s
Actual result
The bandwidth = apisix igress or egress
Error log
no
Expected result
No response
The text was updated successfully, but these errors were encountered: