Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timer: Add immediate option to timer_execute #1504

Open
repeatedly opened this issue Mar 15, 2017 · 1 comment
Open

timer: Add immediate option to timer_execute #1504

repeatedly opened this issue Mar 15, 2017 · 1 comment
Assignees

Comments

@repeatedly
Copy link
Member

Enhancement request for input plugins.
By default, PluginHelper::Timer#timer_execute launches timer immediately.
This is no problem on almost cases but some plugins, e.g. in_tail, takes long time in start by executing code.
To avoid this problem, delaying timer execution mitigates this situation.

See also: #1502

@fujimotos
Copy link
Member

fujimotos commented Jan 7, 2022

FWIW, I also want to use this option in Windows exporter.

  • We use timer_execute to periodically collect system metrics (default interval is 60s).
  • I feel the current user experience is sub-optimal, because our user needs
    to wait 1 minute to confirm that the plugin is actually working.

I was considering to migrate to manual timer implementation because of this issue,
but it is preferable if timer_execute supports immediate option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

4 participants