<?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: Metric Events and number of metric dimensions in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/253256#M4748</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Have you managed to solve the problem? It would be great if you shared the solution with the Community users&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 10:54:39 GMT</pubDate>
    <dc:creator>GosiaMurawska</dc:creator>
    <dc:date>2024-08-13T10:54:39Z</dc:date>
    <item>
      <title>Metric Events and number of metric dimensions</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/237173#M4114</link>
      <description>&lt;P&gt;I have a situation where I am trying to understand why one particular metric has so many dimensions in the "Alert preview" in Metric Events, when used with the rollup() transformation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonioSousa_0-1707945055232.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17610iB516EF88F5656B20/image-size/large?v=v2&amp;amp;px=999" role="button" title="AntonioSousa_0-1707945055232.png" alt="AntonioSousa_0-1707945055232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But starting with the beginning, the metric in question, with the specific filter used in the metric expression, has only 81 entries/combinations in the last 24 hours, when displayed in Data Explorer, in Table mode.&lt;/P&gt;
&lt;P&gt;If I start with no rollup, I get the following in "Alert preview" in Metric Events:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonioSousa_1-1707945672808.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17611i0B21DBC9AC11B6AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AntonioSousa_1-1707945672808.png" alt="AntonioSousa_1-1707945672808.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now, the first calculation that doesn't make sense to me is that 81 x 614 = 49734. So I have only 81 entries, why is this multiplied by the 614 value?&lt;/P&gt;
&lt;P&gt;I had to try to figure out where the 614 was coming from. 614 / 81 doesn't give an integer value.&lt;/P&gt;
&lt;P&gt;So, I started out with several metric expressions. For each the corresponding number of "metric dimension values" in Metric Events:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;metric.test&lt;BR /&gt;The number of metric dimension values in the last 24 hours (27269)&lt;/LI&gt;
&lt;LI&gt;metric.test:splitBy(name,tag)&lt;BR /&gt;The number of metric dimension values in the last 24 hours (27269)&lt;/LI&gt;
&lt;LI&gt;metric.test::filter(and(or(eq(event_type,OK)))):splitBy(name,tag)&lt;BR /&gt;The number of metric dimension values in the last 24 hours is 614&lt;/LI&gt;
&lt;LI&gt;metric.test::filter(and(or(eq(event_type,OK)))):splitBy(name)&lt;BR /&gt;The number of metric dimension values in the last 24 hours is 614&lt;/LI&gt;
&lt;LI&gt;metric.test::filter(and(or(eq(event_type,OK)))):splitBy(tag)&lt;BR /&gt;The number of metric dimension values in the last 24 hours is 614&lt;/LI&gt;
&lt;LI&gt;metric.test::filter(and(or(eq(event_type,OK)))):splitBy(name,tag):avg:rollup(avg,60m)&lt;BR /&gt;The number of metric dimension values in the last 24 hours (49734)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Now, if I do a count of how many datapoints there are in the last 24 hours, in Data Explorer, I have 78686 (BTW, last 24 hours are evolving as I write this post). The data series is sparse, with values every 5 minutes, and only when the metric has values. And yes, this metric has 38 dimensions...&lt;/P&gt;
&lt;P&gt;Now, back to 614. While writing this, it changed to 613. 613 is prime, so it's not related to any multiplication, so now I'm not sure where it comes from.&lt;/P&gt;
&lt;P&gt;So, I restarted calculations with only the metric, with the value above, 27269. And I found out several values, with the following factors:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;27269&lt;BR /&gt;11, 37, 67, 407, 737, 2479&lt;/LI&gt;
&lt;LI&gt;27265&lt;BR /&gt;5, 7, 19, 35, 41, 95, 133, 205, 287, 665, 779, 1435, 3895, 5453&lt;/LI&gt;
&lt;LI&gt;27268&lt;BR /&gt;2, 4, 17, 34, 68, 401, 802, 1604, 6817, 13634&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So, with no common factors, these values seem to be related to the amount of datapoints that are being recorded, but once again they do not seem to have a relation.&lt;/P&gt;
&lt;P&gt;I also tried to use limit(), but it only got more confusing to me...&lt;/P&gt;
&lt;P&gt;So, is there any info out there on how this calculation is made, so we can setup Metric events that make sense, and that are eventually not throttled?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 10:44:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/237173#M4114</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-08-13T10:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Metric Events and number of metric dimensions?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/246616#M4525</link>
      <description>&lt;P&gt;I was struggling with a bit similar issue. My selector produced 59 unique dimensions when counting them in table view. Below is the selector, it shows OS service availability in percentage format:&lt;/P&gt;&lt;P&gt;(builtin:osservice.availability:splitBy("dt.entity.os:service","dt.entity.host"):sort(value(auto,descending)):limit(100)/6)*100&lt;/P&gt;&lt;P&gt;...But the metric event definition said there are 3481 dimensions, i.e. too many. That number is 59 times 59 actually.&lt;/P&gt;&lt;P&gt;Then I removed the "limit(100)" definition:&lt;/P&gt;&lt;P&gt;(builtin:osservice.availability:splitBy("dt.entity.os:service","dt.entity.host"):sort(value(auto,descending))/6)*100&lt;/P&gt;&lt;P&gt;And now it works! It says 59 dimensions are there. I don't really understand how it makes sense, but removing the limit fixed it in my case. These are mysterious things sometimes...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 10:24:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/246616#M4525</guid>
      <dc:creator>kalle_lahtinen</dc:creator>
      <dc:date>2024-05-27T10:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Metric Events and number of metric dimensions?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/246650#M4527</link>
      <description>&lt;P&gt;In your case, removing the limit will make it the default, of 20 entries.&lt;/P&gt;&lt;P&gt;Not sure if limit is used in metric event, but in Data explorer, that's how it works.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 15:03:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/246650#M4527</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2024-05-27T15:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Metric Events and number of metric dimensions?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/246657#M4528</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/18264"&gt;@dannemca&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Great point! But I believe in metric events it doesn't default to 20, or the expressions that I mentioned above would also not have issues...&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 16:18:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/246657#M4528</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-05-27T16:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Metric Events and number of metric dimensions</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/253256#M4748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Have you managed to solve the problem? It would be great if you shared the solution with the Community users&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 10:54:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-Events-and-number-of-metric-dimensions/m-p/253256#M4748</guid>
      <dc:creator>GosiaMurawska</dc:creator>
      <dc:date>2024-08-13T10:54:39Z</dc:date>
    </item>
  </channel>
</rss>

