15 Apr 2025 06:53 AM
How to create a dashboard for 2 management zones?
We have 2 management zones for 2 applications that are to be monitored in a single dashboard.
But I see the dashboard tiles cannot be created for both the management zone at the same time.
Please share if there is a solution to this issue.
15 Apr 2025 07:06 AM
The most straightforward and recommended approach would be to create a management zone which includes entities from both zones.
Depending on what tiles you put on the dashboards, you might be able to filter entities by entitySelector in Data Explorer tiles and use both.
15 Apr 2025 07:11 AM
Hi Julius
Thanks for your quick reply.
Am new to dql and am trying to filter the entities with management zone name.
How to filter by management zone?
15 Apr 2025 07:57 AM - edited 15 Apr 2025 07:59 AM
hi @Arunkumarbnp,
Management Zones will be in Array when pull the data entities using DQL while polling any entity be it as host or process group instances.
So you can use it to filter,
either
filter toString(Management Zone)== "MZ name" or filter MZ == array("MZname")
Try and let me know.
Thanks
15 Apr 2025 08:01 AM
I need to filter for 2 mznames
May I use this query
filter MZ == array("MZname1","MZname2")
15 Apr 2025 12:04 PM - edited 15 Apr 2025 12:05 PM
As the managementZones field is an array the most "proper" way to accomplish the task would be to use the in operator to match entities which occur in either MZ1 or MZ2. The DQL syntax would look something like the below:
| filter in(managementZones,array("MZ1","MZ2"))
15 Apr 2025 12:41 PM
Hi Marco
Thanks for your reply.
I tried the below query in data explorer and the below error is displayed
Error: Metric selector parse error: line 2:50 token recognition error at: '|'
15 Apr 2025 12:47 PM
hi @Arunkumarbnp,
Believe you mix the metric in Data explorer with DQL one.
15 Apr 2025 12:57 PM
Hi Aravindhan
Thanks for the clarification.
I'm trying to use the query in data explorer for 2 management zones.
How to create a simple query
15 Apr 2025 07:20 AM
Hoping it helps.
BR,
Peter.
15 Apr 2025 07:37 AM
Hi Peter,
I appreciate your quick reply.
For now, I use filter query to add the entities from both the management using tags.
How to use filter query to add these entities using management zone names instead of tags?
eg query
builtin:synthetic.http.availability.location.total:filter(and(or(in("dt.entity.http_check", entitySelector("type(~"HTTP_CHECK~"),
tag(~"apple~")")),
in("dt.entity.http_check",entitySelector("type(~"HTTP_CHECK~"),tag(~"orange~")"))))):splitBy("dt.entity.http_check"):sort(value(auto,descending)):limit(100)
15 Apr 2025 03:29 PM
Here's the equivalent entity selector expression:
builtin:synthetic.browser.failure:filter(and
(or(in("dt.entity.synthetic_test",entitySelector("type(synthetic_test),mzName(~"MZ1~")"))),(in("dt.entity.synthetic_test",entitySelector("type(synthetic_test),mzName(~"MZ2~")"))))):splitBy("dt.entity.synthetic_test"):sort(value(auto,descending)):limit(20)
I quick note: I do not work with the entity selector expressions too often, but the above seems to work even with the odd placement of quote and tilde (~) characters placed around the MZ names. You should be able to get this to work by just replacing MZ1 and MZ2 strings with your management zone names, while leaving all the punctuation in place.
16 Apr 2025 06:38 AM