Configure PV monitoring with Container insights
Starting with agent version ciprod10052020, the Container insights integrated agent now supports monitoring persistent volume (PV) usage. With agent version ciprod01112021, the agent supports monitoring PV inventory, including information about the status, storage class, type, access modes, and other details.
Container insights automatically starts monitoring PV usage by collecting the following metrics at 60-second intervals and storing them in the InsightMetrics table.
|Metric name||Metric dimension (tags)||Metric description|
||Used space in bytes for a specific persistent volume with a claim used by a specific pod. The
To learn more about how to configure collected PV metrics, see Configure agent data collection for Container insights.
Container insights automatically starts monitoring PVs by collecting the following information at 60-second intervals and storing them in the KubePVInventory table.
|Data||Data source||Data type||Fields|
|Inventory of persistent volumes in a Kubernetes cluster||Kube API||
Monitor persistent volumes
Container insights includes preconfigured charts for this usage metric and inventory information in workbook templates for every cluster. You can also enable a recommended alert for PV usage and query these metrics in Log Analytics.
Workload Details workbook
You can find usage charts for specific workloads on the Persistent Volumes tab of the Workload Details workbook directly from an Azure Kubernetes Service (AKS) cluster. Select Workbooks on the left pane, from the View Workbooks dropdown list in the Insights pane, or from the Reports (preview) tab in the Insights pane.
Persistent Volume Details workbook
You can find an overview of persistent volume inventory in the Persistent Volume Details workbook directly from an AKS cluster by selecting Workbooks from the left pane. You can also open this workbook from the View Workbooks dropdown list in the Insights pane or from the Reports tab in the Insights pane.
Persistent Volume Usage recommended alert
You can enable a recommended alert to alert you when average PV usage for a pod is above 80%. To learn more about alerting, see Metric alert rules in Container insights (preview). To learn how to override the default threshold, see the Configure alertable metrics in ConfigMaps section.
To learn more about collected PV metrics, see Configure agent data collection for Container insights.