Environment Issue - fetching entityType and entityName metrics from one environment

when I’m try to fetch the metrics with the help of entityType and entityName I’m getting all the details across the environment I need a param to fetch the environment on which I mention.

Hello @Cky007

There are three unique syntax and value operators associated with the entityName. Which one did you employ?

Regards,

Babar

either your entities in dynatrace have some kind of naming convention that hopefully is compatible with the entityselector or you’ll have to setup tags on the entities to select them. Management zones can be useful too

Type("HOST"),tag("environment:production")
Type("HOST"),entityName.startsWith("Prod")

I use entitySelector=entityName.equals(“name”)

For setting up tags where I need to make changes for Json body

you need to define tags in settings