Storm UI 提供的 REST API 获取集群数据


Storm UI 提供的 REST API 获取集群数据,基本上 Storm UI 上的所有数据都可以获取到。
应该是 storm 0.9.6 版本后才开始支持,试过 storm 0.9.0.1 版本并没有支持该系列接口。


请求前缀:

http://<ui-host>:<ui-port>/api/v1/...


GET Operations

/api/v1/cluster/configuration     返回集群配置数据

/api/v1/cluster/summary                   返回集群简要信息,例如 nimbus 更新时间、supervisors 数量等

/api/v1/supervisor/summary            返回所有 supervisors 简要信息

/api/v1/topology/summary                 返回所有 Topology 简要信息

/api/v1/topology/:id                          返回 Topology id 的统计信息

/api/v1/topology/:id/component/:component   返回 Topology id 下 component 组件的统计信息


POST Operations

/api/v1/topology/:id/activate                              Activates a topology.

/api/v1/topology/:id/deactivate                          Deactivates a topology.

/api/v1/topology/:id/rebalance/:wait-time   Rebalances a topology.

/api/v1/topology/:id/kill/:wait-time               Kills a topology.


组件纬度字段说明:

completeLatency:Total latency for processing the message

processLatency:Average time of the bolt to ack a message after it was received

executeLatency:Average time to run the execute method of the bolt

capacity:This value indicates number of messages executed * average execute latency / time window



官方文档:

https://github.com/apache/storm/blob/master/docs/STORM-UI-REST-API.md


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值