<?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 metrics - filter, group by characteristics of a field in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-metrics-filter-group-by-characteristics-of-a-field/m-p/241090#M31642</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/69421"&gt;@dcole66&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The best approach for You would be report those as events to Grail (SaaS only) and do calculation as needed.&lt;/P&gt;&lt;P&gt;Otherwise You will hit dimension and aggregation limits while storing such amount of dimensions - so not only You will not be able to query them but they will start to&amp;nbsp;&lt;SPAN&gt;deteriorate over time as moving aggregation will start to get rid of "insignificant ones" - which in this approach will be most of it.&lt;BR /&gt;You can help Yourself thou by adding one more dimension while reporting them : IsExternal:(Yes/No) if possible. This would allow You to split using this dimension - easy and should be pretty simple in implementation.&lt;BR /&gt;&lt;BR /&gt;Bests&lt;BR /&gt;Michal&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 11:15:45 GMT</pubDate>
    <dc:creator>MichalOlszewski</dc:creator>
    <dc:date>2024-03-26T11:15:45Z</dc:date>
    <item>
      <title>Custom metrics - filter, group by characteristics of a field</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-metrics-filter-group-by-characteristics-of-a-field/m-p/230487#M29881</link>
      <description>&lt;P&gt;I've creating some custom metrics where I'm posting a time taken (in second) with a number of field (tags? I come from an influx background).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;custom.metric,type=search,applid=1,doctype=A,user=User1,recordsreturned=10 1.5
custom.metric,type=search,applid=1,doctype=B,user=12345,recordsreturned=10 1.5&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can imagine, the user field is likely to have lots of entries....and while filtering on a single user to see all their counts, generally things would be banded together.&amp;nbsp; In this case, User1 is internal, and user 12345 is external.&lt;/P&gt;
&lt;P&gt;I use SQL server for this information primarily, and our queries are somewhat like&lt;/P&gt;
&lt;P&gt;select count(*) where user is numeric as ExternalCount&lt;/P&gt;
&lt;P&gt;select count(*) where user is not numeric as internalCount&lt;/P&gt;
&lt;P&gt;Is there a function I can use in dynatrace to create Data Explorer query similarly?&amp;nbsp; &amp;nbsp;Or does my upstream application need to work that out and add it as it's own field when submitting the metric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 10:54:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Custom-metrics-filter-group-by-characteristics-of-a-field/m-p/230487#M29881</guid>
      <dc:creator>dcole66</dc:creator>
      <dc:date>2023-12-01T10:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom metrics - filter, group by characteristics of a field</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-metrics-filter-group-by-characteristics-of-a-field/m-p/241090#M31642</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/69421"&gt;@dcole66&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The best approach for You would be report those as events to Grail (SaaS only) and do calculation as needed.&lt;/P&gt;&lt;P&gt;Otherwise You will hit dimension and aggregation limits while storing such amount of dimensions - so not only You will not be able to query them but they will start to&amp;nbsp;&lt;SPAN&gt;deteriorate over time as moving aggregation will start to get rid of "insignificant ones" - which in this approach will be most of it.&lt;BR /&gt;You can help Yourself thou by adding one more dimension while reporting them : IsExternal:(Yes/No) if possible. This would allow You to split using this dimension - easy and should be pretty simple in implementation.&lt;BR /&gt;&lt;BR /&gt;Bests&lt;BR /&gt;Michal&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 11:15:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Custom-metrics-filter-group-by-characteristics-of-a-field/m-p/241090#M31642</guid>
      <dc:creator>MichalOlszewski</dc:creator>
      <dc:date>2024-03-26T11:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom metrics - filter, group by characteristics of a field</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-metrics-filter-group-by-characteristics-of-a-field/m-p/241133#M31649</link>
      <description>&lt;P&gt;Hi thanks for replying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that what I ended up doing.&amp;nbsp; &amp;nbsp;Making a time taken metric, and removed all the user details and just went for as you said isExternal.&amp;nbsp; &amp;nbsp;I then made a recordsFound metric with mostly the same details.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 17:58:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Custom-metrics-filter-group-by-characteristics-of-a-field/m-p/241133#M31649</guid>
      <dc:creator>dcole66</dc:creator>
      <dc:date>2024-03-26T17:58:25Z</dc:date>
    </item>
  </channel>
</rss>

