apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.35k stars 2.49k forks source link

bug: apisix prometheus metrics port not running. #11235

Closed wangchao732 closed 4 months ago

wangchao732 commented 5 months ago

Current Behavior

apisix heml on k8s

plugins: # plugin list

Expected Behavior

No response

Error Logs

is null.

2024/05/07 09:25:09 [warn] 52#52: 1 [lua] plugin.lua:205: load(): new plugins: {"ua-restriction":true,"cors":true,"zipkin":true,"example-plugin":true,"proxy-control":true,"sls-logger":true,"csrf":true,"real-ip":true,"limit-req":true,"response-rewrite":true,"ext-plugin-post-resp":true,"http-logger":true,"skywalking-logger":true,"cas-auth":true,"server-info":true,"gzip":true,"wolf-rbac":true,"api-breaker":true,"inspect":true,"workflow":true,"echo":true,"key-auth":true,"forward-auth":true,"openwhisk":true,"limit-count":true,"aws-lambda":true,"loki-logger":true,"request-id":true,"proxy-mirror":true,"degraphql":true,"request-validation":true,"multi-auth":true,"grpc-transcode":true,"datadog":true,"loggly":true,"client-control":true,"opa":true,"ext-plugin-pre-req":true,"limit-conn":true,"proxy-rewrite":true,"kafka-logger":true,"serverless-post-function":true,"prometheus":true,"uri-blocker":true,"hmac-auth":true,"public-api":true,"fault-injection":true,"azure-functions":true,"splunk-hec-logging":true,"ldap-auth":true,"google-cloud-logging":true,"basic-auth":true,"mocking":true,"udp-logger":true,"ext-plugin-post-req":true,"clickhouse-logger":true,"jwt-auth":true,"rocketmq-logger":true,"file-logger":true,"serverless-pre-function":true,"tcp-logger":true,"authz-casdoor":true,"ai":true,"referer-restriction":true,"openfunction":true,"grpc-web":true,"chaitin-waf":true,"ip-restriction":true,"body-transformer":true,"consumer-restriction":true,"openid-connect":true,"proxy-cache":true,"jwe-decrypt":true,"traffic-split":true,"authz-keycloak":true,"kafka-proxy":true,"authz-casbin":true,"syslog":true,"elasticsearch-logger":true,"tencent-cloud-cls":true,"redirect":true}, context: init_worker_by_lua

Steps to Reproduce

curl -i http://192.168.44.159:9099/apisix/prometheus/metrics curl: (7) Failed connect to 192.168.44.159:9099; 拒绝连接

Environment

hanqingwu commented 4 months ago

Can you to direct access pod whether works ? curl -i http://10.10.0.186:9099/apisix/prometheus/metrics

wangchao732 commented 4 months ago

Can you to direct access pod whether works ?

Invalid,Because the port is not listening, it should be that the prometheus plugin does not start for some reason.

wangchao732 commented 4 months ago

image

wangchao732 commented 4 months ago

Can you to direct access pod whether works ? curl -i http://10.10.0.186:9099/apisix/prometheus/metrics

docker run apisix.

image

image image

hanqingwu commented 4 months ago

Can you check your firewall has closed ?

wangchao732 commented 4 months ago

r firewall has closed ?

Yes,This is basic common sense, and in addition, this is a stand-alone local operation.

wangchao732 commented 4 months ago

Can you check your firewall has closed ?

Apisix log error : reportServiceInstance(): Instance report fails, timeout, context: ngx.timer

wangchao732 commented 4 months ago

Can you check your firewall has closed ?

Oh, this my config issue. sorry!