gpt4 book ai didi

google-cloud-platform - 在没有表行更新/上传发生时设置大查询警报

转载 作者:行者123 更新时间:2023-12-03 22:01:54 24 4
gpt4 key购买 nike

当没有数据上传到 Big Query 表超过一天时,为每封电子邮件设置 Big Query 警报的最佳方法是什么?我想到的是:

  • Stackdriver
  • 酒馆子
  • 云函数

  • 但我不确定最快和最好的方法是什么。我尝试通过 Stackdirver -> Create New Alert Ploicy 进行设置
  • 资源类型:BigQuery 数据集
  • 指标:上传的行数
  • 条件在 时触发-> 任何时间序列违反 -> 不存在 FOR 23小时

  • 但是没有发送电子邮件。虽然有些表几个月没有数据......

    最佳答案

    您应该创建基于审计日志的警报。转到日志记录 -> 选择 BigQuery,然后按插入过滤,您可以创建基于日志的指标,您可以基于该指标设置警报规则:

    To create an alerting policy on a logs-based counter metric, do the following:

    1. Go to Logs-based metrics in the Google Cloud Console:
    2. Find the metric you want to explore and select Create alert from metric in the metric's More more_vert menu.
    3. The Conditions pane opens, with the logs-based metric you chose pre-populated in the Target dialog.
    4. In the Configuration dialog, fill in the Threshold value.
    5. Click Save, which displays the Create new alerting policy panel with your completed condition.
    6. Optional: Fill in the Notifications and Documentation sections.
    7. In the Name this policy section, enter a name for the alerting policy.
    8. Click Save.


    如本页所述: https://cloud.google.com/logging/docs/logs-based-metrics/charts-and-alerts

    请参阅此视频,其中详细解释了这一点,并提供了有关如何执行此操作的类似示例:
    https://youtu.be/dqoZEfJ7UbM?t=1275

    关于google-cloud-platform - 在没有表行更新/上传发生时设置大查询警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59251271/

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