Automattic / kue

Kue is a priority job queue backed by redis, built for node.js.
http://automattic.github.io/kue
MIT License
9.46k stars 867 forks source link

Reporting metrics to Graphite/StatsD #421

Open sebastianhoitz opened 10 years ago

sebastianhoitz commented 10 years ago

I'm currently thinking how I can report metrics to our graphite or statsd instance.

What would be a better solution? I could have a periodical push that sends the current counts of active, failed and completed jobs or I could send an increment on each job change.

What I like about the periodical push is, that I would definitely be notified about how many jobs are currently stuck. I could probably calculate that with a difference between the active and completed and failed jobs when I would increment them.

What solutions have you come up with?

behrad commented 10 years ago

It would be very nice if anybody could add a statsd/graphite/... plugin for kue. I would periodically push kue stats on them, which would cover 1) List of job types 2) total Number of subscribed workers on each job type 3) Job stats of each job type (inactive, active, failed, completed, delayed) 4) ...

I can provide you specific sources of this information within kue :)