【问题标题】:How to set the publish interval for topology metrics in Apache Storm?如何在 Apache Storm 中设置拓扑指标的发布间隔?
【发布时间】:2021-04-22 17:21:13
【问题描述】:

虽然 Apache Storm 提供了多种指标类型,但我对 Topology Metrics 感兴趣(而不是 Cluster Metrics 或 Metrics v2。对于这些,消费者有要注册,例如:

topology.metrics.consumer.register:
 - class: "org.apache.storm.metric.LoggingMetricsConsumer"
   max.retain.metric.tuples: 0
   parallelism.hint: 1 

另请参阅docs。 不幸的是,这些指标的固定报告间隔似乎是 60 秒。对于集群指标,可以配置一个间隔,但我找不到拓扑指标的选项,即使在查看风暴的源代码时也是如此。

那么:如何配置 Storms Topology Metrics 的报告率?

【问题讨论】:

    标签: apache-storm stream-processing


    【解决方案1】:

    找对地方后,找到了相关配置: topology.builtin.metrics.bucket.size.secs: 10 是他们在storm.yaml 中指定该间隔的方式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-17
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 2019-08-04
      • 2021-06-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多