You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to create some newrelic_infra_alert_condition that should be applied only for a small group of instances and my first thought was to do this by having a specific TAG on those instances.
The code looks like this:
resource "newrelic_infra_alert_condition" "host_not_reporting" {
policy_id = newrelic_alert_policy.infr_mon.id
name = "${local.condition_name}-host-not-reporting"
description = "Critical alert when the host is not reporting"
type = "infra_host_not_reporting"
enabled = true
where = "TestMonitoring = `true`"
# where = "TestMonitoring = 'true'" | not working
# where = "tags.TestMonitoring = `true`" | not working
# where = "tags.TestMonitoring = 'true'" | not working
critical {
duration = 5
}
}
The issue is that the alert is triggered for ALL the instances, not only the ones with the TAG mentioned in the where argument
Has anyone encountered this issue? not sure if this is a misconfiguration issue or not and would appreciate some opinions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
Trying to create some
newrelic_infra_alert_condition
that should be applied only for a small group of instances and my first thought was to do this by having a specific TAG on those instances.The code looks like this:
The issue is that the alert is triggered for ALL the instances, not only the ones with the TAG mentioned in the
where
argumentHas anyone encountered this issue? not sure if this is a misconfiguration issue or not and would appreciate some opinions.
Beta Was this translation helpful? Give feedback.
All reactions