用于获取HDInsight集群性能指标的REST API?

问题描述 投票:0回答:1

我正在寻找REST API,它将允许我获取给定HDInsight(Hadoop / Linux)集群的性能指标-例如集群使用的内存量或百分比,cpu的使用率等。但是我还没有来跨越任何特定的东西。我找到的唯一最接近的链接是this。但这也没有任何有关获取性能指标的参考。此信息甚至以REST API的形式公开吗?

rest azure-api-management hdinsight azure-rest-api
1个回答
0
投票

根据我的理解,您想要获取集群的指标。如果是这样,您可以使用以下rest api来获取它。有关更多详细信息,请参阅documentarticle

Method: GET
URL: https://<clustername>.azurehdinsight.net//api/v1/clusters/<cluster-name>?fields=metrics/load[<start time>,<end time>,<step>]

Headers : Authorization: Basic <username password>

例如:

获取CPU使用率enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.