Search code examples
google-cloud-platformtimegoogle-cloud-monitoring

How to trigger an alert in Google Cloud monitoring when a condition is violated only during a specific time?


We have a requirement to trigger an alert if a file is not available in a folder in GCS storage bucket at a particular time everyday. We have created a log based metric to capture the log entry for successful upload. How can I make the alert condition to be checked only at the specific time everyday?

There is no option available in alerting console, is this possible through MQL? I could not find anything helpful in the documentation


Solution

  • Google cloud team confirmed that it is not possible to check condition only at specific time range. We achieved the expected behavior by writing custom metric data point at a scheduled time and configuring an alert policy on this metric.