Skip to content

Unable to have optional inputs in config #19749

Description

@cwchristerw

Relevant telegraf.conf

[[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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugunexpected problem or unintended behaviorwaiting for responsewaiting for response from contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions