Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Alerts Policies not working

Hello, 
I am trying to set an absence alerting policy to alert me when data not uploaded to a bigquery table for about 3 mins , this are the configurations I have made but it is not working and no alerts have been send to me on the email.

I don't know what seems the problem.Screenshot 2023-10-18 130130.pngScreenshot 2023-10-18 130228.pngScreenshot 2023-10-18 130245.png

0 1 1,077
1 REPLY 1

As stated in the documentation for Google Cloud Platform (GCP😞

In order for metric absence conditions to trigger, you must have at least one successful measurement, which means retrieving data, within the defined maximum duration window after the policy was either installed or modified.

For instance, if you've configured a metric-absence policy with a 30-minute duration window, the condition will not be satisfied if the subsystem responsible for generating metric data has never produced a data point. In this scenario, the subsystem needs to generate at least one data point and then cease producing additional data points for the next 30 minutes.

In other words, to generate an incident for a missing metric, you will require a minimum of one data point (insert job).

You have two options:

  1. Generate an artificial log entry to kickstart the metric and ensure it has at least one time series and data point.
  2. Execute an insert job that aligns with the log-based metric you've created to initiate the metric.

Regarding your previous question, the metric you established is currently inactive due to the absence of any written data points in the past 24 hours. As mentioned earlier, the metric must have at least one data point written to it to be considered active.

Top Solution Authors