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 Azure Monitor workspace #18809

Closed
1 task done
EppO opened this issue Oct 17, 2022 · 3 comments
Closed
1 task done

Support for Azure Monitor workspace #18809

EppO opened this issue Oct 17, 2022 · 3 comments

Comments

@EppO
Copy link
Contributor

EppO commented Oct 17, 2022

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 "+1" or "me too" comments, 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

Description

In order to use the new Azure Monitor managed service for Prometheus, we need to be able to create an Azure Monitor workspace. Design seems to look like Log Analytics Workspace.

Azure Monitor workspace can also be linked to an Azure Managed Grafana workspace to authorize Grafana to use the Azure Monitor workspace as a resource type in a Grafana dashboard. An Azure Monitor workspace can be connected to multiple Grafana workspaces. terraform-provider-azurerm implements already azurerm_dashboard_grafana which I think is what Managed Grafana workspace refers to. I'm not sure how to call the attribute though, either grafana_workspace_ids or grafana_dashboard_ids.

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

azurerm_monitor_workspace

Potential Terraform Configuration

resource "azurerm_resource_group" "example" {
  name     = "k8s-log-analytics-test"
  location = "West Europe"
}

resource "azurerm_dashboard_grafana" "example" {
  name                              = "example-dg"
  resource_group_name               = azurerm_resource_group.example.name
  location                          = azurerm_resource_group.example.location
  api_key_enabled                   = true
  deterministic_outbound_ip_enabled = true
  public_network_access_enabled     = false

  identity {
    type = "SystemAssigned"
  }
}

resource "azurerm_monitoring_workspace" "example" {
  name                  = "azure-monitoring-workspace"
  location              = azurerm_resource_group.example.location
  resource_group_name   = azurerm_resource_group.example.name
  grafana_workspace_ids = [azurerm_dashboard_grafana.example.id]
}

References

@EppO
Copy link
Contributor Author

EppO commented May 9, 2023

#21598 implemented this

@EppO
Copy link
Contributor Author

EppO commented May 18, 2023

released in v3.56.0

@EppO EppO closed this as completed May 18, 2023
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants