如何根据数据流管道中的事件设置警报? [英] How do I set alerts based on events in my Dataflow pipelines?

查看:78
本文介绍了如何根据数据流管道中的事件设置警报?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在日志中记录诸如错误之类的事件,并设置基于阈值的警报以在发生异常行为时通知我.

I'd like to be able to take events like errors in my logs and set threshold-based alerts to notify me when anomalous behavior occurs.

推荐答案

首先,访问云记录页,然后点击最右侧的创建基于日志的指标"按钮.这将提示您启用云监控 API.

First, visit the Cloud Logging page and click the "Create logs-based metric" button on the far right. This will prompt you to enable the Cloud Monitoring API.

完成此操作后,返回同一页面,该按钮将允许您基于当前过滤器创建指标名称和描述.

After doing this, return to the same page, where this button will allow you to create a metric name and description based on the current filter.

创建此类指标后,请转到信息中心".警报,然后单击创建策略"

After creating such a metric, go to Dashboards & alerts, and click "Create Policy"

输入策略名称后,您可以选择Log Metrics作为资源类型:

After entering a policy name, you can select Log Metrics as the resource type:

单击下一步"后,您应该能够根据用户/"指标选择和配置警报:

After clicking "Next", you should be able to select and configure an alert based on your "user/" metric:

这篇关于如何根据数据流管道中的事件设置警报?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆