Skip to content

Proposal: Cronsyntax interval #22826

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

Open
lublak opened this issue Apr 7, 2025 · 0 comments
Open

Proposal: Cronsyntax interval #22826

lublak opened this issue Apr 7, 2025 · 0 comments
Labels
type: feature A value-adding code addition that introduce new functionality.

Comments

@lublak
Copy link

lublak commented Apr 7, 2025

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Use Cases

Currently we can define "only" exec_interval_secs.
In https://vector.dev/docs/reference/configuration/sources/exec/
And https://vector.dev/docs/reference/configuration/sources/http_client/#scrape_interval_secs
And here: https://vector.dev/docs/reference/configuration/sources/apache_metrics/#scrape_interval_secs
etc.
It would be a really nice thing to write something like that:

at every 30 minutes
sec   min   hour   day of month   month   day of week   year
*      */30  *          *                         *             *                       *

Attempted Solutions

For example the http client and the exec client:
I mostly know the time when i can pull the data from this sources.
There is currently no possibility of setting fixed time values.

Proposal

  • Add scrape_interval_cron and exec_interval_cron
  • Add a mode option: "cron"

References

No response

Version

0.45.0

@lublak lublak added the type: feature A value-adding code addition that introduce new functionality. label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

1 participant