<?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 Extract the total time that CPU was in saturation for Data Explorer in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Extract-the-total-time-that-CPU-was-in-saturation-for-Data/m-p/287158#M5431</link>
    <description>&lt;P&gt;I am using the built in:&lt;/P&gt;
&lt;P&gt;builtin:host.cpu.usage:splitBy("dt.entity.host"):sort(value(auto,descending)):limit(20) which give me when the CPU goes to 100% but I want to know the duration of the event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Dec 2025 11:01:52 GMT</pubDate>
    <dc:creator>Taz</dc:creator>
    <dc:date>2025-12-01T11:01:52Z</dc:date>
    <item>
      <title>Extract the total time that CPU was in saturation for Data Explorer</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Extract-the-total-time-that-CPU-was-in-saturation-for-Data/m-p/287158#M5431</link>
      <description>&lt;P&gt;I am using the built in:&lt;/P&gt;
&lt;P&gt;builtin:host.cpu.usage:splitBy("dt.entity.host"):sort(value(auto,descending)):limit(20) which give me when the CPU goes to 100% but I want to know the duration of the event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 11:01:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Extract-the-total-time-that-CPU-was-in-saturation-for-Data/m-p/287158#M5431</guid>
      <dc:creator>Taz</dc:creator>
      <dc:date>2025-12-01T11:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Explorer I want to extract the total time that CPU was in saturation</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Extract-the-total-time-that-CPU-was-in-saturation-for-Data/m-p/287162#M5432</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/91747"&gt;@Taz&lt;/a&gt;&amp;nbsp;Not sure you would be able to query the duration of event from Data explorer , but should be easy with Notebooks if you are on SaaS&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| filter host.name == array("XYZ")
| filter event.name == "CPU saturation"
| fields host.name, event.name, resolved_problem_duration, display_id&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Oct 2025 00:04:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Extract-the-total-time-that-CPU-was-in-saturation-for-Data/m-p/287162#M5432</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-10-02T00:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Explorer I want to extract the total time that CPU was in saturation</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Extract-the-total-time-that-CPU-was-in-saturation-for-Data/m-p/287611#M5447</link>
      <description>&lt;P&gt;If you start directly from the metric builtin:host.cpu.usage, you can’t really get the duration of an episode (bursts &amp;gt; X%) in &lt;STRONG&gt;Data Explorer&lt;/STRONG&gt;. Data Explorer evaluates values at individual time points, not continuous segments where a condition is true.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;write you have&amp;nbsp;two practical approaches:&lt;BR /&gt;Active (how long it has been open so far):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| filter event.kind == "DAVIS_PROBLEM"
| filter event.status == "ACTIVE"
| filter event.name == "CPU saturation"
| fields host.name, display_id, event.status, open_problem_duration&lt;/LI-CODE&gt;&lt;P&gt;Closed (how long they lasted):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| filter event.kind == "DAVIS_PROBLEM"
| filter event.status == "CLOSED"
| filter event.name == "CPU saturation"
| fields host.name, display_id, event.status, resolved_problem_duration&lt;/LI-CODE&gt;&lt;H3&gt;2) Metric events / alerts&lt;/H3&gt;&lt;P&gt;Create a &lt;STRONG&gt;Metric event&lt;/STRONG&gt; (for example: “CPU &amp;gt; 95% for ≥ 5 minutes”), and then query it later in Notebooks via dt.davis.events. Events have start and end times, so you can easily calculate each episode’s duration or total time within a window.&lt;/P&gt;&lt;H3&gt;Why not just Data Explorer?&lt;/H3&gt;&lt;P&gt;Because a selector like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:host.cpu.usage:splitBy("dt.entity.host")&lt;/LI-CODE&gt;&lt;P&gt;will only show values, but it won’t “stitch” consecutive points above a threshold into a single episode, nor return its length. For this type of analysis you need Problems/Events in DQL (or Notebooks), where you already have duration fields or can calculate now() - start_time for active problems.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 10:12:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Extract-the-total-time-that-CPU-was-in-saturation-for-Data/m-p/287611#M5447</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-10-10T10:12:37Z</dc:date>
    </item>
  </channel>
</rss>

