hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.59k stars 4.63k forks source link

Support for enabling alerting on custom metric dimensions #6901

Open mongrelion opened 4 years ago

mongrelion commented 4 years ago

Community Note

Description

It is currently possible to enable alerting on custom metric dimensions via the GUI and also via ARM but not yet via Terraform. I raised this question in the documentation repo and somebody answered that the field to look at is:

"CustomMetricsOptedInType": "WithDimensions"

New or Affected Resource(s)

Potential Terraform Configuration

resource "azurerm_application_insights" "example" {
  name                = "tf-test-appinsights"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  application_type    = "web"
  custom_metrics_opted_in_type = "WithDimensions"
}

References

Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation? For example:

davidkarlsen commented 8 months ago

Linking to relevant bicep issue: https://github.com/Azure/bicep-types-az/issues/2048