21 Jul 2023 02:36 PM
Hi,
We can filter services per kubernetes workload:
But I cannot see that filter option in data explorer for 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!