The cronjob
input plugin generates events using robfig/cron package. Each job produces one event with cronjob.%job name%
routing key.
Job schedule
param accepts expression in used library format with seconds in first field.
Configuration
[[inputs]]
[inputs.cronjob]
# cron location in IANA format
# see more in https://pkg.go.dev/time#LoadLocation
location = "UTC"
# a list of scheduled jobs
[[inputs.cronjob.jobs]]
# job name, used in routing key of generated event
name = "partition.create"
# job schedule
schedule = "0 0 0 * * *"
[[inputs.cronjob.jobs]]
name = "healthcheck.notify"
schedule = "@every 10s"