This is sample API definition with Container-monitoring addon.
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"kubernetesConfig": {
"addons": [
{
"name": "container-monitoring",
"enabled": true
}
]
}
},
"masterProfile": {
"count": 1,
"dnsPrefix": "",
"vmSize": "Standard_DS2_v2"
},
"agentPoolProfiles": [
{
"name": "agentpool",
"count": 3,
"vmSize": "Standard_DS2_v2",
"availabilityProfile": "VirtualMachineScaleSets"
}
],
"linuxProfile": {
"adminUsername": "azureuser",
"ssh": {
"publicKeys": [
{
"keyData": ""
}
]
}
},
"servicePrincipalProfile": {
"clientId": "",
"secret": ""
}
}
}
Note: If the AKS Engine version is v0.38.5 or higher, the clusterName will be the dnsPrefix of the cluster. If the AKS Engine version is v0.29.1 or ACS Engine Kubernetes cluster, then default clusterName is my_acs_cluster_name in the container monitoring addon. In AKS Engine version is less than v0.38.5, the default cluster name is aks-engine-cluster.
Example command to create AKS Engine cluster with monitoring addon
aks-engine deploy ---dns-prefix <dnsPrefix> --location <location> --api-model <kubernetes.json>
You can validate that the addon is running as expected with the following commands:
You should see two sets of omsagent pods 1). One omsagent replicat set in one of the node 2). Many omsagent demonset pods as there are agent nodes . All these pods should be in 'Running' state after executing:
kubectl get pods -n kube-system
Once the container monitoring addon added successfully, navigate to azmon-containers to view the health, metrics and logs of your Kubernetes cluster(s).
Azure Monitor for containers view to view health of all AKS and AKS Engine clusters in selected global azure subscriptions
Refer to azuremonitor-containers-aks-engine for the supported matrix, troubleshooting and supportability etc.
After you enable monitoring of your AKS Engine cluster, you can stop monitoring the cluster if you decide you no longer want to monitor it.
-
If you have onboarded the monitoring using the HELM chart, then you can disable monitoring by uninstalling the chart. Refer Uninstalling the Chart section in azuremonitor-containers
-
If you have onboarded using the Container Monitoring addon, then you can remove monitoring addon with below steps
1. ssh to AKS Engine cluster master node and copy omsagent-daemonset.yaml file under /etc/kubernetes/addons to the dev machine 2. delete the container monitoring addon manifest file omsagent-daemonset.yaml under /etc/kubernetes/addons 3. delete all the resources related to container monitoring addon with `kubectl delete -f omsagent-daemonset.yaml` command against your AKS Engine cluster
For upgrading the container monitoring addon, you can disable the monitoring addon as described in Disable Monitoring section and use the HELM chart to install and upgrade
If you have any questions or feedback regarding the container monitoring addon, please reach us out through this email.
- Azure Monitor for containers for more details on how to use the product.
- Log Analytics
- Azure Resource Manager
- Azure portal
- Manage workspaces
- Link to Azure Monitor for containers