<?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: Query does not result in a valid timeseries: No valid time series records found in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288744#M2708</link>
    <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;DIV&gt;That error usually happens because the query doesn’t produce a valid time series that Davis can analyze. It may work in the notebook, but the anomaly detector works better if you use explicit time-based data.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I believe a good approach would be using the makeTimeseries, which forces Dynatrace to create a proper time-series output, even when the data comes from logs or events.&lt;BR /&gt;&lt;BR /&gt;You can use something like this:&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt; fetch logs
| filter label_dynatrace_alert == "true"
| summarize unhealthy_count = avg(argcod_app_info), by:{name, k8s.cluster.name, health_status}
| filter health_status != "Healthy"
| makeTimeseries unhealthy_count = avg(unhealthy_count), by:{name}, interval:1m&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This approach will guarantee a continuous time-series that Davis can process, also you will a&lt;/SPAN&gt;&lt;SPAN&gt;void the “no valid time-series records found” issue&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;In short, your query logic is fine, it just needs makeTimeseries to explicitly define the time dimension for the anomaly detector.&lt;BR /&gt;If you want you can go to the documentation to be more clear on the matter.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/aggregation-commands#makeTimeseries" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/aggregation-commands#makeTimeseries&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Best regards!&lt;/DIV&gt;</description>
    <pubDate>Tue, 28 Oct 2025 22:45:47 GMT</pubDate>
    <dc:creator>juan_mesa</dc:creator>
    <dc:date>2025-10-28T22:45:47Z</dc:date>
    <item>
      <title>Fix Invalid Time-Series Errors in DQL Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288597#M2702</link>
      <description>&lt;P&gt;I'm trying to alert on unhealthy argoCD applications in Dynatrace. My method for doing this is setting up a label on the argoCD application to be something like dynatrace_alert: true, then having an alert in Dynatrace that will alert when said application is not healthy. I'm doing it this way so that I don't need to constantly update the alert in Dynatrace. I just add a label and it also is easier to see what apps I'm alerting on by just looking for this label in my repo.&lt;/P&gt;
&lt;P&gt;How I come up with this alert is by taking the result of 1 query to get a list of apps that should be alerted on (dynatrace_alert: true) then feeding that list into another query that will then show me which apps from that list is unhealthy. The problem I am running int is that it seems to work fine in a notebook but when putting into Davis Anomaly detector, I am getting 'Query does not result in a valid timeseries: No valid time series records found'. Any suggestions here?&lt;/P&gt;
&lt;P&gt;Result in notebook&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sivart_89_0-1761578808632.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30718i5DFEA52D1EFC485E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sivart_89_0-1761578808632.png" alt="sivart_89_0-1761578808632.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What I am using in the Anomaly detector&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;timeseries {alert_count = avg(argocd_app_labels, default: 0)}, by:{name}, filter:label_dynatrace_alert == "true", interval:1m
| join 
[ timeseries {unhealthy_count = avg(argocd_app_info, default: 0)}, by:{health_status, name, k8s.cluster.name}, filter:health_status != "Healthy", interval:1m
| filter k8s.cluster.name != "eks-enterprise-dev"], on:{name}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:49:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288597#M2702</guid>
      <dc:creator>sivart_89</dc:creator>
      <dc:date>2025-12-17T12:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query does not result in a valid timeseries: No valid time series records found</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288744#M2708</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;DIV&gt;That error usually happens because the query doesn’t produce a valid time series that Davis can analyze. It may work in the notebook, but the anomaly detector works better if you use explicit time-based data.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I believe a good approach would be using the makeTimeseries, which forces Dynatrace to create a proper time-series output, even when the data comes from logs or events.&lt;BR /&gt;&lt;BR /&gt;You can use something like this:&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt; fetch logs
| filter label_dynatrace_alert == "true"
| summarize unhealthy_count = avg(argcod_app_info), by:{name, k8s.cluster.name, health_status}
| filter health_status != "Healthy"
| makeTimeseries unhealthy_count = avg(unhealthy_count), by:{name}, interval:1m&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This approach will guarantee a continuous time-series that Davis can process, also you will a&lt;/SPAN&gt;&lt;SPAN&gt;void the “no valid time-series records found” issue&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;In short, your query logic is fine, it just needs makeTimeseries to explicitly define the time dimension for the anomaly detector.&lt;BR /&gt;If you want you can go to the documentation to be more clear on the matter.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/aggregation-commands#makeTimeseries" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/aggregation-commands#makeTimeseries&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Best regards!&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Oct 2025 22:45:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288744#M2708</guid>
      <dc:creator>juan_mesa</dc:creator>
      <dc:date>2025-10-28T22:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Query does not result in a valid timeseries: No valid time series records found</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288781#M2709</link>
      <description>&lt;P&gt;Thanks for the input here&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/87655"&gt;@juan_mesa&lt;/a&gt;.&amp;nbsp;What I am alerting off of are Prometheus metrics, nothing with logs and using logs to get this information even if it was possible, I rather not do since I would then have to customize the logic even more instead of using native provided&amp;nbsp;Prometheus metrics.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 12:13:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288781#M2709</guid>
      <dc:creator>sivart_89</dc:creator>
      <dc:date>2025-10-29T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query does not result in a valid timeseries: No valid time series records found</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288787#M2711</link>
      <description>&lt;P&gt;Got it, that make sense if you're working with Prometheus metrics. I believe the issue comes from the join that its producing empty intervals. I´ll keep digging if there's a work around.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 13:06:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288787#M2711</guid>
      <dc:creator>juan_mesa</dc:creator>
      <dc:date>2025-10-29T13:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query does not result in a valid timeseries: No valid time series records found</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288793#M2714</link>
      <description>&lt;P&gt;Thank you for your time here. I've tried a handful of things but can't get anything to work, but then again i'm nowhere near real proficient with dql when it comes to some of these more what I will say complex for myself queries&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 14:24:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-Invalid-Time-Series-Errors-in-DQL-Queries/m-p/288793#M2714</guid>
      <dc:creator>sivart_89</dc:creator>
      <dc:date>2025-10-29T14:24:22Z</dc:date>
    </item>
  </channel>
</rss>

