Azure Monitor container insights for Azure Kubernetes Service (AKS) hybrid clusters (preview)
Note
Support for monitoring AKS hybrid clusters is currently in preview. We recommend only using preview features in safe testing environments.
Azure Monitor container insights provides a rich monitoring experience for AKS hybrid clusters (preview). This article describes how to set up Container insights to monitor an AKS hybrid cluster.
Supported configurations
- Azure Monitor container insights supports monitoring only Linux containers.
Prerequisites
- Pre-requisites listed under the generic cluster extensions documentation.
- Log Analytics workspace. Azure Monitor Container Insights supports a Log Analytics workspace in the regions listed under Azure products by region page. You can create your own workspace using Azure Resource Manager, PowerShell, or Azure portal.
- Contributor role assignment on the Azure subscription containing the Azure Arc-enabled Kubernetes resource. If the Log Analytics workspace is in a different subscription, then Log Analytics Contributor role assignment is needed on the Log Analytics workspace.
- To view the monitoring data, you need to have Log Analytics Reader role assignment on the Log Analytics workspace.
- The following endpoints need to be enabled for outbound access in addition to the Azure Arc-enabled Kubernetes network requirements.
- Azure CLI version 2.43.0 or higher
- Azure k8s-extension version 1.3.7 or higher
- Azure Resource-graph version 2.1.0
Onboarding
az login
az account set --subscription <cluster-subscription-name>
az k8s-extension create --name azuremonitor-containers --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type provisionedclusters --cluster-resource-provider "microsoft.hybridcontainerservice" --extension-type Microsoft.AzureMonitor.Containers --configuration-settings amalogs.useAADAuth=true
Validation
Extension details
Showing the extension details:
az k8s-extension list --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type provisionedclusters --cluster-resource-provider "microsoft.hybridcontainerservice"
Delete extension
The command for deleting the extension:
az k8s-extension delete --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type provisionedclusters --cluster-resource-provider "microsoft.hybridcontainerservice" --name azuremonitor-containers --yes
Known Issues/Limitations
- Windows containers are not supported currently
Feedback
Submit and view feedback for