Deployment and HPA metrics with Container insights
The Container insights integrated agent automatically collects metrics for deployments and horizontal pod autoscalers (HPAs).
Deployment metrics
Container insights automatically starts monitoring deployments by collecting the following metrics at 60-second intervals and storing them in the InsightMetrics table.
Metric name | Metric dimension (tags) | Description |
---|---|---|
kube_deployment_status_replicas_ready | container.azm.ms/clusterId, container.azm.ms/clusterName, creationTime, deployment, deploymentStrategy, k8sNamespace, spec_replicas, status_replicas_available, status_replicas_updated (status.updatedReplicas) | Total number of ready pods targeted by this deployment (status.readyReplicas). The dimensions of this metric are:
|
HPA metrics
Container insights automatically starts monitoring HPAs by collecting the following metrics at 60-second intervals and storing them in the InsightMetrics table.
Metric name | Metric dimension (tags) | Description |
---|---|---|
kube_hpa_status_current_replicas | container.azm.ms/clusterId, container.azm.ms/clusterName, creationTime, hpa, k8sNamespace, lastScaleTime, spec_max_replicas, spec_min_replicas, status_desired_replicas, targetKind, targetName | Current number of replicas of pods managed by this autoscaler (status.currentReplicas). The dimensions of this metric are:
|
Deployment and HPA charts
Container insights includes preconfigured charts for the metrics listed earlier in the table as a workbook for every cluster. You can find the deployments and HPA workbook Deployments & HPA directly from an Azure Kubernetes Service cluster. On the left pane, select Workbooks and select View Workbooks from the dropdown list in the insight.
Next steps
Review Kube-state metrics in Kubernetes to learn more about Kube-state metrics.