【问题标题】:REST API for getting performance metrics for an HDInsight cluster?用于获取 HDInsight 群集的性能指标的 REST API?
【发布时间】:2019-12-01 13:22:11
【问题描述】:

我正在寻找允许我获取给定 HDInsight (Hadoop/Linux) 集群的性能指标的 REST API,例如集群使用的内存量或百分比、cpu 使用率等。但我没有遇到任何具体的事情。我找到的唯一最接近的链接是this。但这也没有任何关于获取性能指标的参考。这些信息甚至公开为 REST API 吗?

【问题讨论】:

    标签: rest azure-api-management azure-hdinsight azure-rest-api


    【解决方案1】:

    据我了解,您想获取集群的指标。如果是这样,你可以使用下面的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 使用率

    【讨论】:

    • @dhiraj 对你有用吗?
    猜你喜欢
    • 1970-01-01
    • 2022-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多