0
0
Azurecloud~30 mins

AKS monitoring with Container Insights in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
AKS Monitoring with Container Insights
📖 Scenario: You are managing an Azure Kubernetes Service (AKS) cluster for a small company. You want to monitor the cluster's health and performance using Azure Monitor's Container Insights. This will help you see how your containers are running and catch problems early.
🎯 Goal: Set up Container Insights monitoring on an AKS cluster by creating a resource group, enabling monitoring with Azure CLI commands, and then verifying the monitoring status.
📋 What You'll Learn
Create an Azure resource group named monitoring-rg in the eastus region
Create an AKS cluster named myAKSCluster in the monitoring-rg resource group
Enable Container Insights monitoring on the AKS cluster using Azure CLI
Verify the monitoring addon is enabled on the AKS cluster
💡 Why This Matters
🌍 Real World
Monitoring AKS clusters with Container Insights helps keep applications healthy and performant by providing real-time metrics and logs.
💼 Career
DevOps engineers and cloud administrators use these skills to maintain Kubernetes clusters and ensure smooth operations in production.
Progress0 / 4 steps
1
Create Azure Resource Group
Use the Azure CLI command az group create to create a resource group named monitoring-rg in the eastus region.
Azure
Need a hint?

Remember to use the exact resource group name monitoring-rg and location eastus.

2
Create AKS Cluster
Use the Azure CLI command az aks create to create an AKS cluster named myAKSCluster in the resource group monitoring-rg. Use --generate-ssh-keys to create SSH keys automatically.
Azure
Need a hint?

Make sure to use the exact cluster name myAKSCluster and resource group monitoring-rg.

3
Enable Container Insights Monitoring
Enable Container Insights monitoring on the AKS cluster myAKSCluster in resource group monitoring-rg using the Azure CLI command az aks enable-addons with the addon name monitoring.
Azure
Need a hint?

Use the exact addon name monitoring to enable Container Insights.

4
Verify Monitoring Addon Status
Use the Azure CLI command az aks show with --resource-group monitoring-rg and --name myAKSCluster to check if the monitoring addon is enabled. Then print the addonProfiles section from the output.
Azure
Need a hint?

Use --query addonProfiles to filter the output to the addons section.