Monitoring Kubernetes environment

RamNad 20 Reputation points
2024-09-30T03:20:39.9466667+00:00

Hello,

I have a self-hosted K8S environment that I wanted to configure it to the Azure monitor or Azure-managed grafana. Currently, my cluster has been configured by installing metrics-server. How can I configure the data sources to visualize the data from my k8s cluster?

TIA

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,275 questions
Azure Managed Grafana
Azure Managed Grafana
An Azure service used to deploy Grafana dashboards for analytics and monitoring solutions.
105 questions
{count} votes

Accepted answer
  1. Pavan Minukuri 85 Reputation points Microsoft Vendor
    2024-10-01T01:28:04.55+00:00

    Hi RamNad,
    Thanks for response,

    Even though your Kubernetes (K8s) cluster is installed on a CentOS server running on an Azure VM, you'll still need to connect it to Azure Arc if you want to use Azure's tools for centralized management, monitoring, and security. Azure Arc treats any Kubernetes cluster running outside of Azure (on-premises, in other clouds, or even in Azure VMs) as external until it is connected.

    Without connecting your K8s cluster to Azure Arc, Azure services like Azure Monitor, Azure Policy, and Azure Security won't be able to manage or monitor it. By connecting to Azure Arc, your cluster can be centrally managed within Azure.

    You can use below comment for to connect your Kubernetes cluster to Azure Arc,az connectedk8s connect --name <ClusterName> --resource-group <ResourceGroupName> --location <AzureRegion>

    To summarize:

    • If you want centralized management and access to Azure services like monitoring, security, and policy, you need to connect your K8s cluster to Azure Arc.
    • If you're using other tools or managing the cluster locally, you might not need to connect it to Azure Arc.

    If the answer is helpful, Please Click "Accept Answer" and "Upvote"


0 additional answers

Sort by: Most helpful

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.