# Inputs in telegraf config will be running in parallel or sequential?

**URL:** <https://community.influxdata.com/t/inputs-in-telegraf-config-will-be-running-in-parallel-or-sequential/32039>\
**Category:** Telegraf\
**Tags:** telegraf, snmp\
**Created:** [November 3, 2023, 11:57am UTC](https://community.influxdata.com/t/inputs-in-telegraf-config-will-be-running-in-parallel-or-sequential/32039 "2023-11-03T11:57:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurangzeb099](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@aurangzeb099](https://community.influxdata.com/u/aurangzeb099)\
**Post date:** [November 3, 2023, 11:57am UTC](https://community.influxdata.com/t/inputs-in-telegraf-config-will-be-running-in-parallel-or-sequential/32039/1 "2023-11-03T11:57:31Z")

</div>

Hi Team  
I have a doubt about telegraf executing all the 4-5 conf file in telegraf.d/ .  
will these conf file be running in parallel or sequential ??  
what will happend to 2nd conf file if 1st conf is fail to excuite or taking more internal time as expected ?  
I am using SNMP input for all confs. and each file represent different vendor

---

<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:** [November 3, 2023, 12:15pm UTC](https://community.influxdata.com/t/inputs-in-telegraf-config-will-be-running-in-parallel-or-sequential/32039/2 "2023-11-03T12:15:40Z")

</div>

I see your thread in Slack, but to answer here as well, inputs are all run in parallel. Telegraf will read all configuration files and combine them into a single “config”, and then execute all the inputs as a seperate goroutine.

---

<div class="post-metadata">

**Author:** ![aurangzeb099](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@aurangzeb099](https://community.influxdata.com/u/aurangzeb099)\
**Post date:** [November 3, 2023, 1:06pm UTC](https://community.influxdata.com/t/inputs-in-telegraf-config-will-be-running-in-parallel-or-sequential/32039/3 "2023-11-03T13:06:27Z")

</div>

can i define different interval time for different snmp.input ?

---

<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:** [November 3, 2023, 1:18pm UTC](https://community.influxdata.com/t/inputs-in-telegraf-config-will-be-running-in-parallel-or-sequential/32039/4 "2023-11-03T13:18:31Z")

</div>

Yes, there are [input-specific config options](https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#input-plugins). For example:

```toml
[[inputs.snmp]]
  interval = "1m"
[[inputs.snmp]]
  interval = "2m"
[[inputs.snmp]]
  interval = "3m"

```

---

<div class="post-metadata">

**Author:** ![aurangzeb099](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@aurangzeb099](https://community.influxdata.com/u/aurangzeb099)\
**Post date:** [November 3, 2023, 1:24pm UTC](https://community.influxdata.com/t/inputs-in-telegraf-config-will-be-running-in-parallel-or-sequential/32039/5 "2023-11-03T13:24:32Z")

</div>

when i am running 1st inputs.snmp with interval 30s its working fine. than after disabling 1st i am running 2nd inputs.snmp with interval 20s its working also working fine.  
But when i am running both enabled with

```auto
[[inputs.snmp]]
  interval = "30s"
[[inputs.snmp]]
  interval = "20s"

```

its giving me

```auto
Collection took longer than expected; not complete after interval

```

---

<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:** [November 3, 2023, 1:26pm UTC](https://community.influxdata.com/t/inputs-in-telegraf-config-will-be-running-in-parallel-or-sequential/32039/6 "2023-11-03T13:26:03Z")

</div>

What happens if you increase the intervals on both? Can you please share your config to get an idea of what you are trying to do.

Additionally, have you read and applied the various best practices: [Telegraf Best Practices: SNMP Plugin | InfluxData](https://www.influxdata.com/blog/telegraf-best-practices-snmp-plugin/)
