cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Data Explorer: Filter services per Kubernetes workload

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

We can filter services per kubernetes workload:

AntonPineiro_0-1689946528140.png

But I cannot see that filter option in data explorer for services metric. Is that possible? 

Maybe using tags?

Thank you!

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl
1 REPLY 1

Fin_Ubels
Dynatrace Champion
Dynatrace Champion

Hey Anton,

You can use the entity selector to create complex queries that aren't supported in the basic mode. If you switch to advanced mode you can modify the entity selector statement in the filter however you like. The following example filters for the workload, namespace and cluster:

builtin:service.errors.total.count:filter(and(or(in("dt.entity.service",entitySelector("type(service),fromRelationship.isServiceOf(type(CLOUD_APPLICATION),entityName.equals(adservice)),toRelationship.isNamespaceOfService(type(CLOUD_APPLICATION_NAMESPACE),entityName.equals(prod)),toRelationship.isClusterOfService(type(KUBERNETES_CLUSTER),entityName.equals(EKS))"))))):splitBy()

As you modify the entity selector it will give prompts of whats available to use as a filter:

Fin_Ubels_0-1690160288538.png

Hope this helps!

Featured Posts