cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Management zone rule using customPgMetadata

Olav_Wollrab
Frequent Guest

Hi,

I added metadata to a process group as recommended in 

https://docs.dynatrace.com/docs/manage/tags-and-metadata/basic-concepts/best-practices-and-recommend...

Now I want to make use of it in a management zone rule.

Olav_Wollrab_0-1706187742304.png

 

I fail to do so. I tried: type(process_group_instance),customPgMetadata("Environment=Level_01")

Can someone help me with it?

P.S.: my current workaround: I use an automatically applied tag rule to lift the information into a tag which I can use with the management zone rule. 

Olav_Wollrab_0-1706189564352.png

 

Regards, Olav

4 REPLIES 4

ChadTurner
DynaMight Legend
DynaMight Legend

I was able to complete this ask. Granted this is set at the host level but can be applied to PG instances via PGs with the following: 

ChadTurner_0-1706190165950.png

ChadTurner_1-1706190203200.png

 

 

-Chad

Romanenkov_Al3x
DynaMight Champion
DynaMight Champion

My example rule for autotaging:

type(process_group_instance),processType("NGINX"),customPgMetadata("[ENVIRONMENT]DOG:CORGI")

 

Romanenkov_Al3x_1-1706191027258.png

Result:

Romanenkov_Al3x_3-1706191308519.png

 

Manifest:

Romanenkov_Al3x_0-1706190918146.png

yaml:

 

 

        - name: DT_CUSTOM_PROP
          value: "DOG=CORGI"

 

 

 

This is response from API (ENV v2) /entities/{entityId}

Romanenkov_Al3x_2-1706191063208.png

 

I have to use this API to create right entityselector. It is really helpful. You need to define only EntityID - from browser -PROCESS_GROUP_INSTANCE-XXXXXXXXX and you will get all properties in JSON.

Hope this helps and good luck.

 

Regards,

Alex Romanenkov

DT_NGINX_FORCE_UNKNOWN_VERSION_INSTRUMENTATION=1

Mohamed_Hamdy
DynaMight Champion
DynaMight Champion

Hi @Olav_Wollrab ,

you can also try the following 

type(process_group_instance),customPgMetadata([ENVIRONMENT]Level_01)
type(process_group_instance),customPgMetadata([ENVIRONMENT]Level_01:QA)

Certified Dynatrace Professional | Certified Dynatrace Services Delivery - Observability & CloudOps | Dynatrace Partner - yourcompass.ca

Olav_Wollrab
Frequent Guest

Gentlemen, thanks to all of you for your valuable input. 🙂

Regards, Olav

Featured Posts