# Max-values-per-tag how to do

**URL:** <https://community.influxdata.com/t/max-values-per-tag-how-to-do/25318>\
**Category:** Systems\
**Tags:** influxdb, telegraf\
**Created:** [June 7, 2022, 9:06am UTC](https://community.influxdata.com/t/max-values-per-tag-how-to-do/25318 "2022-06-07T09:06:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smallbirdwy](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/smallbirdwy/32/10303_2.png) [@smallbirdwy](https://community.influxdata.com/u/smallbirdwy)\
**Post date:** [June 7, 2022, 9:06am UTC](https://community.influxdata.com/t/max-values-per-tag-how-to-do/25318/1 "2022-06-07T09:06:54Z")

</div>

openresty/statsd.lua  
statsd.time(“name,transNo=” … uuid,ngx.now)  
statsd.flush(udp,127.0.0.1,8126)  
telegrafa.conf  
[outputs.file]  
metrics.out  
[outputs.influxdb]  
127.0.0.1:8086

because transNo is no repetition  
so when writing to [127.0.0.1:8086]  
“error”:"partial write: max-values-per-tag limit exceeded (100009/100000):tag=transNo,value=“xxxx”

transNo unwanted insert influxdb,but i want transNo outputs.file metrics.out

how to do

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [June 13, 2022, 8:03pm UTC](https://community.influxdata.com/t/max-values-per-tag-how-to-do/25318/2 "2022-06-13T20:03:54Z")

</div>

Hello @smallbirdwy,  
Welcome!  
You can search for

```auto
# max-values-per-tag = 100000

```

And change to

```auto
# max-values-per-tag = 0

```

In the agent portion config.

---

<div class="post-metadata">

**Author:** ![smallbirdwy](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/smallbirdwy/32/10303_2.png) [@smallbirdwy](https://community.influxdata.com/u/smallbirdwy)\
**Post date:** [July 24, 2022, 4:51am UTC](https://community.influxdata.com/t/max-values-per-tag-how-to-do/25318/3 "2022-07-24T04:51:49Z")

</div>

telegraf version 1.8,infulxdb version 1.5, tag=transNo(uuid) more and more big 10000000 lines, change max-values-per-tag = 0 ?

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [July 25, 2022, 6:29pm UTC](https://community.influxdata.com/t/max-values-per-tag-how-to-do/25318/4 "2022-07-25T18:29:53Z")

</div>

Hello @smallbirdwy,  
That’s what my googling tells me works. I’m not sure from personal experience because I haven’t run into that error, but maybe give it a try and let me know how it works? Thank you!

---

<div class="post-metadata">

**Author:** ![smallbirdwy](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/smallbirdwy/32/10303_2.png) [@smallbirdwy](https://community.influxdata.com/u/smallbirdwy)\
**Post date:** [July 26, 2022, 1:55am UTC](https://community.influxdata.com/t/max-values-per-tag-how-to-do/25318/5 "2022-07-26T01:55:38Z")

</div>

With the increase of data, the memory will be full
