Complete the code to enable Container Insights on an AKS cluster using Azure CLI.
az aks enable-addons --resource-group myResourceGroup --name myAKSCluster --addons [1]The monitoring addon enables Container Insights for AKS clusters.
Complete the command to create a Log Analytics workspace for Container Insights.
az monitor log-analytics workspace create --resource-group myResourceGroup --workspace-name [1]The workspace name can be any valid string; myWorkspace is a common example.
Fix the error in the command to link the Log Analytics workspace to the AKS cluster.
az aks update --resource-group myResourceGroup --name myAKSCluster --workspace-resource-id [1]The workspace resource ID must be the full Azure resource ID path.
Fill the three blanks to create a Kubernetes namespace and label it for monitoring.
kubectl create namespace [1] kubectl label namespace [2] [3]=enabled
The namespace is named monitoring and labeled with containerinsights=enabled to enable monitoring.
Fill the two blanks to query CPU usage from Container Insights in Log Analytics.
Perf | where ObjectName == [1] | where CounterName == [2] | summarize avg(CounterValue) by bin(TimeGenerated, 5m)
The query filters for Kubernetes nodes ("K8SNode") and the CPU usage counter ("% Processor Time").