AsperforMias commented on issue #1637: URL: https://github.com/apache/dubbo-admin/issues/1637#issuecomment-6799066353
补充一下根因:Admin 的生产代码里没有地方给 `Instance.Spec.QosPort` 赋值,`instance_helper.go` 里的 `FromRPCInstance` 和 `MergeRPCInstanceIntoInstance` 都没有填这个字段。所以 `instance.go` 拼出来的 metrics 地址端口是 0,Java 实例也一样。 另外,dubbo-go 没有实现 QoS,指标是由 Prometheus exporter 暴露的(默认 9090 端口的 `/metrics`),所以光在 dubbo-go 这边上报 QoS 端口解决不了问题。需要在 Admin 侧确定端口从哪里取,比如从实例元数据里读,或者回退到 exporter 的端口。 -- 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]
