Kue Prom
Provides promotheus metrics for Kue
Metrics:
- inactive job (gauge)
- active job (gauge)
- complete job (gauge)
- failed job (gauge)
- delayed job (gauge)
Usage
;; ; ; kueMetric.run; // Metrics result in Promotheus// my_app_pdf_job_inactive// my_app_pdf_job_active// my_app_pdf_job_complete// my_app_pdf_job_failed// my_app_pdf_job_delayed
API
init(options)
Initialize
options:
- jobName (required): kue job name
- queue (required): kue queue
- promClient (optional): prom client instance
- interval (optional, default 60000): interval in ms to fetch the Kue statistic
- prefixMetricName (optional): prefix for metric name
run()
Start running and fetching the data from Kue based on interval
stop()
Stop running
License
MIT © Budi Irawan