<?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: Unable to create timeseries in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/283859#M2452</link>
    <description>&lt;P&gt;Take a look at the solution to this post:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/DQL/Metric-Timeseries-with-Array-Dimension/m-p/260543" target="_blank"&gt;Solved: Metric Timeseries with Array Dimension - Dynatrace Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You have to create your own timestamps to be used in the makeTimeseries command at the end&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 15:57:08 GMT</pubDate>
    <dc:creator>StrangerThing</dc:creator>
    <dc:date>2025-08-14T15:57:08Z</dc:date>
    <item>
      <title>Unable to create timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/283855#M2451</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I want to create a Davis rule that will let me monitor the number of EC2 instances created in a specific Autoscaling group in a time window. I can get the number by counting the entity ids, but this produces a non-timesries data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries usage=avg(dt.cloud.aws.ec2.cpu.usage),by:{dt.entity.ec2_instance}, from: -24h
| fieldsAdd tags = replacePattern(tostring(entityAttr(dt.entity.ec2_instance, "tags")), """ "\\\\:" """, "_")
| parse tags, "LD:placeholder '[AWS]aws_autoscaling_groupName:' LD: asg_name '\"'" | fieldsRemove placeholder, tags
| filter asg_name == "my-monitoring"
| summarize count(), by:{asg_name}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have been trying to use makeTimesries without success. I' getting the following all the time:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Please specify the parameter `time` explicitly, as the implicit default timestamp doesn't exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Whe I use time: with any of the available values I get "No records"&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 15:38:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/283855#M2451</guid>
      <dc:creator>2181</dc:creator>
      <dc:date>2025-08-14T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/283859#M2452</link>
      <description>&lt;P&gt;Take a look at the solution to this post:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/DQL/Metric-Timeseries-with-Array-Dimension/m-p/260543" target="_blank"&gt;Solved: Metric Timeseries with Array Dimension - Dynatrace Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You have to create your own timestamps to be used in the makeTimeseries command at the end&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 15:57:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/283859#M2452</guid>
      <dc:creator>StrangerThing</dc:creator>
      <dc:date>2025-08-14T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/283866#M2453</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84297"&gt;@2181&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;A quick thought, as you need only the&amp;nbsp;&lt;SPAN&gt;number of EC2 instances created in a specific Autoscaling group I believe you can also get this info directly from&amp;nbsp; dt.entity ?&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.ec2_instance
|fieldsAdd tags, lifetime
| expand tags
| parse tags, """LD 'groupName:' LD:asg_name"""
| filter asg_name == "eks-aws-eks-3-node-group-82c2e4f8-58e1-4942-29b4-dcd6724037ce"
| makeTimeseries count=count(default: 0), spread: timeframe(from: lifetime[start], to: coalesce(lifetime[end], now())), by:{asg_name}, interval: 1h&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 18:06:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/283866#M2453</guid>
      <dc:creator>Akhil-Jayendran</dc:creator>
      <dc:date>2025-08-14T18:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/284047#M2467</link>
      <description>&lt;P&gt;Thank you it worked for my case. All I had to do was twek the time window settings&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 09:41:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Unable-to-create-timeseries/m-p/284047#M2467</guid>
      <dc:creator>2181</dc:creator>
      <dc:date>2025-08-18T09:41:46Z</dc:date>
    </item>
  </channel>
</rss>

