AsperforMias opened a new issue, #1637:
URL: https://github.com/apache/dubbo-admin/issues/1637

   ### 现象
   对 dubbo-go 实例请求 `GET 
/api/v1/instance/metrics-list?instanceName=<instance>&mesh=<nacos mesh>`,返回 
`dial tcp <ip>:0: connect: can't assign requested address`。
   
   ### 原因
   Admin 的 `GetInstanceMetrics` 请求的是 
`http://{ip}:{QosPort}/metrics`。dubbo-go-samples 可观测性样例的实例上报的 `QosPort` 是 
0,Prometheus 指标在另一个端口的 `/prometheus` 路径上(样例里是 9099 和 9098)。
   
   ### 复现
   1. 启动 dubbo-go-samples 可观测性样例的 server(apache/dubbo-go-samples#1157,基于 
dubbo-go develop 6b04ac04)。
   2. 让 Admin(develop 0db71b07)连接同一个 Nacos,请求上面的接口。
   
   ### 建议
   QoS 端口不可用时,Admin 改为读取实例上报的 Prometheus 端口和路径,或者由 dubbo-go 上报这两个值。具体怎么做需要两边商量。
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to