Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tagging for services & processes under a namespace with a particular tag

ansonsgoh
Dynatrace Enthusiast
Dynatrace Enthusiast

How to tag all services & processes that fall under a namespace with a particular tag

4 REPLIES 4

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

I would recommend you checking Kubernetes placeholder in automatic tagging rules:

AntonPineiro_0-1764315555470.png

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

ansonsgoh
Dynatrace Enthusiast
Dynatrace Enthusiast

I tried but there is no way for me to specify the K8 namespace tag under condition.  Basically, what we need to have tag on all services and processes under the namespace with a specific tag.

Hi,

Check under rules conditions, you have too many Kubernetes options:

AntonPineiro_0-1764319925017.png

And you can apply that for processes, services and another entities.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Mizső
DynaMight Guru
DynaMight Guru

Hi @ansonsgoh 

OR If I understand your request correctly, when you create a new auto tag first you should tag the PGs which ones under the namespace with your particular existing tag

type("PROCESS_GROUP"),toRelationships.isNamespaceOfPg(type(CLOUD_APPLICATION_NAMESPACE),tag("your particular existing tag"))

When your PGs are tagged with the new auto tag you can use these onse for the PGIs and Services:

type("PROCESS_GROUP_INSTANCE"),fromRelationships.isInstanceOf(type(PROCESS_GROUP),tag("your required new tag"))

type("SERVICE"),fromRelationships.RunsOn(type(PROCESS_GROUP),tag("your required new tag"))

I hope it helps.

Best regards,

János

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Featured Posts