<?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: Custom Log Metric Never Shows Value of 0 - Did Not Alert When Expected To in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248614#M4585</link>
    <description>&lt;P&gt;Thank you, &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/40713"&gt;@PacoPorro&lt;/a&gt; and &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/55596"&gt;@jaume_reverte&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;This is exactly what we needed to fix our problem. I kept thinking it was a problem with how I built the Log Metric. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With this solution, we were able to switch to a &lt;STRONG&gt;Static Threshold&lt;/STRONG&gt; monitoring strategy and trigger alerts successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 22:09:39 GMT</pubDate>
    <dc:creator>ASE</dc:creator>
    <dc:date>2024-06-18T22:09:39Z</dc:date>
    <item>
      <title>Custom Log Metric Never Shows Value of 0 - Did Not Alert When Expected To</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248490#M4581</link>
      <description>&lt;P&gt;Good afternoon.&lt;/P&gt;
&lt;P&gt;I created a custom Log Metric that tells us each time a new account is created.&lt;/P&gt;
&lt;P&gt;In the logs, any time we see "/member/onboarding/create_account" (for example), this means that a new account has been created.&lt;/P&gt;
&lt;P&gt;For every account created, there is one corresponding log record created in our logs. It's a one to one relationship. So using &lt;STRONG&gt;&lt;SPAN class=""&gt;Occurrence of logs records&lt;/SPAN&gt;&lt;/STRONG&gt; for my metric measurement makes sense. In the metadata, I'm using &lt;STRONG&gt;Count&lt;/STRONG&gt; and the Value type of &lt;STRONG&gt;Score&lt;/STRONG&gt;, as&lt;SPAN&gt; high values indicate a good situation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Because these values go up and down throughout the day, using the &lt;STRONG&gt;Seasonal Baseline Model&lt;/STRONG&gt; monitoring strategy made sense to me.&lt;/P&gt;
&lt;P&gt;However, today, we had about 40 minutes worth of ZERO accounts being created, as shown in the attached graph.&lt;/P&gt;
&lt;P&gt;Dynatrace failed to alert, and I can't quite understand why. As the failure conditions were perfect.&lt;/P&gt;
&lt;P&gt;I also noticed that I never see a ZERO value in Data Explorer. The lowest number displayed is 1 or it's just blank. It never drops to zero. Why is this the case?&lt;/P&gt;
&lt;P&gt;Any thoughts as to why Dynatrace did not alert us, even when there was a clear sign of zero occurrence of logs records?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:05:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248490#M4581</guid>
      <dc:creator>ASE</dc:creator>
      <dc:date>2024-06-18T07:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Log Metric Never Shows Value of 0 - Did Not Alert When Expected To</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248504#M4583</link>
      <description>&lt;P&gt;Dynatrace don't treat absence of values as a 0&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;set all missing values to 0&lt;/STRONG&gt;&amp;nbsp;you should use&amp;nbsp;&lt;STRONG&gt;:default() transformation.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-selector#default" target="_blank" rel="noopener noreferrer"&gt;https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-selector#default&lt;/A&gt;&lt;BR /&gt;&lt;/STRONG&gt;Try with a &lt;STRONG&gt;metric selector&amp;nbsp;&lt;/STRONG&gt;and &lt;STRONG&gt;default&lt;/STRONG&gt; transformation.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/metric-events-metric-selector-events" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/metric-events-metric-selector-events&lt;/A&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:31:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248504#M4583</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2024-06-18T07:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Log Metric Never Shows Value of 0 - Did Not Alert When Expected To</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248505#M4584</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is normal behavior how Dynatrace captures it is either we have data or we don't have, so is either more than 1 or there is no data at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To solve this you have two different approaches:&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Metric Event select the toggle that says "Alert on missing data" this will make Dynatrace create a problem everytime there is no data, that in your case is when there are no new accounts. I don't feel this is the right approach because it'll overalert.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Use the default in the metric selector definitio, will look something like the next:&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="javascript"&gt;queue.length:splitBy("host","queue","type"):filter(ne("queue","csr_process"),ne("queue","onprem")):avg:default(0, always)&lt;/LI-CODE&gt;&lt;P&gt;The second approach let you define that when the value doesn't exist by default it will be 0, then Davis will be able to analyze it and alert if it deviates from the normal behaviour.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps. Wish good monitoring!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:36:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248505#M4584</guid>
      <dc:creator>jaume_reverte</dc:creator>
      <dc:date>2024-06-18T07:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Log Metric Never Shows Value of 0 - Did Not Alert When Expected To</title>
      <link>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248614#M4585</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/40713"&gt;@PacoPorro&lt;/a&gt; and &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/55596"&gt;@jaume_reverte&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;This is exactly what we needed to fix our problem. I kept thinking it was a problem with how I built the Log Metric. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With this solution, we were able to switch to a &lt;STRONG&gt;Static Threshold&lt;/STRONG&gt; monitoring strategy and trigger alerts successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 22:09:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Custom-Log-Metric-Never-Shows-Value-of-0-Did-Not-Alert-When/m-p/248614#M4585</guid>
      <dc:creator>ASE</dc:creator>
      <dc:date>2024-06-18T22:09:39Z</dc:date>
    </item>
  </channel>
</rss>

