Azure Monitor and Kubernetes monitoring

This article describes how to monitor your deployment using Azure Monitor and Kubernetes monitoring.

Azure Monitor

Azure Monitor is a full-stack monitoring service that you can use to monitor Azure resources for their availability, performance, and operation.

Azure Monitor metrics

Azure Monitor metrics is a feature of Azure Monitor that collects data from monitored resources into a time-series database.

These metrics can originate from a number of different sources, including native platform metrics, native custom metrics via Azure Monitor agent Application Insights, and Azure Managed Prometheus.

Prometheus metrics can be stored in an Azure Monitor workspace for subsequent visualization via Azure Managed Grafana.

Metrics configuration

To configure the scraping of Prometheus metrics data into Azure Monitor, see the Azure Monitor managed service for Prometheus scrape configuration article, which builds upon this configmap. Azure Container Storage enabled by Azure Arc specifies the prometheus.io/scrape:true and prometheus.io/port values, and relies on the default of prometheus.io/path: '/metrics'. You must specify the Azure Container Storage enabled by Azure Arc installation namespace under pod-annotation-based-scraping to properly scope your metrics' ingestion.

Once the Prometheus configuration has been completed, follow the Azure Managed Grafana instructions to create an Azure Managed Grafana instance.

Azure Monitor logs

Azure Monitor logs is a feature of Azure Monitor that collects and organizes log and performance data from monitored resources, and can be used to analyze this data in many ways.

Logs configuration

If you want to access log data via Azure Monitor, you must enable Azure Monitor Container Insights on your Arc-enabled Kubernetes cluster, and then analyze the collected data with a collection of views and workbooks.

Additionally, you can use Azure Monitor Log Analytics to query collected log data.

Next steps

Azure Container Storage enabled by Azure Arc overview