nacos icon indicating copy to clipboard operation
nacos copied to clipboard

Optimize the interface for obtaining client information.

Open KiteSoar opened this issue 9 months ago • 2 comments

Is your feature request related to a problem? Please describe.

目前控制台会用到某个配置的监听者信息,依赖的是 getListeners 这个接口 At present, the console will use the listener information of a certain configuration, relying on the interface named getListeners.

Image

这个接口会从服务端的所有节点中获取每个节点管理的客户端信息,但目前仅返回某个配置的 MD5 值和客户端 IP。感觉不利于后续拓展,例如,后面要基于标签进行灰度时,控制台需要获取监听特定配置的客户端标签信息,现有的接口返回内容无法满足这一需求。 This interface will obtain client information managed by each node from all nodes of the server side. However, currently it only returns the MD5 value of a certain configuration and the client IP. It feels unfavorable for subsequent expansion. For example, when performing gray-scale based on tags later, since the console cannot obtain the client tag information listening to a specific configuration, the existing interface return content cannot meet this need.

Image

Describe the solution you'd like 将客户端的所有元数据返回 Return all metadata of the client.

KiteSoar avatar Apr 06 '25 05:04 KiteSoar

推荐在3.0中修改。

KomachiSion avatar Apr 07 '25 01:04 KomachiSion