Hi NewRelic,
We have created an Alert Policy with one Condition using Terraform. I was able to trigger the NRQL Condition alert once by injecting test data into our Datasources. Unfortunately after this first alert, we are not being able to trigger this Condition anymore.
I have tried many NewRelic Discuss topics and Documentation. So far I have already tried:
- Made many Query Variations
- Changed Evalution Offset so that we are sure data is ready to be analyzed
- Added configuration properties for possible Signal Loss
- Changed Threshold Configuration Approach/Values
- Changed Incident Preference Configurations
- Changed Terraform and Provider Versions
None of those changes were able to trigger the Condition once again. I have used Insights and Query Builder, and by looking into the query everything seems to be ok. If you check below query we can see that Threshold Condition should be satisfied:
Here is the Actual Alert Policy Links:
https://one.newrelic.com/launcher/nrai.launcher?platform[accountId]=2213668&pane=eyJuZXJkbGV0SWQiOiJhbGVydGluZy11aS1jbGFzc2ljLnBvbGljaWVzIiwibmF2IjoiUG9saWNpZXMiLCJwb2xpY3lJZCI6IjExNTUxMzAifQ&sidebars[0]=eyJuZXJkbGV0SWQiOiJucmFpLm5hdmlnYXRpb24tYmFyIiwibmF2IjoiUG9saWNpZXMifQ
EDIT
Found a way to trigger alerts by saving the Alert Condition using NewRelic UI instead of API(Conditional NRQL Alert not triggered). But this does not seem to be a good solution, as there is a manual process involved. We want to automate our NewRelic Alert Policy Infrastructure with Terraform without having to worry about NewRelic UI.
Thanks