Skip to content

equinor/terraform-azurerm-grafana

Repository files navigation

Terraform module for Azure Managed Grafana

GitHub License GitHub Release Conventional Commits SCM Compliance

Terraform module which creates Azure Managed Grafana resources.

Features

  • Creates a managed Grafana instance in the given resource group.
  • Audit logs sent to given Log Analytics workspace by default.

Prerequisites

  • Azure role Contributor at the resource group scope.
  • Azure role Log Analytics Contributor at the Log Analytics workspace scope.

Usage

provider "azurerm" {
  features {}
}

module "grafana" {
  source  = "equinor/grafana/azurerm"
  version = "~> 2.2"

  instance_name              = "example-grafana"
  resource_group_name        = azurerm_resource_group.example.name
  location                   = azurerm_resource_group.example.location
  log_analytics_workspace_id = module.log_analytics.workspace_id
}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "westeurope"
}

module "log_analytics" {
  source  = "equinor/log-analytics/azurerm"
  version = "~> 2.3"

  workspace_name      = "example-workspace"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
}

Known Issues

Unable to login using the Firefox browser

Azure Managed Grafana has a limitation when trying to log into Grafana using AAD SSO with the Firefox browser. Firefox 91+ is only supported on Windows devices when it comes to conditional access.

To resolve this issue, do either of the following:

  • Use Firefox 91+, since it is supported for device-based Conditional Access, but "Allow Windows single sign-on for Microsoft, work, and school accounts" needs to be enabled. Enable Windows SSO login in Firefox.
  • Pursue the use of a different browser.

Contributing

See Contributing guidelines.

About

Terraform module which creates Azure Managed Grafana resources

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 6

Languages