Container platforms
Questions about Kubernetes, OpenShift, Docker, and more.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Filter Services by Kubernetes Workload in Dynatrace Data Explorer

AntonPineiro
DynaMight Guru
DynaMight Guru

Summary: This post explains how to filter services by Kubernetes workload in the Data Explorer. It describes which entity relationships or metadata fields can be used for building the filter.

 

Hi,

We can filter services per Kubernetes workload:

AntonPineiro_0-1689946528140.png

But I cannot see that filter option in the data explorer for the 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