Integration of Azure Monitor and Grafana using GitOps, Terraform and Azure DevOps

Shilpi Verma 0 Reputation points
2023-06-21T12:28:44.5+00:00

I want to achieve the following using Terraform, AzureDevops or GitOPs on Grafana.

1- Add Azure Monitor Data Source into Grafana using GitOps/AzureDevOps & Terraform.

2- Create multiple panels/dashboards to show the standard metrics like CPU Usage, Available memory, Disk Read/Write etc for Virtual Machines using Terraform and GitOps/Azure DevOPs

3- Manage Grafana for Azure monitor standard metrics using Terraform, AzureDevOps/GitOps

4- Set Alerts, notification policies etc using Terraform, AzureDevOps/GitOps

Complete Grafana set up for Azure Monitor Data Source, creation and managing of dashboard, completely managed by Terraform, AzureDevOps and GitOps.

Azure Managed Grafana
Azure Managed Grafana
An Azure service used to deploy Grafana dashboards for analytics and monitoring solutions.
106 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,381 Reputation points
    2023-06-22T06:22:07.2233333+00:00

    @Shilpi Verma , thank you for the question. The steps to achieve the end goal (Azure Managed Grafana with Terraform) is provided in Grafana's documentation as available below: Creating and managing dashboards using Terraform and GitHub Actions

    A little variation is there for Azure Managed Grafana in terms of API Keys/Service account required for authentication. For that, please refer the docs below:

    Generate and manage Grafana API keys in Azure Managed Grafana

    You might also want to use the Service Account based authentication from Terraform which is recommended by Grafana. Azure Managed Grafana doc is here for it - How to use service accounts in Azure Managed Grafana

    For details about the Service Account in Grafana, please see official doc here - Grafana: Service accounts

    Hope this helps.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.