Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
your-ben-brother opened this issue Oct 24, 2023 · 1 comment

Comments

@your-ben-brother
Copy link

关于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这个类很疑惑,好像不是干这个是的

@your-ben-brother
Copy link
Author

dubbo-admin的源码版本0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant