Is newrelic_infra_alert_condition really legacy resource? #2508
-
I'd like to create infrastructure "host not reporting" alert condition, referring these documents: https://docs.newrelic.com/docs/infrastructure/infrastructure-alerts/infrastructure-alert-conditions/create-infrastructure-host-not-reporting-condition/ https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/infrastructure-alert-conditions/infrastructure-alerts-add-edit-or-view-host-alert-information/ From the documentation, it seems that this alert condition can be created by
Is this true? If so, how can I write the following equivalent alert condition via newrelic_nrql_alert_condition? resource "newrelic_infra_alert_condition" "host_not_reporting" {
policy_id = newrelic_alert_policy.foo.id
name = "Host not reporting"
description = "Critical alert when the host is not reporting"
type = "infra_host_not_reporting"
where = "(hostname LIKE '%frontend%')"
critical {
duration = 5
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
related question: #2224 |
Beta Was this translation helpful? Give feedback.
-
Hi @gecko655, thanks for posting this question. I've checked with the Alerts team here at New Relic, and it looks like there currently isn't a direct alternative to HNR Infra Alert Conditions via NRQL, unfortunately. To work this around, they suggest using Loss of Signal type conditions (though these cannot substitute HNR conditions completely), while development for an NRQL based solution for HNR alert conditions is underway. This post discusses solutions along the lines of this. I shall let my team know about this so we can take note of such exceptions in lieu of the planned deprecation. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @gecko655, thanks for posting this question. I've checked with the Alerts team here at New Relic, and it looks like there currently isn't a direct alternative to HNR Infra Alert Conditions via NRQL, unfortunately. To work this around, they suggest using Loss of Signal type conditions (though these cannot substitute HNR conditions completely), while development for an NRQL based solution for HNR alert conditions is underway. This post discusses solutions along the lines of this.
I shall let my team know about this so we can take note of such exceptions in lieu of the planned deprecation. Thanks!