问题描述
我尝试将 kamon-prometheus 与 akka 流项目集成,但在 http://localhost:9095/加载一个空页面.在控制台中,我可以看到以下消息:http://localhost:9095/一>.当我尝试使用 akka quickstart 项目时,它运行良好.
I tried to integrate kamon-prometheus with akka stream project but at http://localhost:9095/ it loads an empty page.In the console I could see the message that metrics information is available at http://localhost:9095/.When I tried with akka quickstart project, it worked fine.
akka 流是否支持 kamon?
Is kamon supported for akka streams?
推荐答案
我试图从 Intellij 运行 Main,这就是我没有得到指标的原因.根据 @Ivan Stanislavciuc 的建议,我尝试了 sbt run
并且成功了.
I was trying to run Main from Intellij and that was the reason why I did not get the metrics.With the suggestion from @Ivan Stanislavciuc , I tried sbt run
and it worked.
这篇关于阿卡流&Kamon-Prometheus 不返回任何指标而是加载一个空页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!