DQL
Questions about Dynatrace Query Language
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DQL query for Disk utilization

ravi_singh
Visitor

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


1 REPLY 1

ravi_singh
Visitor

Does anyone know how to setup DQL query for this?

Featured Posts