You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "sjmshsh (via GitHub)" <gi...@apache.org> on 2023/06/20 13:41:01 UTC

[GitHub] [dubbo] sjmshsh commented on issue #12573: dubbo Prometheus配置问题

sjmshsh commented on issue #12573:
URL: https://github.com/apache/dubbo/issues/12573#issuecomment-1598815234

   目前dubbo-admin的Golang版本还有很多需要完善,不过针对您的问题,您可以看看这个路径下的代码。pkg/admin/router/router.go,里面有一个路由:	router.GET("/api/:env/metrics/prometheus", handlers.PromDiscovery),这个路由就是用来暴露http_sd的。目前我们暂时没有提供让用户灵活配置端口的功能。监控端口写死成了22222,在这个包下您可以看到相关的程序:pkg/admin/util/monitor_utils.go。也就是说您需要保证您的应用暴露给Prometheus的端口是22222,如果不是这个端口,那么暂时无法获取到您需要的。
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org