Azure Log Analytics InsightMetrics getting data from Prometheus Namespace in AKS but it is not enabled

Eshwar Natarajan 0 Reputation points
2024-07-18T18:22:59.36+00:00

AKS does not have Prometheus enabled, however Log Analytics is showing that it is ingesting large amounts of data in InsightMetrics and the namespace comes out to be Prometheus. Already tried:

az aks update --disable-azure-monitor-metrics -n <cluster-name> -g <cluster-resource-group>

But data continues to be ingested

If Container Insights are disabled, then it stops

az aks disable-addons -a monitoring -n MyExistingManagedCluster -g MyExistingManagedClusterRG

but then it takes away desired Insights Functionality.

Have tried to check kubectl deployments as well as helm to see if anything has any reference but unable to find so. Any directions would help.

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,999 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 22,251 Reputation points MVP
    2024-07-19T06:43:55.8866667+00:00

    Hi,

    Container Insights contains both logs and metrics from: Azure Monitor features for Kubernetes monitoring.

    "Container insights is a feature of Azure Monitor that collects and analyzes container logs from Azure Kubernetes clusters or Azure Arc-enabled Kubernetes clusters and their components. You can analyze the collected data for the different components in your cluster with a collection of views and prebuilt workbooks."

    "Container insights collects metric data from your cluster in addition to logs. This functionality has been replaced by Azure Monitor managed service for Prometheus. You can analyze that data using built-in dashboards in Managed Grafana and alert on them using prebuilt Prometheus alert rules.

    You can continue to have Container insights collect metric data so you can use the Container insights monitoring experience. Or you can save cost by disabling this collection and using Grafana for metric analysis. See Configure data collection in Container insights using data collection rule for configuration options."

    Check Configure data collection and cost optimization in Container insights using data collection rule if you want to customize what is being collected. For example you can only collect logs and not collect metrics which will result in not sending data to InsightMetrics table.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments