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

Is it possible to group numerous management zones on one view

jmathan305
Visitor

Assume that I want to view entities that are present in N different management zones. Since we can’t apply tags at the management zone level, is there another way to achieve this?

5 REPLIES 5

Mizső
DynaMight Guru
DynaMight Guru

Hi @jmathan305,

What would be the use case? Can you provide a little bit more explanation?

Thanks.

János

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

I have 150+ management zones. Some of these zones have entities, while the remaining ones will be added soon. I just need a view of all these zones. In this case, we can't create a zone while trying. We need to incorporate all 150+ zone tags into one, which takes too much time.

Julius_Loman
DynaMight Legend
DynaMight Legend

Probably the easiest way in UI is to display a metric in Data Explorer with filter based on entity selector containing zones.

Example for hosts which are in zone1 and zone2:

builtin:host.cpu.user
:filter(and(or(in("dt.entity.host",entitySelector("type(host),mzName(~"zone1~"),mzName(~"zone1~")")))))
:splitBy("dt.entity.host")

Or use the Environment v2 entities API to query such entities.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

You can execute a Grail query for the entities and then compute the number of elements in the managementZones field.

Example DQL

fetch dt.entity.host
| fieldsAdd mzCount = arraySize(managementZones)
| filter mzCount = 3

The above query will return hosts which belong to exactly three management zones.

IzabelaRokita
Community Team
Community Team

Hello, @jmathan305!
Do any of the solutions proposed by our Community users work in your case? If so, please let us know by clicking the "accept as a solution" button. And if you still need our assistance - also give us a sign, we'll figure something out. 🙂 
EDIT: Thank you for coming back and accepting the solution, that's the Community spirit! 💪 😁

Featured Posts