【问题标题】:How to get the Uptime Percentage from Uptime check如何从正常运行时间检查中获取正常运行时间百分比
【发布时间】:2021-09-12 07:54:10
【问题描述】:

我想从上面的图像中获取正常运行时间百分比到我正在制作的第三方应用程序。我浏览了各种文档,但找不到任何东西!

谁能指导我完成?

【问题讨论】:

    标签: google-cloud-stackdriver google-cloud-monitoring uptime uptime-monitoring website-monitoring


    【解决方案1】:

    目前无法生成此类指标/图表来显示 VM 的正常运行时间百分比。

    您可以尝试使用cloud trace API 提取该信息。

    另一种方法可能是使用 MQL 查询来创建自定义指标,以显示按小时/天等聚合的总正常运行时间。

    fetch gce_instance
    | metric 'compute.googleapis.com/instance/uptime'
    | filter (metric.instance_name == 'instance-1')
    | align delta(1d)
    | every 1d
    | group_by [], [value_uptime_mean: mean(value.uptime)]
    

    此外,您可能会发现这些答案很有帮助:

    How to generate uptime reports through Google Cloud Stackdriver?

    How to get uptime total and percentage of GCP compute vm instance through MQL?

    Get google cloud uptime history to a third party application

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-11
      • 1970-01-01
      相关资源
      最近更新 更多