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

Assistance with Dynatrace Kubernetes Tags

YuvalKon
Visitor

Hey there,

A question regarding tagging; I have an automatic tag I create that catches some services.

Those services are running on Kubernetes.

My question is, is it possible to create an entity selector that will apply the same tag on all the Kubernetes workloads that are running those services (based on their tag?)

Something like: All the Kubernetes workloads, with related services with tag "X"?

Thanks! 

1 REPLY 1

sujit_k_singh
Champion

Hi @YuvalKon 

I am late here for a response, I hope this will help.

Yes, this is possible using an entity selector in your auto-tag rule.

You can target Kubernetes workloads (entity type CLOUD_APPLICATION) based on their relationship to tagged services:

type(CLOUD_APPLICATION),toRelationships.runsOn(type(SERVICE),tag("X"))

If that doesn't return results, the relationship name may differ in your environment — you can check available relationships via:

GET /api/v2/entityTypes/CLOUD_APPLICATION

Thanks,

Sujit

Dynatrace Professional Certified

Featured Posts