mdawar / rq-exporter

Prometheus metrics exporter for Python RQ (Redis Queue).
MIT License
65 stars 28 forks source link

Average queue latency #24

Closed mkotsalainen closed 1 year ago

mkotsalainen commented 2 years ago

Hi! This project looks good. It would be good to get average latency per queue. I think it should be doable by exposing the total_working_time float that rq updates on every job.

Is this something that you've considered? If not, maybe I could try adding it.

mdawar commented 1 year ago

Hey, Actually I haven't thought about it before, and yes please feel free to add this metric, I honestly don't have any free time to do it. Thank you.

mkotsalainen commented 1 year ago

Ok here's the PR: https://github.com/mdawar/rq-exporter/pull/25

I'm running this on our servers.

mdawar commented 1 year ago

Thank you again for the contribution, I'll release a new version with these changes.