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/04/27 05:58:04 UTC
[GitHub] [apisix] Firstsawyou commented on issue #4137: bug: apisix metrics sometimes slow requests get encountered
Firstsawyou commented on issue #4137:
URL: https://github.com/apache/apisix/issues/4137#issuecomment-827334456
> I can't reproduce it, it only happens occasionally now
>
> additional, the server load is not high.
The metrics data is real-time, which may be related to the time interval when you call the `/apisix/prometheus/metrics` interface.
This is the log of my test calling the `/apisix/prometheus/metrics` interface:
```shell
127.0.0.1 - - [27/Apr/2021:13:52:45 +0800] 127.0.0.1:9080 "GET /apisix/prometheus/metrics HTTP/1.1" 200 8062 0.001 "-" "curl/7.29.0" - - - "http://127.0.0.1:9080"
127.0.0.1 - - [27/Apr/2021:13:52:46 +0800] 127.0.0.1:9080 "GET /apisix/prometheus/metrics HTTP/1.1" 200 8062 0.002 "-" "curl/7.29.0" - - - "http://127.0.0.1:9080"
127.0.0.1 - - [27/Apr/2021:13:52:47 +0800] 127.0.0.1:9080 "GET /apisix/prometheus/metrics HTTP/1.1" 200 8062 0.003 "-" "curl/7.29.0" - - - "http://127.0.0.1:9080"
127.0.0.1 - - [27/Apr/2021:13:52:47 +0800] 127.0.0.1:9080 "GET /apisix/prometheus/metrics HTTP/1.1" 200 8062 0.002 "-" "curl/7.29.0" - - - "http://127.0.0.1:9080"
127.0.0.1 - - [27/Apr/2021:13:52:46 +0800] 127.0.0.1:9080 "GET /apisix/prometheus/metrics HTTP/1.1" 200 8062 0.003 "-" "curl/7.29.0" - - - "http://127.0.0.1:9080"
127.0.0.1 - - [27/Apr/2021:13:52:48 +0800] 127.0.0.1:9080 "GET /apisix/prometheus/metrics HTTP/1.1" 200 8062 0.002 "-" "curl/7.29.0" - - - "http://127.0.0.1:9080"
127.0.0.1 - - [27/Apr/2021:13:52:48 +0800] 127.0.0.1:9080 "GET /apisix/prometheus/metrics HTTP/1.1" 200 8062 0.002 "-" "curl/7.29.0" - - - "http://127.0.0.1:9080"
127.0.0.1 - - [27/Apr/2021:13:52:49 +0800] 127.0.0.1:9080 "GET /apisix/prometheus/metrics HTTP/1.1" 200 8062 0.002 "-" "curl/7.29.0" - - - "http://127.0.0.1:9080"
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org