25 Jan 2024 01:17 PM - last edited on 25 Jan 2024 01:44 PM by Ana_Kuzmenchuk
Hi,
I added metadata to a process group as recommended in
Now I want to make use of it in a management zone rule.
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
Solved! Go to Solution.
25 Jan 2024 01:43 PM
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:
25 Jan 2024 02:02 PM - edited 25 Jan 2024 02:04 PM
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
25 Jan 2024 02:05 PM
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)
25 Jan 2024 03:29 PM
Gentlemen, thanks to all of you for your valuable input. 🙂
Regards, Olav