'GCP - Send Alert every X on the counter - log based metrics
Is there a way to setup GCP Alert for Every X minutes, regardless of the threshold or condition?
I want to create a counter
metric that counts occurrence of specific log entry in the logs and Alert that value every X minutes.
For instance, I have a log entry something like "Request received xxxx". I want to get notified (Alert) every 30 minutes with count of requests received.
Solution 1:[1]
Scheduler is most appropriate for this behavior.
Alerts do not send data, the absence or creation of the alert based upon the condition is the data. In this case, the condition is not relevant, and thus the alert is not meaningful.
What can be done is have the alert always trigger and the logs of the incident will have the desired count of data.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Spencer Woo |