- 1 Minute to read
- Print
- PDF
See current filesystem utilization - Kubernetes
- 1 Minute to read
- Print
- PDF
This topic describes how to monitor Zesty Disk for K8s. You can monitor from the Zesty platform, Prometheus, or Grafana.
Click the link for the desired monitoring method:
Monitor Zesty Disk for K8s from the Zesty platform
Monitor Zesty Disk for K8s from Prometheus
Monitor Zesty Disk for K8s from Grafana
Monitor Zesty Disk for K8s from the Zesty platform
Prerequisites
Access to the Zesty platform, described in Access the Zesty platform
To monitor Zesty Disk from the Zesty platform:
Log in to the Zesty platform at https://app.zesty.co
From the main menu, select Zesty Disk.
From the Managed filesystems tab, review the filesystems that are managed by Zesty Disk, marked as
Select a filesystem and review filesystem data:
In the Metrics tab, you can see the capacity, IOPS, and Throughput changes.
In the Tags tab, you can see instance and volume tags.
Note the
“kubernetes.io/created-for/pvc/name” tag whose value is the Zesty PVC name.
Monitor Zesty Disk for K8s from Prometheus
To monitor using Prometheus you need to install the Zesty Disk for K8s with the Prometheus exporter option. Once installed, Zesty automatically adds the annotations below to the Zesty Storage Agent so it can be discovered by Prometheus.
For more details, see Deploy Zesty Disk for K8s.
prometheus.io/port=<PORT_FROM_HELM_VALUES>
prometheus.io/scrape=true
Available queries
You can query the following utilization parameters:
Total PVC capacity
label_replace(sum(kubelet_volume_stats_capacity_bytes) / 1024 / 1024 / 1024, "metric", "Total PVC's capacity", "", "")
Total PVC used size
label_replace(sum(kubelet_volume_stats_used_bytes) / 1024 / 1024 / 1024, "metric", "Total PVC's used size", "", "")
PVC average utilization
label_replace(avg(kubelet_volume_stats_used_bytes / kubelet_volume_stats_capacity_bytes) * 100, "metric", "PVC's avg utilization", "", "")
Amount of PV in cluster
label_replace(count(kube_persistentvolume_info{csi_driver="ebs.csi.aws.com", job="kubernetes-services"}), "metric", "Amount of PV's in cluster", "", "")
Average PV size
label_replace(avg(kubelet_volume_stats_capacity_bytes) / 1024 / 1024 / 1024, "metric", "Average PV Size", "", "")
Amount of StatefulSets in cluster
label_replace(count(kube_statefulset_persistentvolumeclaim_retention_policy{job="kubernetes-services"}), "metric", "Amount of StatefulSets in cluster", "", "")
Monitor Zesty Disk for K8s from Grafana
Zesty provides a custom Grafana dashboard that shows Zesty Disk for K8s PVCs metrics.
To import the dashboard to your Grafana, use the following link: https://static.zesty.co/ZestyDiskPVC/zesty-pvc-grafana-dashboard.json