<?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: Hourly load distribution graph in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269092#M1660</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your help, I didn't know this method of handling timestamps. So, it's on track and in the notebook, it displays exactly as I wanted:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_2-1738595587155.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26153iA7188DC3FFBD93E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_2-1738595587155.png" alt="Red_2-1738595587155.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I have to do now is find out how to do the same thing for the dashboard because there, it's not blocked on a time slot (display problem I imagine):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_3-1738595624489.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26154i13BDA0F967907647/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_3-1738595624489.png" alt="Red_3-1738595624489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 15:14:57 GMT</pubDate>
    <dc:creator>Red</dc:creator>
    <dc:date>2025-02-03T15:14:57Z</dc:date>
    <item>
      <title>Hourly load distribution graph</title>
      <link>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269042#M1653</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I'm in the process of transferring dashboards from Splunk Cloud to Dynatrace (I'm getting the same data into a dedicated bucket).&lt;BR /&gt;I try to count the number of events per hour and per entity, in order to get an idea of ​​the hourly load over one or more days (for example knowing if a type of event often occurs at the same times). So I made a simple graph that can show me this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_0-1738573140626.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26135i07894C531AEE8DBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_0-1738573140626.png" alt="Red_0-1738573140626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I have a problem: I would like this graph to start at the 00:00 page and end at 23:00. time page and displays the number of events per entity each hour. But he must also know how to adapt if it takes several days. I'll give you examples of what I did on Splunk, maybe it's clearer (example on 24 hours of data and example on 7 days of data):&lt;/P&gt;&lt;P&gt;24 hours&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_0-1738578593418.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26137i0DCBF9E4925CE77E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_0-1738578593418.png" alt="Red_0-1738578593418.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;7 days :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_1-1738578647703.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26138i0FCDD3BEDFAD79E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_1-1738578647703.png" alt="Red_1-1738578647703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My order is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch events
| filter source == "OnCall" and alertType == "CRITICAL"
| filterOut in(routingKey, array("dynatrace_event", "mpb-dynatrace_event"))
| fieldsAdd  routingKey = if(routingKey == "dynatrace_2", "Dynatrace", else:if(routingKey == "servicepilot_prod", "ServicePilot", else:if(routingKey == "control-m", "Control-M", else:if(routingKey == "dynatrace_mfe", "Dynatrace MFE", else:if(routingKey == "control-m_mfe", "Control-M MFE", else:if(routingKey == "dynatrace_amm", "Dynatrace AMM", else:if(routingKey == "control-m_z-os", "Control-M Z/OS", else:if(routingKey == "mpb-control-m", "Control-M MPB", else:if(routingKey == "mpb-dynatrace_problem", "Dynatrace MPB", else:if(routingKey == "dynatrace_f02", "Dynatrace F02", else:routingKey))))))))))
| dedup incidentNumber

| makeTimeseries count(), by: {routingKey}, interval:1h&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I tried another approach that allows me to see what I'm looking for in table form but I can't convert it to a graph:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_2-1738578745165.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26139iB4DA0558A0CFCFBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_2-1738578745165.png" alt="Red_2-1738578745165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Do you have any idea how to do this (if it's possible)?&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 10:33:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269042#M1653</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2025-02-03T10:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly load distribution graph</title>
      <link>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269071#M1658</link>
      <description>&lt;P&gt;You solution is good in term of data - the problem is that chart requires timestamp datatype to correctly render x-axis. You can convert hour of the day into timestamp e.g. of today using &lt;EM&gt;&lt;STRONG&gt;duration()&lt;/STRONG&gt;&lt;/EM&gt; function and beginning of today (midnight) as a day start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bu it is also possible by following manipulation of timestamp and using &lt;EM&gt;&lt;STRONG&gt;makeTimeseries&lt;/STRONG&gt;&lt;/EM&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch bizevents, from: -7d
| fieldsAdd timestamp = timestamp - timestamp@d + @d
| makeTimeseries cnt=count(),from: @d, to: @d+1d, interval:1h&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way I map each timestamp from past week into today. I used recently introduced time alignment operator:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/operators#time-alignment" target="_blank"&gt;https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/operators#time-alignment&lt;/A&gt;&amp;nbsp;but it also possible to get similar effect using &lt;EM&gt;&lt;STRONG&gt;bin()&lt;/STRONG&gt;&lt;/EM&gt; function.&lt;/P&gt;&lt;P&gt;As we want to chars timeframe different they "analysis timeframe", "Data" needs to selected as a input for x-axis. This setting as well as result is visible on screenshot below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1738589374188.png" style="width: 844px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26143iAA527098CE0898C6/image-dimensions/844x152?v=v2" width="844" height="152" role="button" title="krzysztof_hoja_0-1738589374188.png" alt="krzysztof_hoja_0-1738589374188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 13:36:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269071#M1658</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-02-03T13:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly load distribution graph</title>
      <link>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269092#M1660</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your help, I didn't know this method of handling timestamps. So, it's on track and in the notebook, it displays exactly as I wanted:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_2-1738595587155.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26153iA7188DC3FFBD93E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_2-1738595587155.png" alt="Red_2-1738595587155.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I have to do now is find out how to do the same thing for the dashboard because there, it's not blocked on a time slot (display problem I imagine):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_3-1738595624489.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26154i13BDA0F967907647/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_3-1738595624489.png" alt="Red_3-1738595624489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 15:14:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269092#M1660</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2025-02-03T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly load distribution graph</title>
      <link>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269113#M1664</link>
      <description>&lt;P&gt;Dashboards have exactly the same setting, just located in different place: go to Visual -&amp;gt; (when Line/Area/Bar chary is selected) -&amp;gt; X-Axis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_1-1738607008288.png" style="width: 721px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26160i45A32536C7CF8879/image-dimensions/721x638?v=v2" width="721" height="638" role="button" title="krzysztof_hoja_1-1738607008288.png" alt="krzysztof_hoja_1-1738607008288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 18:24:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Hourly-load-distribution-graph/m-p/269113#M1664</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-02-03T18:24:46Z</dc:date>
    </item>
  </channel>
</rss>

