How to monitor aks cluster from grafana dashboard using azure monitor?

Uday Kiran Reddy (ureddy) 96 Reputation points
2022-02-28T10:02:46.293+00:00

I have used this link and tried to setup grafana to fetch data from azure monitoring datasource.

But the dashboard provided not showing any details.

grafana dashboard

I did even tested when creating data source.

datasource test

Any suggestions on monitoring aks clusters.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 13,071 Reputation points Moderator
    2022-02-28T18:27:08.907+00:00

    @Uday Kiran Reddy (ureddy) - Thanks for reaching out.

    You can export logs via Export button in Logs Blade and then consume it from Grafana dashboard by REST API:

    see this for reference: Import a dashboard file via API

    You'll need to manipulate the exported excel to .json so it'll suit the REST POST request.

    And for monitoring AKS Clusters, please go through the below docs :

    1. container-insights-enable-existing-clusters
    2. Monitor AKS with Azure Monitor

    UPDATE for the below comment :

    After replicating the issue, there is a Grafana INI config file change that is required.

    See the below docs:

    1. Use Managed Identity section.
    2. Configuration

    Hope this helps.

    ------------------------------------------------------------------

    If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.


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.