【问题标题】:How to get current number of connections of an akka-http application如何获取 akka-http 应用程序的当前连接数
【发布时间】:2019-07-04 02:20:13
【问题描述】:

我想从 akka-http 应用程序中获取 当前 连接数。有什么办法可以得到吗?

最终目标是能够定期将其发布到 prometheus 以监控服务的负载。

【问题讨论】:

    标签: akka monitoring prometheus akka-http


    【解决方案1】:

    您是否尝试过使用 Kamon ?它在Context 工具中有一个很好的构建,您可以使用它来获得您想要使用的指标。​​

    此处的文档:https://kamon.io/docs/latest/core/context/

    【讨论】:

      猜你喜欢
      • 2019-03-12
      • 2019-11-08
      • 1970-01-01
      • 2017-08-17
      • 1970-01-01
      • 2016-01-21
      • 2012-05-25
      • 2012-04-20
      • 1970-01-01
      相关资源
      最近更新 更多