17 Oct 2022 09:41 PM - last edited on 18 Oct 2022 09:35 AM by MaciejNeumann
Hey everyone,
I'm trying to use the v2 monitored entities /entities to build out a query that will pull back the exact process groups I want. In order to do that I was looking towards using the metadata properties listed in the output below. Specifically I am hoping to have something to show me all process groups that have a key of 'key_1' and a value of 'value_1'. Anyone done something like this before? I've looked at the doc but struggling when it comes to pulling in properties
Solved! Go to Solution.
17 Nov 2022 11:11 PM
Hi Travis,
An important thing to remember when using the entity selector with metadata is you need the entity type first.
here is an example of using the metadata 'JAVA_JAR_FILE'
type(process_group),metadata("JAVA_JAR_FILE:com.dynatrace.easytravel.customer.frontend.jar")
as you can see it follows this format
type(<entity_type>),metadata("<key_1>:<value_1>")
Hope this helps!
Riley