#19749·telegraf

Unable to have optional inputs in config

Author: cwchristerwCreated Sep 19, 2026Updated Sep 22, 2026
Labelsbugwaiting for response

Relevant telegraf.conf

toml
[[inputs.docker]]
    endpoint = "tcp://server.devices.example.com:2376"
    container_name_exclude = ["*_*"]
    timeout = "30s"
    total_include = ["cpu", "blkio", "network"]
    insecure_skip_verify = true
    startup_error_behavior = "retry"

[[inputs.docker]]
    endpoint = "tcp://laptop.devices.example.com:2376"
    container_name_exclude = ["*_*"]
    timeout = "30s"
    total_include = ["cpu", "blkio", "network"]
    insecure_skip_verify = true
    startup_error_behavior = "retry"

Logs from Telegraf

-

System info

Telegraf 1.40.0

Docker

No response

Steps to reproduce

  1. Create config with multiple docker inputs and defining startup_error_behaviour = "retry".
  2. Start Telegraf in Docker container

...

Expected behavior

I would expect it skip plugins that fail and retry periodically. If laptop is offline and server is online, telegraf would connect to server and get data from it. When laptop is online connection is established with it also. Using ignore doesn't also work because it will not retry again when laptop is available after startup has disabled it.

Actual behavior

Telegraf will not connect to any docker inputs if one input unavailable.

Additional info

No response