<?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: External API issue alerting in our service in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/External-API-issue-alerting-in-our-service/m-p/247507#M4799</link>
    <description>&lt;DIV class=""&gt;&lt;P&gt;To set up alerts or notifications in Dynatrace for specific issues with your external API calls, such as receiving a 500 error, a 401 error, or when the external API is not reachable, you can use the following steps:&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Custom Service for External API&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First, ensure that your external API calls are being tracked as a service in Dynatrace. You might need to define a custom service for the API endpoints if they are not automatically detected.&lt;UL&gt;&lt;LI&gt;click on the right site "Monitor as a separate service"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoseRomero_0-1717649015168.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20342iEDFDFB2D21983DD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="JoseRomero_0-1717649015168.png" alt="JoseRomero_0-1717649015168.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Custom Metrics&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create custom metrics to count the occurrences of specific status codes.&lt;UL&gt;&lt;LI&gt;click on the right site "Creare metric"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoseRomero_2-1717650318840.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20344i58E280D2795CBCC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="JoseRomero_2-1717650318840.png" alt="JoseRomero_2-1717650318840.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Define Anomaly Detection Custom Metric Alert&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create anomaly detection on the custom metrics. You can specify the conditions under which the alerts should be triggered, such as a specific number of 500 errors, 401 errors, or when the API is not reachable for a certain period. You can use data explorer to get the count metric and filter by error code filtering by status code starts with 5, 4 or missing. Example&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;:filter(and(or(prefix("HTTP status","5"))))
:filter(and(or(prefix("HTTP status","4"))))
:filter(and(or(eq("HTTP status","missing"))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 05:33:04 GMT</pubDate>
    <dc:creator>JoseRomero</dc:creator>
    <dc:date>2024-06-06T05:33:04Z</dc:date>
    <item>
      <title>External API issue alerting in our service</title>
      <link>https://community.dynatrace.com/t5/Alerting/External-API-issue-alerting-in-our-service/m-p/247502#M4798</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a application say COD im which I have some external API call&lt;/P&gt;&lt;P&gt;Is there anyway I can alert/notify in dynatrace in these cases:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If external api is throwing 500&lt;/LI&gt;&lt;LI&gt;If external api is throwing 401&lt;/LI&gt;&lt;LI&gt;External api is not reachable&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 06 Jun 2024 00:31:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/External-API-issue-alerting-in-our-service/m-p/247502#M4798</guid>
      <dc:creator>Imran_Siddiqui</dc:creator>
      <dc:date>2024-06-06T00:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: External API issue alerting in our service</title>
      <link>https://community.dynatrace.com/t5/Alerting/External-API-issue-alerting-in-our-service/m-p/247507#M4799</link>
      <description>&lt;DIV class=""&gt;&lt;P&gt;To set up alerts or notifications in Dynatrace for specific issues with your external API calls, such as receiving a 500 error, a 401 error, or when the external API is not reachable, you can use the following steps:&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Custom Service for External API&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First, ensure that your external API calls are being tracked as a service in Dynatrace. You might need to define a custom service for the API endpoints if they are not automatically detected.&lt;UL&gt;&lt;LI&gt;click on the right site "Monitor as a separate service"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoseRomero_0-1717649015168.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20342iEDFDFB2D21983DD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="JoseRomero_0-1717649015168.png" alt="JoseRomero_0-1717649015168.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Custom Metrics&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create custom metrics to count the occurrences of specific status codes.&lt;UL&gt;&lt;LI&gt;click on the right site "Creare metric"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoseRomero_2-1717650318840.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20344i58E280D2795CBCC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="JoseRomero_2-1717650318840.png" alt="JoseRomero_2-1717650318840.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Define Anomaly Detection Custom Metric Alert&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create anomaly detection on the custom metrics. You can specify the conditions under which the alerts should be triggered, such as a specific number of 500 errors, 401 errors, or when the API is not reachable for a certain period. You can use data explorer to get the count metric and filter by error code filtering by status code starts with 5, 4 or missing. Example&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;:filter(and(or(prefix("HTTP status","5"))))
:filter(and(or(prefix("HTTP status","4"))))
:filter(and(or(eq("HTTP status","missing"))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 05:33:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/External-API-issue-alerting-in-our-service/m-p/247507#M4799</guid>
      <dc:creator>JoseRomero</dc:creator>
      <dc:date>2024-06-06T05:33:04Z</dc:date>
    </item>
  </channel>
</rss>

