I am requesting a feature that will allow an alert notification to activate a synthetic monitor.
Presently, an Alert webhook notifaction channel executes a POST. The Synthetic API requires a PATCH (or PUT) request to change an existing monitor. And since the notification webhook is a single request, I can’t add the script to the monitor (requires a subsequent PUT request).
There are a variety of other enhancements that I’d suggest, like:
- pass params
But, I’d be happy with the baby step to change a monitor’s status to ENABLE. I’ll call the Synthetics API from within the script to change it’s own status to DISABLE at the end of the script execution (the request library should allow me to do this), but I’m not sure this is really doable at this point. Seems it should be, but haven’t tested it yet.
In the meantime, I’ll configure the alert webhook to insert Insights custom events and poll them from a synthetic monitor. But, this is not an ideal solution. There’s cost associated with polling that is avoided with on-demand execution. (of course, some may want to poll - depends on the use case).
Suggestions from NR and the community are always welcome
New Relic Edit
- I want this too
- I have more info to share (reply below)
- I have a solution for this
We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.