How to configure data sources for Azure Managed Grafana

Prerequisites

Sign in to Azure

Sign in to the Azure portal at https://portal.azure.com/ with your Azure account.

Supported Grafana data sources

By design, Grafana can be configured with multiple data sources. A data source is an externalized storage backend that holds your telemetry information. Azure Managed Grafana supports many popular data sources.

Azure-specific data sources available for all customers:

Data sources reserved for Grafana Enterprise customers - exclusively preloaded in instances with a Grafana Enterprise subscription:

Other data sources:

For more information about data sources, go to Data sources on the Grafana Labs website.

Add a datasource

A number of data sources are added by in your Grafana instance by default. To add more data sources, follow the steps below using the Azure portal or the Azure CLI.

  1. Open the Grafana UI of your Azure Managed Grafana instance and select Configuration > Data sources from the left menu.

  2. Select Add data source, search for the data source you need from the available list, and select it.

  3. Fill out the form with the data source settings and select Save and test to validate the connection to your data source.

    Screenshot of the Add data source page.

Note

Installing Grafana plugins listed on the page Configuration > Plugins isn’t currently supported.

Update a data source

Azure Monitor configuration

The Azure Monitor data source is automatically added to all new Managed Grafana resources. To review or modify its configuration, follow these steps below in the Grafana UI of your Azure Managed Grafana instance or in the Azure CLI.

  1. From the left menu, select Configuration > Data sources.

    Screenshot of the Add data sources page.

  2. Azure Monitor is listed as a built-in data source for your Managed Grafana instance. Select Azure Monitor.

  3. In the Settings tab, authenticate through Managed Identity and select your subscription from the dropdown list or enter your App Registration details

    Screenshot of the Azure Monitor page in data sources.

Authentication and authorization are made through the provided managed identity. Using managed identity, lets you assign permissions for your Managed Grafana instance to access Azure Monitor data without having to manually manage service principals in Azure Active Directory (Azure AD).

Note

User-assigned managed identity isn't supported currently.

Azure Data Explorer configuration

Azure Managed Grafana can also access data sources using a service principal set up in Azure Active Directory (Azure AD).

  1. From the left menu, select Configuration > Data sources.

    Screenshot of the Add data sources page.

  2. Add the Azure Data Explorer Datasource data source to your Managed Grafana instance.

  3. In the Settings tab, fill out the form under Connection Details, and optionally also edit the Query Optimizations, Database schema settings, and Tracking sections.

    Screenshot of the Connection details section for Data Explorer in data sources.

    To complete this process, you need to have an Azure AD service principal and connect Azure AD with an Azure Data Explorer User. For more information, go to Configuring the datasource in Grafana.

  4. Select Save & test to validate the connection. "Success" is displayed on screen and confirms that Azure Managed Grafana is able to fetch the data source through the provided connection details, using the service principal in Azure AD.

Next steps