我正在寻找REST API,它将允许我获取给定HDInsight (Hadoop/Linux)集群的性能指标--例如集群使用的内存量或百分比、cpu使用率等。我找到的唯一最接近的链接是this。但这也与获取性能指标没有任何关系。这些信息会作为REST API公开吗?
发布于 2019-12-02 13:28:39
根据我的理解,您希望获取集群的指标。如果是,您可以使用以下rest api来获取。有关更多详细信息,请参阅document和article
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使用率
https://stackoverflow.com/questions/59125915
相似问题