gpt4 book ai didi

google-cloud-platform - 将 MQL 与 Google Cloud Monitoring (Stackdriver) 警报策略结合使用

转载 作者:行者123 更新时间:2023-12-05 01:35:27 25 4
gpt4 key购买 nike

我用过MQL在 Google Cloud Monitoring 中创建两个指标比率的图表。

我想创建一个基于 MQL 的提醒政策,但 Cloud Console 中的界面没有查询编辑器,就像在 Metrics Explorer 中一样。

在使用 Google Cloud Monitoring (Stackdriver) 定义警报策略的条件时,是否可以使用 MQL?

最佳答案

现在支持使用 MQL 创建警报:)在 UI 和 API 中都是如此。


  1. 要创建有效警报 - 管道 conditionabsent_for查询末尾的关键字*。参见 https://cloud.google.com/monitoring/mql/alerts用于文档。

  2. 对于比率警报,请遵循常规比率查询的提示 https://cloud.google.com/monitoring/mql/examples#qlx-ratio-ratio

  3. 与仪表板相比有两个主要区别 - 所有 MQL 警报都必须以严格格式保存,并且大多数条件都需要指定度量单位。参见 https://cloud.google.com/monitoring/mql/qn-from-api#ql-alert-condition


) * - 它们在技术上是“表运算符”,而不是“关键字”。

关于google-cloud-platform - 将 MQL 与 Google Cloud Monitoring (Stackdriver) 警报策略结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62868293/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com