# Introducing built-in Persistent Volume Claim Monitoring for Kubernetes

**URL:** <https://community.dynatrace.com/t/introducing-built-in-persistent-volume-claim-monitoring-for-kubernetes/45442>\
**Category:** Dynatrace Tips\
**Tags:** tips-and-tricks, kubernetes\
**Created:** [May 6, 2024, 8:45am UTC](https://community.dynatrace.com/t/introducing-built-in-persistent-volume-claim-monitoring-for-kubernetes/45442 "2024-05-06T08:45:57Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [January 20, 2025, 10:55am UTC](https://community.dynatrace.com/t/introducing-built-in-persistent-volume-claim-monitoring-for-kubernetes/45442/9 "2025-01-20T10:55:57Z")

</div>

Hello,

I understand that we’re discussing metrics.

I would like to create advanced Davis anomaly detection alerts with thresholds based on the values of PVC labels.

In fact, I would like to set a threshold at 5% for the majority of PVCs, but have the option to lower this threshold to 1% for certain PVCs (by using tag or label), particularly those with large capacities of several terabytes.

For example:

```markup
timeseries {avg(dt.kubernetes.persistentvolumeclaim.available)}, by: { k8s.cluster.name, dt.entity.kubernetes_cluster, k8s.namespace.name,k8s.persistentvolumeclaim.name}
| lookup [
  fetch dt.entity.cloud_application_namespace
  | parse persistentVolumeClaimLabels[ACCEPT_LOW_DISK_SPACE], "DATA:ACCEPT_LOW_DISK_SPACE"
  ]
| filter ACCEPT_LOW_DISK_SPACE == "true"

```

However, currently, there is no equivalent to the cloudApplicationLabels command for PVCs, and Dynatrace does not currently provide a dedicated entity for Persistent Volume Claims (PVCs) to set a tag.

Do you see another way to achieve this?

Thank you.  
Regards

---

_[View the full topic](https://community.dynatrace.com/t/introducing-built-in-persistent-volume-claim-monitoring-for-kubernetes/45442)._
