Reputation: 131
This documentation page describes the addon 'oms_agent' for AKS.
However, it only deploys the ama deployment (ama-logs-rs), which seems to use the new Azure Monitor Agent (AMA), and not the depricated Log Analytics Agent (OMS).
What is the relation between the oms_agent addon and ama? Will the oms_agent addon also be retired once Log Analytics agent is depricated?
Upvotes: 0
Views: 448
Reputation: 3771
The oms_agent addon is not required anymore for Azure Monitor Agent (AMA) container insights for AKS. The documentation page you linked to only deploys the AMA deployment (ama-logs-rs), which uses the new Azure Monitor Agent. The oms_agent addon is related to the deprecated Log Analytics Agent (OMS), and it will also be retired once the Log Analytics agent is deprecated.
For AKS, if you're setting up container insights on a new cluster (specifically using the latest versions example 1.27 or 29) or migrating from the legacy OMS agent, you should use the Azure Monitor Agent.
The legacy OMS agent is only needed if you have specific dependencies on it or are running workloads that have not yet been tested or certified to work with the AMA.
Plus, you don't have to go through all this hassle, you can simply enable container insight via portal while setting up the cluster.
or through CLI
az aks enable-addons -a monitoring -n <cluster-name> -g <cluster-resource-group-name> --workspace-resource-id "/subscriptions/my-subscription/resourceGroups/my-resource-group/providers/Microsoft.OperationalInsights/workspaces/my-workspace"
References:
Upvotes: 1