<?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 Single avg value instead full timeseries in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Single-avg-value-instead-full-timeseries/m-p/213679#M14</link>
    <description>&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text" data-qa="message-text"&gt;
&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;
&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;DIV class="p-rich_text_block" dir="auto"&gt;
&lt;DIV class="p-rich_text_section"&gt;I'd like to display one single value (the average of all the value of the chart) instead of a timeseries.&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;When I choose "Single Value" display, it seems to display the values of ALL hosts, instead of one average:&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="c-files_container" role="none"&gt;
&lt;DIV class="c-message_kit__file__meta"&gt;
&lt;DIV id="tinyMceEditorstefan_eggersto_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorstefan_eggersto_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_2-1685542229153.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11995i57AA3BF0D68B72B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="stefan_eggersto_2-1685542229153.png" alt="stefan_eggersto_2-1685542229153.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 31 May 2023 14:11:21 GMT</pubDate>
    <dc:creator>stefan_eggersto</dc:creator>
    <dc:date>2023-05-31T14:11:21Z</dc:date>
    <item>
      <title>Single avg value instead full timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Single-avg-value-instead-full-timeseries/m-p/213679#M14</link>
      <description>&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text" data-qa="message-text"&gt;
&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;
&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;DIV class="p-rich_text_block" dir="auto"&gt;
&lt;DIV class="p-rich_text_section"&gt;I'd like to display one single value (the average of all the value of the chart) instead of a timeseries.&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;When I choose "Single Value" display, it seems to display the values of ALL hosts, instead of one average:&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="c-files_container" role="none"&gt;
&lt;DIV class="c-message_kit__file__meta"&gt;
&lt;DIV id="tinyMceEditorstefan_eggersto_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorstefan_eggersto_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_2-1685542229153.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11995i57AA3BF0D68B72B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="stefan_eggersto_2-1685542229153.png" alt="stefan_eggersto_2-1685542229153.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 May 2023 14:11:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Single-avg-value-instead-full-timeseries/m-p/213679#M14</guid>
      <dc:creator>stefan_eggersto</dc:creator>
      <dc:date>2023-05-31T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Single avg value instead full timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Single-avg-value-instead-full-timeseries/m-p/213753#M20</link>
      <description>&lt;P&gt;Hi Stefan, the timeseries command produces an array of data points. If you need to aggregate these values, you can use one of the available array functions. In this case, it would be the &lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#arrayAvg" target="_self"&gt;arrayAvg function&lt;/A&gt;, like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;timeseries cpu=avg(dt.host.cpu.usage), by:dt.entity.host
| fields cpu=arrayAvg(cpu), dt.entity.host&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 11:07:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Single-avg-value-instead-full-timeseries/m-p/213753#M20</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2023-06-01T11:07:18Z</dc:date>
    </item>
  </channel>
</rss>

