You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/24 12:02:12 UTC

[GitHub] [apisix] zuiyangqingzhou opened a new issue #5134: bug: radixtree_host_uri match pattern causes the prometheus metrics information to be incorrect

zuiyangqingzhou opened a new issue #5134:
URL: https://github.com/apache/apisix/issues/5134


   ### Issue description
   
   When I set the route matching pattern to radixtree_host_uri, I can see that the matched_uri in the matched_host in the metrics becomes a matched_host, and the order is exactly the opposite of host, and the matched_host is empty, as follows
   ```
   apisix_http_status{code="101",route="test_master_route",matched_uri="moc.retsam.2ipa",matched_host="",service="",consumer="",node="xxxx"} 2
   apisix_http_status{code="101",route="test_master_route",matched_uri="moc.retsam.2ipa",matched_host="",service="",consumer="",node="xxx"} 4
   apisix_http_status{code="101",route="test_master_route",matched_uri="moc.retsam.2ipa",matched_host="",service="",consumer="",node="xxx"} 3
   ```
   
   But my real matched_uri is **/hello**, and matched_host is **api2.master.com**
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):  2.9
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   
   
   ### Steps to reproduce
   
   1. the route matching pattern is configured as radixtree_host_uri
   2. check out metrics: curl http://127.0.0.1:9091/apisix/prometheus/metrics
   
   ### Actual result
   
   matched_uri and matched_host do not match expectations,The expected results are as follows
   
   matched_uri: /hello
   matched_host: api2.master.com
   
   ### Error log
   
   none
   
   ### Expected result
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zuiyangqingzhou commented on issue #5134: bug: radixtree_host_uri match pattern causes the prometheus metrics information to be incorrect

Posted by GitBox <gi...@apache.org>.
zuiyangqingzhou commented on issue #5134:
URL: https://github.com/apache/apisix/issues/5134#issuecomment-927212523


   well done


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #5134: bug: radixtree_host_uri match pattern causes the prometheus metrics information to be incorrect

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #5134:
URL: https://github.com/apache/apisix/issues/5134#issuecomment-926629393


   can be fixed by: https://github.com/apache/apisix/pull/5124


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zuiyangqingzhou closed issue #5134: bug: radixtree_host_uri match pattern causes the prometheus metrics information to be incorrect

Posted by GitBox <gi...@apache.org>.
zuiyangqingzhou closed issue #5134:
URL: https://github.com/apache/apisix/issues/5134


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org