26 Feb 2026 03:53 PM - edited 26 Feb 2026 04:00 PM
I want help in DQL query for k8s workload for disk utilization
- The workload can be deployment or statefulset (like mongodb, rabbitmq)
Q1. Can you help me DQL query for a deployment workload?
Q2 for statefulset I can use persistent volume claim may be but Im not able to figure out the DQL
In the below DQL query i'm not able to target workload - mongodb in namespace - shared-ns in cluster - prod-cluster
I want to use this query in davis anomaly detector to setup alert on disk utilization
timeseries {
used = max(dt.kubernetes.persistentvolumeclaim.used),
capacity = max(dt.kubernetes.persistentvolumeclaim.capacity)
},
by: {k8s.persistentvolumeclaim.name},
filter: {
k8s.cluster.name == "prod-cluster" AND
k8s.namespace.name == "shared-ns"
}
| fieldsAdd usage_percent = used[] / (capacity[]/100)
| fieldsRemove used, capacity
27 Feb 2026 08:38 AM
Does anyone know how to setup DQL query for this?
Featured Posts