Storm UI 提供的 REST API 获取集群数据
2017-02-17 19:39
393 查看
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
应该是 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
相关文章推荐
- REST Client组件例子,及获取数据api的一些知识
- 基于 AXIS2/C 的 C 语言库实现对提供 REST API 的系统进行数据访问
- 云之家API获取数据,Unirest.post 关闭Closing connections idle longer than 30 SECONDS
- 基于 AXIS2/C 的 C 语言库实现对提供 REST API 的系统进行数据访问
- 使用jsou代替API获取数据
- OpenDayLight 氢版本 RestAPI 调用实例(2)-主机信息获取(Java)
- Paypal获取Transaciton历史交易API初步研究(一)——REST or Classic API
- 浅谈对于RDD的认识 RDD(Resilient Distributed Datasets)弹性分布式数据集,是在集群应用中分享数据的一种高效,通用,容错的抽象,是Spark提供的最重要的抽象的概念
- 调用REST接口获取数据
- php怎么将数据库封装,然后提供数据接口让其他API什么的访问
- ES Java API - 获取索引历史更新数据
- 使用Yahoo API获取雅虎的证券股票数据接口(时价 K线等)
- 获取咕咚运动移动应用中的数据——非官方API
- SoapUI Groovy读取Excel + 数据给REST API + Assert Json
- Android 获取Google Weather API 并通过Xml和JSON解析数据
- RESTEasy通过ApacheAPI或JavaAPI进行TEXT、XML、JSON数据交换
- C#通过WebService获取JSON数据并快速解析(百度地图坐标转换API为例)
- 获取Jawbone UP中的个人数据(二)非官方API,index
- Revit API 部分构件几何数据无法获取问题
- 豆瓣API使用介绍及通过ajax跨域获取url的json数据的方法