<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Providing host name in metric event based on Process group in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Providing-host-name-in-metric-event-based-on-Process-group/m-p/272090#M35952</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the solution !&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to attach the parent transformation host name within the dims map&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 10:26:52 GMT</pubDate>
    <dc:creator>Roeir5</dc:creator>
    <dc:date>2025-03-11T10:26:52Z</dc:date>
    <item>
      <title>Providing host name in metric event based on Process group</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Providing-host-name-in-metric-event-based-on-Process-group/m-p/271989#M35943</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have been working on migrating &lt;STRONG&gt;ITM situations&lt;/STRONG&gt; into &lt;STRONG&gt;Dynatrace&lt;/STRONG&gt;, and one of the scenarios involves tracking &lt;STRONG&gt;process memory consumption&lt;/STRONG&gt; and generating alerts when usage exceeds a defined threshold.&lt;/P&gt;&lt;P&gt;To replicate this alerting mechanism in Dynatrace, I was referred to creating a &lt;STRONG&gt;metric event&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I have defined the following &lt;STRONG&gt;metric selector&lt;/STRONG&gt; for this purpose:&lt;/P&gt;&lt;PRE&gt;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&lt;/PRE&gt;&lt;P&gt;This query works as expected for triggering the alert based on process memory usage. However, the &lt;STRONG&gt;problem notification&lt;/STRONG&gt; generated only includes &lt;STRONG&gt;Process Group&lt;/STRONG&gt; data, making it difficult to determine which &lt;STRONG&gt;host&lt;/STRONG&gt; this process is running on.&lt;/P&gt;&lt;H3&gt;Issues I Encountered:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;I explored the &lt;STRONG&gt;available dimensions&lt;/STRONG&gt; for the metric and attempted to &lt;STRONG&gt;modify the event template&lt;/STRONG&gt;, but I couldn't find a way to attach the &lt;STRONG&gt;host name&lt;/STRONG&gt; to the event.&lt;/LI&gt;&lt;LI&gt;This is not the first time I’ve encountered this issue—some &lt;STRONG&gt;metrics in Dynatrace&lt;/STRONG&gt; do not natively include the &lt;STRONG&gt;host name&lt;/STRONG&gt; as part of the metadata.&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;My Questions:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Is there a way to retrieve and include the related host entity for a process in the metric event?&lt;/STRONG&gt; Alternatively, is there another &lt;STRONG&gt;metric&lt;/STRONG&gt; that provides process memory usage while also including host-level information?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Is there a global approach to associating the host name with every related metric event?&lt;/STRONG&gt; (For example, can this be achieved using &lt;STRONG&gt;tags&lt;/STRONG&gt; or another built-in Dynatrace mechanism?)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I appreciate any insights or best practices on this.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Roei&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 11:33:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Providing-host-name-in-metric-event-based-on-Process-group/m-p/271989#M35943</guid>
      <dc:creator>Roeir5</dc:creator>
      <dc:date>2025-03-10T11:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Providing host name in metric event based on Process group</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Providing-host-name-in-metric-event-based-on-Process-group/m-p/271991#M35944</link>
      <description>&lt;P&gt;Please take a look on the parents transformation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-selector#parents" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-selector#parents&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;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&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Mar 2025 11:40:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Providing-host-name-in-metric-event-based-on-Process-group/m-p/271991#M35944</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2025-03-10T11:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Providing host name in metric event based on Process group</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Providing-host-name-in-metric-event-based-on-Process-group/m-p/272090#M35952</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the solution !&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to attach the parent transformation host name within the dims map&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 10:26:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Providing-host-name-in-metric-event-based-on-Process-group/m-p/272090#M35952</guid>
      <dc:creator>Roeir5</dc:creator>
      <dc:date>2025-03-11T10:26:52Z</dc:date>
    </item>
  </channel>
</rss>

