Management zone rule using customPgMetadata

Hi,

I added metadata to a process group as recommended in

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.

Regards, Olav

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:

My example rule for autotaging:

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

Result:

Manifest:

yaml:

- name: DT_CUSTOM_PROP
          value: "DOG=CORGI"

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

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

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)

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

Regards, Olav