21 Jul 2023
02:36 PM
- last edited on
27 Jan 2026
11:13 AM
by
IzabelaRokita
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:
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
Solved! Go to Solution.
24 Jul 2023 01:59 AM
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:
Hope this helps!
Featured Posts