10 Mar 2025 11:33 AM
Hi all,
I have been working on migrating ITM situations into Dynatrace, and one of the scenarios involves tracking process memory consumption and generating alerts when usage exceeds a defined threshold.
To replicate this alerting mechanism in Dynatrace, I was referred to creating a metric event.
I have defined the following metric selector for this purpose:
builtin:tech.generic.mem.workingSetSize:filter(and(or(in("dt.entity.process_group_instance",entitySelector("type(process_group_instance),entityName(~"proc_name~")"))))):splitBy("dt.entity.process_group_instance"):auto
This query works as expected for triggering the alert based on process memory usage. However, the problem notification generated only includes Process Group data, making it difficult to determine which host this process is running on.
I appreciate any insights or best practices on this.
Thanks in advance,
Roei
Solved! Go to Solution.
10 Mar 2025 11:40 AM
Please take a look on the parents transformation:
https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-selector#parents
builtin:tech.generic.mem.workingSetSize:filter(and(or(in("dt.entity.process_group_instance",entitySelector("type(process_group_instance),entityName(~"proc_name~")"))))):splitBy("dt.entity.process_group_instance"):auto:parents
11 Mar 2025 10:26 AM
Hi,
Thank you very much for the solution !
I have been able to attach the parent transformation host name within the dims map