# Telegraf modbus Frequency

**URL:** <https://community.influxdata.com/t/telegraf-modbus-frequency/33535>\
**Category:** Telegraf\
**Tags:** modbus\
**Created:** [March 13, 2024, 8:46am UTC](https://community.influxdata.com/t/telegraf-modbus-frequency/33535 "2024-03-13T08:46:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dario\_Armellin](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dario_armellin/32/12752_2.png) [@Dario\_Armellin](https://community.influxdata.com/u/Dario_Armellin)\
**Post date:** [March 13, 2024, 8:46am UTC](https://community.influxdata.com/t/telegraf-modbus-frequency/33535/1 "2024-03-13T08:46:33Z")

</div>

Hi, i had a look to the modbus input for telegraf, but it’s a bit unknown to me how do I control the frequency of data.  
I can’t see any parameter to control how often i poll the slaves, any hint is wellcome.  
Thanks.

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [March 13, 2024, 1:31pm UTC](https://community.influxdata.com/t/telegraf-modbus-frequency/33535/2 "2024-03-13T13:31:56Z")

</div>

All plugins collect at the agent-level setting `interval` by default. When not set to anything, this defaults to 10 seconds. You can override this setting on a per-input basis by specifying the `interval` setting in your input config. Check out that and other input settings here: [telegraf/docs/CONFIGURATION.md at master · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#input-plugins)

---

<div class="post-metadata">

**Author:** ![Dario\_Armellin](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dario_armellin/32/12752_2.png) [@Dario\_Armellin](https://community.influxdata.com/u/Dario_Armellin)\
**Post date:** [March 13, 2024, 1:56pm UTC](https://community.influxdata.com/t/telegraf-modbus-frequency/33535/3 "2024-03-13T13:56:53Z")

</div>

Thanks, much appreciated. Can the interval setting be dynamic ? Or to change that is need to kill the telegraf process change the interval and restart ?

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [March 13, 2024, 2:09pm UTC](https://community.influxdata.com/t/telegraf-modbus-frequency/33535/4 "2024-03-13T14:09:30Z")

</div>

> [@Dario\_Armellin](#):
>
> Can the interval setting be dynamic ?

No, it is read during startup. Changing the value requires restarting telegraf.

You can use the `--watch-config` option which would restart telegraf for you should the config file update. This essentially does a restart as well.
