Is it possible to configure multiple Log Analytics workspaces with AKS container insight?

Mandeep Matharu 21 Reputation points
2021-10-28T16:19:10.403+00:00

Hi,

I am trying to figure out if it is possible to configure multiple log analytics workspace for container insights. I have a log analytics workspace in the same subscription where my AKS cluster is hosted and another workspace in another subscription which is used as centralized log analytics workspace. I just wanted to check if it is possible to configure more than one log analytics workspaces for AKS container insights ?

Thanks.

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,872 questions
0 comments No comments
{count} votes

Accepted answer
  1. shiva patpi 13,141 Reputation points Microsoft Employee
    2021-10-30T17:57:58.913+00:00

    Hello @Mandeep Matharu ,
    It might not be possible to configure multiple Log Analytics workspaces for AKS container insights.

    When you enable monitoring using Log Analytics workspace :-

    1. It will deploy omsagent pods on each node which will scrape the metrics from those corresponding nodes and push them to workspace. (these agents are controlled by daemon set)
    2. It will deploy a omsagent replicaset (This will pull the cluster level metrics and push them to workspace)

    In your scenario , if both the subscriptions are under the same tenant you can use Azure CLI to enable monitoring to point directly to the workspace from other subscription

    az aks enable-addons -g <rgname> -n <aksclustername> -a monitoring --workspace-resource-id "/subscriptions/<subid>/resourcegroups/<rgname>/providers/microsoft.operationalinsights/workspaces/<workspaceid>"

    Kindly let us know if you have additional questions.

    Regards,
    Shiva.


0 additional answers

Sort by: Most helpful