Skip to content

make nacos-client sdk remove prometheus dependency and metrics with other way. #8354

Closed

Description

@xuminwlt

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

提一个实际应用中碰到的一个小问题,nacos-client依赖了一个较低的prometheus版本,而且非可选,作为核心客户端sdk做到尽可能轻量级的依赖,或者一个Default实现,JMX等,如果需要prometheus,则由adapter或者另一个依赖完成,对sdk的依赖规范来讲,要多一次依赖去除和更新版本的引入,无法精简,期待一个精简的nacos-SDK。

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. CherishCai commented on May 28, 2022

    @CherishCai
    Contributor

    很久前同样遇到,0.5.0 实在太低了,也只能自己指定了更高的版本覆盖它。

  2. stone-98 commented on Jul 13, 2022

    @stone-98
    Contributor

    @KomachiSion Can I take a stab at solving the problem?

  3. stone-98 commented on Jul 16, 2022

    @stone-98
    Contributor

    我了解了相关功能,引入prometheus的目的是为了给用户提供扩展的能力,但是如果用户不使用这个能力,我觉得引入prometheus的依赖是多余的,我们可以基于nacos插件的机制,默认对这些监控指标不进行处理,当用户引入相应的插件之后,基于插件的机制再对这些指标进行相应的处理。我现在可以对它进行实现吗?或者说需要一个更详细的设计文档呢?

  4. Lucius7boy commented on Jul 28, 2022

    @Lucius7boy

    i want to learn what should i do

  5. NooBMaster1412 commented on Aug 5, 2022

    @NooBMaster1412

    I want to learn from all of you bro,

  6. Lucius7boy commented on Aug 5, 2022

    @Lucius7boy
  7. Tafalkamis commented on Aug 8, 2022

    @Tafalkamis

    I need to recover my Microsoft account and this is the email associated with it

  8. Tafalkamis commented on Aug 8, 2022

    @Tafalkamis

    I can't access my account because of this Microsoft Authenticator app

  9. KomachiSion commented on Sep 22, 2022

    @KomachiSion
    Collaborator

    我了解了相关功能,引入prometheus的目的是为了给用户提供扩展的能力,但是如果用户不使用这个能力,我觉得引入prometheus的依赖是多余的,我们可以基于nacos插件的机制,默认对这些监控指标不进行处理,当用户引入相应的插件之后,基于插件的机制再对这些指标进行相应的处理。我现在可以对它进行实现吗?或者说需要一个更详细的设计文档呢?

    可以先出一个设计文档,如果设计的方案没有太大问题,就可以动手了。

  10. deleted a comment from taenananissa on Sep 22, 2022
  11. tysoncung commented on Dec 11, 2025

    @tysoncung

    I'm interested in working on this issue. Could you provide more context about what you're looking for? Any additional details about requirements or constraints would be helpful.

  12. added 5 commits that reference this issue on May 21, 2026
  13. neoLsH commented on Aug 26, 2026

    @neoLsH
    Contributor

    @KomachiSion 想确认下,这个 issue 目前是否处于可以被 assign 的状态?如果可以,我会在近期给出解决方案并提交 PR。

  14. KomachiSion commented on Aug 31, 2026

    @KomachiSion
    Collaborator

    @KomachiSion 想确认下,这个 issue 目前是否处于可以被 assign 的状态?如果可以,我会在近期给出解决方案并提交 PR。

    还可以提交,之前的提交因为ci一直未通过的原因,并未被合并

  15. added 5 commits that reference this issue on Sep 1, 2026
  16. added a commit that references this issue on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/ClientRelated to Nacos Client SDKgood first issueGood for newcomerskind/enhancementCategory issues or prs related to enhancement.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions