apache / apache/dubbo-admin

大佬好,请问prometheus http_sd service discovery地址是什么路径

Open
#1,243 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4.1k
Forks
2.2k
Avg merge
10d 12h
Merged PRs (30d)
4

Description

关于dubbo 整合promethus 在pull模式下,官方描述如下:
目前 Dubbo Admin 内置了 prometheus http_sd service discovery 实例地址发现机制,Admin 默认会使用 qos 端口、 /metrics 作为这样 Admin 就能够将所有示例地址汇聚后以标准 http_sd 的方式同步给 Prometheus Server。

问题:这个实例地址是啥,很疑惑,我在admin的源码中只发现了个MetricsCollectController,这个接口会向prometheus同步指标?我的理解是promethus会定时请求dubbo-admin的这个实例地址, 然后dubbo-admin会从注册中心拉取所有的服务实例,然后对于每一个服务实例请求他的指标接口获取指标,最后再返回给promethus,但是我看MetricsCollectController这个类很疑惑,好像不是干这个是的

Contributor guide

Open the contributing guide

Research direction

Start with the Prometheus integration description in the issue and inspect MetricsCollectController, the QoS port handling, and the /metrics path. Trace whether the endpoint serves http_sd targets or metrics, then document the exact service-discovery URL and request flow. Done means the endpoint and behavior are unambiguous for a Prometheus configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
prometheus
Domain
observability-sre
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.