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 2022/03/16 02:34:13 UTC

[GitHub] [apisix] xianshun163 commented on issue #6029: discuss: It is not inappropriate using “apisix” type for prometheus metrics(count first bytes from client)

xianshun163 commented on issue #6029:
URL: https://github.com/apache/apisix/issues/6029#issuecomment-1068669911


   @zhendongcmss @tzssangglass 
   
   Because the `apisix_latency` include read contents from client, not ONLY apisix process time.
   do you  mean read contents from client cost a  lot of time?   Why does it take so much time in  read data.
   
   
   > ### Issue description
   > Because the `apisix_latency` include read contents from client, not ONLY apisix process time. It is very confused on the dashbord and got resault that apisix lead to high latency.
   > 
   > https://github.com/apache/apisix/blob/aff5d825aaea12eab312e65e82d060ab9be9b06f/apisix/utils/log-util.lua#L189
   > 
   > 
   > https://github.com/apache/apisix/blob/aff5d825aaea12eab312e65e82d060ab9be9b06f/apisix/plugins/prometheus/exporter.lua#L164
   > 
   > ![image](https://user-images.githubusercontent.com/88528414/148322377-1f97f484-0e66-4f98-a022-0eb4ef17f59b.png)
   > 
   > ### Environment
   > * apisix version (cmd: `apisix version`): master branch
   > * 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
   > I suggest use "apisix-and-client" type.
   > 
   > ### Actual result
   > nil
   > 
   > ### Error log
   > nil
   > 
   > ### 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