<?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: Split metrics and SLOs by tag in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Split-metrics-and-SLOs-by-tag/m-p/205068#M1122</link>
    <description>&lt;P&gt;Hey Andrew,&lt;BR /&gt;From what I've seen this will be possible once metrics on Grail rolls around allowing for DQL queries against metrics. I haven't found a workaround in the current metric selector.&lt;BR /&gt;&lt;BR /&gt;Looking at this blog post,&amp;nbsp;&lt;A href="https://www.dynatrace.com/news/blog/boundless-exploratory-observability-and-security-analytics/" target="_blank"&gt;Expanded Grail data lakehouse and new Dynatrace user experience unlock boundless analytics | Dynatrace news&lt;/A&gt;, I reckon to do something like splitting by a parameter the DQL would look something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch dt.entity.host
| lookup [fetch metrics 
	| filter metric.key == "dt.host.cpu.system" 
	| summarize avg = avg(value), by:dt.entity.host], sourceField:entityId, lookupField:dt.entity.host
| summarize avg(lookup.avg), by:{cpuCores}&lt;/LI-CODE&gt;
&lt;P&gt;The above example would splitBy core count.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 04:43:51 GMT</pubDate>
    <dc:creator>Fin_Ubels</dc:creator>
    <dc:date>2023-02-20T04:43:51Z</dc:date>
    <item>
      <title>Split metrics and SLOs by tag</title>
      <link>https://community.dynatrace.com/t5/Automations/Split-metrics-and-SLOs-by-tag/m-p/205066#M1121</link>
      <description>&lt;DIV class="postcell post-layout--right"&gt;
&lt;DIV class="s-prose js-post-body"&gt;
&lt;P&gt;I am looking to&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-selector#splitby" target="_blank" rel="nofollow noopener noreferrer"&gt;splitBy&lt;/A&gt;&amp;nbsp;a tag for a metric expression to generate one SLO definition that covers all entities.&lt;/P&gt;
&lt;P&gt;The use-case is instead of having hundreds of metrics/SLOs defined per tag value (i.e. using a filter), to instead split by the tag.&lt;/P&gt;
&lt;P&gt;On the metricsSelector, I can only seem to splitBy an available dimension and tags is not one of these. Is this use-case possible, or are multiple entitySelectors with filters for each tagging value necessary?&lt;/P&gt;
&lt;P&gt;Did anyone have examples of how they solved this before?&lt;/P&gt;
&lt;P&gt;Management zone filters the SLO dashboard tiles by the selected data, so it seems this calculation is possible. But it would have to be beyond dashboards, such as SLO alerts, etc.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 08:31:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Split-metrics-and-SLOs-by-tag/m-p/205066#M1121</guid>
      <dc:creator>The_AM</dc:creator>
      <dc:date>2023-02-20T08:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Split metrics and SLOs by tag</title>
      <link>https://community.dynatrace.com/t5/Automations/Split-metrics-and-SLOs-by-tag/m-p/205068#M1122</link>
      <description>&lt;P&gt;Hey Andrew,&lt;BR /&gt;From what I've seen this will be possible once metrics on Grail rolls around allowing for DQL queries against metrics. I haven't found a workaround in the current metric selector.&lt;BR /&gt;&lt;BR /&gt;Looking at this blog post,&amp;nbsp;&lt;A href="https://www.dynatrace.com/news/blog/boundless-exploratory-observability-and-security-analytics/" target="_blank"&gt;Expanded Grail data lakehouse and new Dynatrace user experience unlock boundless analytics | Dynatrace news&lt;/A&gt;, I reckon to do something like splitting by a parameter the DQL would look something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch dt.entity.host
| lookup [fetch metrics 
	| filter metric.key == "dt.host.cpu.system" 
	| summarize avg = avg(value), by:dt.entity.host], sourceField:entityId, lookupField:dt.entity.host
| summarize avg(lookup.avg), by:{cpuCores}&lt;/LI-CODE&gt;
&lt;P&gt;The above example would splitBy core count.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 04:43:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Split-metrics-and-SLOs-by-tag/m-p/205068#M1122</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2023-02-20T04:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Split metrics and SLOs by tag</title>
      <link>https://community.dynatrace.com/t5/Automations/Split-metrics-and-SLOs-by-tag/m-p/205275#M1123</link>
      <description>&lt;P&gt;Thanks Fin&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 00:03:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Split-metrics-and-SLOs-by-tag/m-p/205275#M1123</guid>
      <dc:creator>The_AM</dc:creator>
      <dc:date>2023-02-22T00:03:22Z</dc:date>
    </item>
  </channel>
</rss>

