# Unable to create timeseries

**URL:** <https://community.dynatrace.com/t/unable-to-create-timeseries/52959>\
**Category:** DQL\
**Tags:** dql, aggregations\
**Created:** [August 14, 2025, 3:38pm UTC](https://community.dynatrace.com/t/unable-to-create-timeseries/52959 "2025-08-14T15:38:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![2181](https://avatars.discourse-cdn.com/v4/letter/2/90ced4/32.png) [@2181](https://community.dynatrace.com/u/2181)\
**Post date:** [August 14, 2025, 3:38pm UTC](https://community.dynatrace.com/t/unable-to-create-timeseries/52959/1 "2025-08-14T15:38:21Z")

</div>

Hi Community,

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.

```markup
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}

```

I have been trying to use makeTimesries without success. I’ getting the following all the time:

Please specify the parameter `time` explicitly, as the implicit default timestamp doesn’t exist

Whe I use time: with any of the available values I get “No records”

---

<div class="post-metadata">

**Author:** ![StrangerThing](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/strangerthing/32/12182_2.png) [@StrangerThing](https://community.dynatrace.com/u/StrangerThing)\
**Post date:** [August 14, 2025, 3:57pm UTC](https://community.dynatrace.com/t/unable-to-create-timeseries/52959/2 "2025-08-14T15:57:08Z")

</div>

Take a look at the solution to this post:&nbsp;&nbsp;[Solved: Metric Timeseries with Array Dimension - Dynatrace Community](https://community.dynatrace.com/post/260543)

You have to create your own timestamps to be used in the makeTimeseries command at the end

---

<div class="post-metadata">

**Author:** ![Akhil-Jayendran](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/akhil-jayendran/32/153_2.png) [@Akhil-Jayendran](https://community.dynatrace.com/u/Akhil-Jayendran)\
**Post date:** [August 14, 2025, 6:06pm UTC](https://community.dynatrace.com/t/unable-to-create-timeseries/52959/3 "2025-08-14T18:06:10Z")

</div>

Hi&nbsp;[@2181](https://community.dynatrace.com/user/84297)&nbsp;,

A quick thought, as you need only the&nbsp;number of EC2 instances created in a specific Autoscaling group I believe you can also get this info directly from&nbsp; dt.entity ?

```markup
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

```

---

<div class="post-metadata">

**Author:** ![2181](https://avatars.discourse-cdn.com/v4/letter/2/90ced4/32.png) [@2181](https://community.dynatrace.com/u/2181)\
**Post date:** [August 18, 2025, 9:41am UTC](https://community.dynatrace.com/t/unable-to-create-timeseries/52959/4 "2025-08-18T09:41:46Z")

</div>

Thank you it worked for my case. All I had to do was twek the time window settings
