artemantipov / cron-prom

Simple Go cron with prometheus metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cron-prom

Simple Go-cron based on https://github.com/robfig/cron with prometheus metric of failed jobs count.

Possible environment variables

  • CRON_JOB_* - define cron job (e.g. CRON_JOB_Bla="* * * * * do foo --bar) (required)
  • METRICS_PORT - default is 1221 (optional)
  • METRICS_URL - default /metrics (optional)
  • METRIC_PREFIX - default metric name is cron_jobs_failed (e.g METRIC_PREFIX="foo_" > foo_cron_jobs_failed) (optional)

About

Simple Go cron with prometheus metrics


Languages

Language:Go 88.7%Language:Dockerfile 11.3%