Azure Container Insights is a monitoring service that provides deep visibility and insights into the performance and health of containerized applications running in Azure Kubernetes Service (AKS) and Azure Container Instances (ACI). It helps with monitoring by providing the following capabilities:
Metrics: Container Insights collects and aggregates metrics from the Kubernetes control plane, nodes, and pods. This includes metrics such as CPU and memory usage, network traffic, and pod status. These metrics can be used to monitor the performance and resource usage of your containerized applications.
Logs: Container Insights collects and aggregates logs from the Kubernetes control plane, nodes, and pods. This includes logs from the Kubernetes system, the container runtime, and the applications running in the containers. These logs can be used to troubleshoot issues and monitor the health of your containerized applications.
Alerts: Container Insights provides built-in alerts that can be configured to notify you when specific conditions are met, such as a pod or container becoming unresponsive or a high rate of failed requests.
Dashboards: Container Insights provides pre-built dashboards that display metrics and logs in a visual format, making it easy to identify trends and patterns in the performance and health of your containerized applications.
Anomaly detection: Container Insights is able to detect anomalies in metrics and logs and notify you if something unexpected happens.
Root cause analysis: Container Insights allows you to perform root cause analysis on issues that arise, for example by showing you which pod or container is causing the issue, and by providing the context necessary to understand the problem.
Integration with Azure Monitor: Container Insights is integrated with Azure Monitor, which allows you to collect, analyze, and visualize data from different sources to identify patterns, trends, and insights for better decision making.
Step by step Deployment of Container Insights.
First, create a new resource group for your AKS cluster and Application Insight
az group create --name myResourceGroup --location southcentralus