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:
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