Grafana Cloud

Configure serverless Azure Metrics with Cloud Provider

Complete the following steps to configure serverless Azure metrics using Cloud Provider in Grafana Cloud.

To navigate to Azure serverless in Grafana Cloud:

  1. Navigate to your Grafana Cloud Portal.
  2. Select your Grafana Cloud stack.
  3. In your Grafana Cloud stack, expand Observability > Cloud Provider in the main menu.
  4. Click Azure, then click the Configuration tab.
  5. Select Serverless for how to configure Azure.
  6. Click the Azure Metrics tile.
  7. At the Azure credentials page, click Add new credential.

Configure access for Grafana Cloud

To configure access for Grafana Cloud to access your Azure metrics:

  1. Click Setup instructions.
  2. Follow the steps to create a service principal with the Azure Monitoring Reader role, using the Azure CLI.

To export metrics from Azure, Grafana Cloud needs authorization to pull data from your Azure Subscriptions. Grafana Alloy uses the Azure SDK for Go which has multiple options for configuring authentication to Azure, including but not limited to the following options:

  • a service principal with environment variable
  • a workload identity
  • a managed identity

Whichever option you choose, the identity that you use must have the Azure Monitoring Reader role for any Azure Subscriptions you are trying to monitor.

Refer to the various options for configuring authentication in Azure documentation.

Connect to Azure account

To connect your Azure account in Grafana Cloud:

  1. Enter the Name you want to give to your new credential.
  2. Enter the Client id you want to create the credential for.
  3. Enter the Client secret.
  4. Enter the Tenant id.
  5. Optionally, add tags. By default, resource information including tags are available on the resource_info metric. When you add a tag here, you can add tags to your Azure Monitor metrics or filter the Azure Monitor metrics collected by tags.

Configure metrics

To configure metrics, select one of two ways for your credential to get data into Grafana Cloud:

  • Autodiscovery: This option adds all resources found in the provided Azure account to Grafana Cloud.
  • Setup manually: This option allows you to select specific resources and metrics from the Azure account provided to send to Grafana Cloud.

Autodiscovery

To use autodiscovery to configure your Azure serverless metrics:

  1. Choose Autodiscovery to add all resources found in the provided Azure account to Grafana Cloud.
  2. Click Create credential to finish creating your configuration and to begin collecting metrics.

Setup manually

To manually setup your Azure serverless metrics:

  1. Select Setup manually.
  2. In the Subscription id box, enter the subscription id you want to get data for.
  3. Optionally, select which resources to get for the current subscription ID. If you do not specify resources, all resources associated with this subscription ID are included.
  4. Optionally click Edit Metrics for the selected resources to customize which metrics, aggregations, and dimensions are sent. If you do not customize the metrics, all discovered available metrics, aggregations, and dimensions are included.
  5. Optionally, add additional subscription IDs.
  6. Click Create credential to finish creating your configuration and to begin collecting metrics.

Install dashboards and alerts

To install and view your Azure preconfigured dashboards and alerts:

  1. After configuring Azure metrics, click the Configuration tab at the top of the Cloud Provider Azure page.
  2. Scroll down to the Dashboards and Alerts Installation section and click Install dashboards and alerts.
  3. Click the Services tab.
  4. Locate and click the specific service you want to see a dashboard for in the Service column. Use the Service or Source filters to help you find the source or service you want to see.

Manage Azure credentials and metrics

Credentials are how you connect your Azure account with Grafana Cloud so you can send your Azure Metrics to Grafana Cloud. You can add, edit, or delete Azure credentials and the resources and metrics you pull from the Azure account.

Add credentials

To add an Azure credential:

  1. From the Configuration tab in Cloud Provider Azure, click the Azure Metrics tile.
  2. Click Add new credential.
  3. Follow the instructions for configuring access for Grafana Cloud to gather your Azure Metrics. You have several options for creating an identity. The identity you use must have the Azure Monitoring Reader role.
  4. Enter your Azure account information. For more details, refer to Connect to Azure account.

View credentials and metrics configuration

To view Azure credential details, including the resources and metrics being pulled:

  1. From the Configuration tab in Cloud Provider Azure, click the Azure Metrics tile.
  2. Click the Credential name of the credential you want to view.
  3. Click Resources to expand the section and see the resources you are pulling metrics from in Azure.
  4. Click the View button of a resource to view the specific metrics being pulled for that resource.

Edit credentials and metrics configuration

To edit Azure credential details or the resources and metrics being pulled:

  1. From the Configuration tab in Cloud Provider Azure, click the Azure Metrics tile.
  2. Click the Credential name of the credential you want to edit.
  3. Click the Actions button.
  4. Select Edit.
  5. On the Edit credential page, make your changes. You can complete the following tasks from this page:
    • update the Azure account information
    • add, update, or remove Azure formatted tag keys and values
    • add or delete subscription ids
    • add or delete resources from the subscription
    • add, updating settings for, or delete metrics pulled from resources
  6. Click Save credential.

Delete credentials

To delete Azure credentials:

  1. From the Configuration tab in Cloud Provider Azure, click the Azure Metrics tile.
  2. Click the Credential name of the credential you want to delete.
  3. Click the Actions button.
  4. Select Delete.
  5. Click the Delete button.