lgang06 commented on issue #11113:
URL: https://github.com/apache/apisix/issues/11113#issuecomment-2039096939
复现步骤:
apache/apisix:3.9.0-redhat 镜像启动,使用yaml配置route如下
routes:
-
uri: /hello
upstream:
nodes:
"127.0.0.1:1980": 1
type: roundrobin
global_rules:
-
id: 1
plugins:
prometheus:
prefer_name: true
#END
普米过期设置10s,
启动apisix,执行下面请求后,
curl -Ssl "127.0.0.1:9080/hello" > /dev/null && sleep 12 && curl -Ssl
"127.0.0.1:9091/apisix/prometheus/metrics" | grep 'route'
之后再执行指标不会输出指标
curl -Ssl "127.0.0.1:9080/hello" > /dev/null && sleep 2 && curl -Ssl
"127.0.0.1:9091/apisix/prometheus/metrics" | grep 'route'
<img width="918" alt="截屏2024-04-04 14 39 48"
src="https://github.com/apache/apisix/assets/9103138/db06a796-d50e-4356-8544-b2f550ecd19e">
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]