# DQL - timeseries resolution

**URL:** <https://community.dynatrace.com/t/dql-timeseries-resolution/35756>\
**Category:** DQL\
**Tags:** dql\
**Created:** [July 6, 2022, 1:17pm UTC](https://community.dynatrace.com/t/dql-timeseries-resolution/35756 "2022-07-06T13:17:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian\_barth](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_barth/32/34060_2.png) [@christian\_barth](https://community.dynatrace.com/u/christian_barth)\
**Post date:** [July 6, 2022, 1:17pm UTC](https://community.dynatrace.com/t/dql-timeseries-resolution/35756/1 "2022-07-06T13:17:54Z")

</div>

Hello.Can someone help me add resolution (e.g. 1 minute) to this DQL query?

```markup
timeseries avg(dt.host.disk.used), by:{dt.entity.host}, from:now()-4h
| limit 5

```

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![imsingh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imsingh/32/7858_2.png) [@imsingh](https://community.dynatrace.com/u/imsingh)\
**Post date:** [July 6, 2022, 1:36pm UTC](https://community.dynatrace.com/t/dql-timeseries-resolution/35756/2 "2022-07-06T13:36:14Z")

</div>

I think you are looking for the interval parameter:

```markup
timeseries avg(dt.host.disk.used), by:{dt.entity.host}, from:now()-4h, interval:1m
| limit 5

```

---

<div class="post-metadata">

**Author:** ![manisundaram](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@manisundaram](https://community.dynatrace.com/u/manisundaram)\
**Post date:** [December 11, 2024, 11:46am UTC](https://community.dynatrace.com/t/dql-timeseries-resolution/35756/3 "2024-12-11T11:46:55Z")

</div>

Eventhough I set interval to 1m, when I am looking at 7 days of data it is not respecting that.

Say for example, I set the interval to 5 mins. It respects that when running for data from last 24 hours. But if I run it for last 7 days resolution changes to 10 minutes and last 30 days it changes to 30 minutes. How can I force the resolution to be 5 minutes even though I look at 30 days of data. That is one of the features expected to be in Grail correct ?

---

<div class="post-metadata">

**Author:** ![imsingh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imsingh/32/7858_2.png) [@imsingh](https://community.dynatrace.com/u/imsingh)\
**Post date:** [December 11, 2024, 1:59pm UTC](https://community.dynatrace.com/t/dql-timeseries-resolution/35756/4 "2024-12-11T13:59:01Z")

</div>

Hi there

AFAIK, what you’re asking isn’t possible. The behavior you’re describing is the expected behavior. For more information, look at&nbsp;[DQL metric commands — Dynatrace Docs](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/commands/metric-commands#timeseries)
