How do I set alerts based on events in my Dataflow

2019-08-06 04:18发布

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.

1条回答
甜甜的少女心
2楼-- · 2019-08-06 05:19

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.

enter image description here

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.

enter image description here

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

enter image description here

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

enter image description here

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

enter image description here

查看更多
登录 后发表回答