Skip to content

collection_jitter = "0s" per plugin doesn't disable jitter #18517

@redbaron

Description

@redbaron

Relevant telegraf.conf

[agent]
interval = "60s"
precision = "60s"
collection_jitter = "10s"
flush_interval = "10s"

[[inputs.internal]]
collect_memstats = false
collection_jitter = "0s"

Logs from Telegraf

-

System info

Telegraf 1.38.0

Docker

No response

Steps to reproduce

  1. have collection_jitter = "10s" in the [agent] section
  2. try to disable jitter per-input using collection_jitter = "0s"
  3. observer that said input still runs with global jitter
    ...

Expected behavior

have a way to disable jitter

Actual behavior

I have to set collection_jitter = "1ms" to effectively disable it. I suspect truly 0 value is treated as unset somewhere.

Additional info

No response

Metadata

Metadata

Assignees

Labels

bugunexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions