Small change to Muting Rules configuration

Hi folks!

I just wanted to jump in here and let you know about a small change we are making to Muting Rules. This change is not live yet, but should be in place by the end of this week (29 Oct, 2021).

When we first introduced Muting Rules, we forgot to include entity.guid in the list of options. This seems like a pretty big oversight, but all of you resourceful folks out there found a way to make it work, by filtering by tags.guid.

Well, entity.guid is an included tag on the violation event, and we wanted to make sure that this was an explicit choice in the dropdown menu when setting up a Muting Rule. So we are fixing it! However, tags.guid will no longer work. We’ll be migrating your existing Muting Rules though, so the only work to be done on your end is to update any configuration automation scripts to reflect this change.

TL;DR:

  • tags.guid will no longer work for Muting Rules
  • entity.guid is what you will be using instead
  • You will need to update any configuration automation scripts to reflect this change (we’ll take care of the rest)

Happy Alerting!

1 Like

Hi folks, just wanted to give an update:

Due to unavoidable delays on our end, this change has not gone through yet. However, it should happen by the end of January, 2022.

If you do not use an automated configuration tool for your Muting Rules, you should not notice any change – everything will continue working the way it did before.

However, if you use the New Relic Terraform Provider, and are still using tags.guid or tag.guid for your Muting Rules, you will see an error message like this one when you run your script:

Warning: "tags.guid" has been deprecated for Muting Rules. Please use entity.guid instead for Muting Rules configurations.

If you do need to make that change, here is an example of what it would look like. Below you will see an example scriptlet from a Muting Rule using tags.guid. “Before” is what it would look like before the change is made, and “after” is what the scriptlet would look like after the modification.

Before:

resource "newrelic_alert_muting_rule" "foo" {
  name = "foo"
  description = "I'm a muting rule"
  enabled = true
  condition {
    conditions {
      attribute = "tags.guid"
      operator = "EQUALS"
      values = ["IAmAGuid"]
    }
    operator = "OR"
  }
}

After:

resource "newrelic_alert_muting_rule" "foo" {
  name = "foo"
  description = "I'm a muting rule"
  enabled = true
  condition {
    conditions {
      attribute = "entity.guid"
      operator = "EQUALS"
      values = ["IAmAGuid"]
    }
    operator = "OR"
  }
}