<?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 How to query which alerting profiles are associated with a Dynatrace entity? in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/285752#M5878</link>
    <description>&lt;P&gt;Hopefully this feature is hiding somewhere &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;we have a tenant with a gazillion hosts and services. i need to quickly inventory which alerting profiles are mapped to specific hosts or services. I'm hoping i don't have to sit and open every single alerting profile to determine whether my specific host/service is mapped into it.&lt;BR /&gt;&lt;BR /&gt;I know one workaround is that if a Problem was recently detected on that host/service, then the Problems view has an "alerting profile" column to help with the mapping.&lt;BR /&gt;But what if it's a super healthy host/service that hasn't seen any problems recently?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Sep 2025 01:33:19 GMT</pubDate>
    <dc:creator>satish_a_prasad</dc:creator>
    <dc:date>2025-09-11T01:33:19Z</dc:date>
    <item>
      <title>How to query which alerting profiles are associated with a Dynatrace entity?</title>
      <link>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/285752#M5878</link>
      <description>&lt;P&gt;Hopefully this feature is hiding somewhere &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;we have a tenant with a gazillion hosts and services. i need to quickly inventory which alerting profiles are mapped to specific hosts or services. I'm hoping i don't have to sit and open every single alerting profile to determine whether my specific host/service is mapped into it.&lt;BR /&gt;&lt;BR /&gt;I know one workaround is that if a Problem was recently detected on that host/service, then the Problems view has an "alerting profile" column to help with the mapping.&lt;BR /&gt;But what if it's a super healthy host/service that hasn't seen any problems recently?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 01:33:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/285752#M5878</guid>
      <dc:creator>satish_a_prasad</dc:creator>
      <dc:date>2025-09-11T01:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to query which alerting profiles are associated with a Dynatrace entity?</title>
      <link>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/285754#M5879</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/63"&gt;@satish_a_prasad&lt;/a&gt;&amp;nbsp;From what I understand alerting profiles in Dynatrace are associated with events and not the entities. They are set to&amp;nbsp;filter and manage problem notifications and are&amp;nbsp;&lt;SPAN&gt;applied at the problem level, not at the individual entity level. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, the alerting profiles may not actually show up against hosts or services unless we have some smart tagging configured to set alert profile name as a tag on the entity or use the tag set on the entity as a alert profile name as a reference&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 02:18:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/285754#M5879</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-09-11T02:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to query which alerting profiles are associated with a Dynatrace entity?</title>
      <link>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/289073#M5973</link>
      <description>&lt;P&gt;This is correct.&amp;nbsp; Alerting profiles relate to events. Therefore you can start with querying the events related to an alerting profile.&amp;nbsp; When doing this via DQL (fetch events), you can add the affected entities. Now you have the entities. This should enable you to match each alerting profile to entities.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 22:46:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/289073#M5973</guid>
      <dc:creator>michiel_otten</dc:creator>
      <dc:date>2025-11-04T22:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to query which alerting profiles are associated with a Dynatrace entity?</title>
      <link>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/289238#M5977</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Here’s how I approached it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I checked which fields are available on DAVIS_PROBLEM events to see how I could link problems to an alerting profile and the impacted entities:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch events
| filter event.kind == "DAVIS_PROBLEM"
| limit 1&lt;/LI-CODE&gt;&lt;P&gt;From this inspection I noticed the label labels.alerting_profile.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t_pawlak_0-1762527153790.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30848i8C55874A17835F90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="t_pawlak_0-1762527153790.png" alt="t_pawlak_0-1762527153790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So as&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4669"&gt;@michiel_otten&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp; wrote, I mapping alerting profile with entities and counted problems:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch events
| filter event.kind == "DAVIS_PROBLEM" AND event.status_transition == "CREATED"
| fieldsAdd ap = coalesce(
    labels.alerting_profile,
    labels.alertingProfile,
    labels.alertingprofile
)
| filter isNotNull(ap)
| expand ae = affectedEntities
| summarize problems = count(), by: {
  alerting_profile = ap,
  entityType = ae.entityType,
  entityId   = ae.entityId,
  entityName = ae.displayName
}
| sort alerting_profile asc, problems desc&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t_pawlak_1-1762527223656.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30849iEDB37C3C5CC9C086/image-size/medium?v=v2&amp;amp;px=400" role="button" title="t_pawlak_1-1762527223656.png" alt="t_pawlak_1-1762527223656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you don’t want the results aggregated, just remove the summarize step and keep the expanded rows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t_pawlak_2-1762527263656.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30850i9EDFB9DB0491EBD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="t_pawlak_2-1762527263656.png" alt="t_pawlak_2-1762527263656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 14:55:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/How-to-query-which-alerting-profiles-are-associated-with-a/m-p/289238#M5977</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-11-07T14:55:39Z</dc:date>
    </item>
  </channel>
</rss>

