Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for enabling custom metrics in azurerm_api_management_api_diagnostic and azurerm_api_management_diagnostic #28487

Open
1 task done
stuartleeks opened this issue Jan 13, 2025 · 0 comments · May be fixed by #28499
Open
1 task done

Comments

@stuartleeks
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

Add the metrics property to the azurerm_api_management_api_diagnostic and azurerm_api_management_diagnostic resources so that APIM diagnostics can be configured to send custom metrics

New or Affected Resource(s)/Data Source(s)

azurerm_api_management_api_diagnostic

Potential Terraform Configuration

resource "azurerm_api_management_api_diagnostic" "example" {
  identifier               = "applicationinsights"
  resource_group_name      = azurerm_resource_group.example.name
  api_management_name      = azurerm_api_management.example.name
  api_name                 = azurerm_api_management_api.example.name
  api_management_logger_id = azurerm_api_management_logger.example.id

  metrics = true
}

References

The metrics property is documented in the REST API docs here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment