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

Link custom metric event to a management zone

gilgi
DynaMight Champion
DynaMight Champion

Hi, 

Let's say we have the following metric expression:

(calc:service.getloyaltycalls:splitBy():sort(value(auto,descending)):limit(20) / builtin:service.requestCount.total:filter(and(or(in("dt.entity.service",entitySelector("type(service),entityName.equals(~"BookingService~")"))))):splitBy():sort(value(auto,descending)):limit(20)) * 100

The first metric (getloyaltycalls) is defined for a service under the same management zone of the bookingService. However, since this expression doesn't have a specific entity to split by, it is not linked to the entities management zones.

Can you think of any creative way that will allow for such linkage? this is needed to be included as part of users permissions.

 

1 REPLY 1

Maheedhar_T
Helper

Hey,
If it is for a problem then consider this as a workaround.
You can add properties to a event when you create metric events under anomaly detection. There are certain event properties which help you achieve what you are thinking to. You can refer to them here Events API v2 - GET all event properties - Dynatrace Docs
As an example, I can show you how relate your event to a particular host.

Maheedhar_T_0-1718946444368.png

The dimension key allows the event to prioritize and entity and link the related event to it. Let's say you have defined both process_group and host in the properties, the default thing Davis does is that it relates your problem to the process_group but if you want to override that and want this at a host level you can select the dimension.

 

Hope this helps 😀

 

Regards,
@Maheedhar_T 

Maheedhar

Featured Posts