# Number of data points exceeded the limit of 20000000

**URL:** <https://community.dynatrace.com/t/number-of-data-points-exceeded-the-limit-of-20000000/32989>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [October 14, 2021, 10:31am UTC](https://community.dynatrace.com/t/number-of-data-points-exceeded-the-limit-of-20000000/32989 "2021-10-14T10:31:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlanFoley](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@AlanFoley](https://community.dynatrace.com/u/AlanFoley)\
**Post date:** [October 14, 2021, 10:31am UTC](https://community.dynatrace.com/t/number-of-data-points-exceeded-the-limit-of-20000000/32989/1 "2021-10-14T10:31:25Z")

</div>

Hi all

I am trying to extract some api/v2 metrics via the API , I also apply filtering by tags,osType and mzName to reduce output however I am still&nbsp;getting the following message:

“Number of data points exceeded the limit of 20000000” -

The .csv that is returned contains only 881 rows of data - see sample of a single row below

“builtin:host.disk.usedPct:names,Host001,HOST-FE7A6A123B192776,D:\,DISK-1E2CC761ED90F1C,2021-10-01 00:00:00,54.4775917176209”

How is it possible to get to 20m data points with only 881 rows and with 7 columns of data ? It just seems impossible to get to 20m data points

I am on version&nbsp; 1.226.116.20211006-102024

I would be keen to understand how the data points are calculated based on the sample above

Any ideas,workarounds or suggestions welcome

Apprecaite the help

Thanks

Alan

---

<div class="post-metadata">

**Author:** ![david\_lopes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_lopes/32/27273_2.png) [@david\_lopes](https://community.dynatrace.com/u/david_lopes)\
**Post date:** [October 27, 2021, 12:44pm UTC](https://community.dynatrace.com/t/number-of-data-points-exceeded-the-limit-of-20000000/32989/2 "2021-10-27T12:44:24Z")

</div>

You have 1 datapoint **per host per disk per minute**

Let’s say you are looking at 2 weeks of data

And assuming you have 100 hosts, every host has 3 disks

100 hosts \* 3 disks \* 60 datapoints/hour \* 336 hours/week = 6,048,000 datapoints

As you can see you can quickly get millions of datapoints, the error means that the limit has been reached, whatever response you got won’t include the millions of datapoints.

My suggestion: have your script make one request per host (or a couple of hosts) at a time, or use Inf resolution depending on your use case

---

<div class="post-metadata">

**Author:** ![AlanFoley](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@AlanFoley](https://community.dynatrace.com/u/AlanFoley)\
**Post date:** [October 27, 2021, 12:57pm UTC](https://community.dynatrace.com/t/number-of-data-points-exceeded-the-limit-of-20000000/32989/3 "2021-10-27T12:57:32Z")

</div>

Hi David

Appreciate the detailed response - I have set my collections for every 4 hours and for those metrics which are a fit I set resolution-Inf - This way I have been able to avoid the data limits and have useful data

Thanks a mil

Alan
