django-rq icon indicating copy to clipboard operation
django-rq copied to clipboard

can we expose /metrics in django-rq?

Open laixintao opened this issue 3 years ago • 3 comments

Hi, I want to use Prometheus to collect metrics of rq.

we have https://github.com/mdawar/rq-exporter already, but I don't like the idea that we need to a separate wsgi app(process) to achieve this, since we already have django.

Can we expose metrics from django-rq?

laixintao avatar Aug 10 '21 07:08 laixintao

Definitely, can you open a PR for this? Probably a simple view displaying metrics for one of the selected queues.

selwin avatar Aug 24 '21 00:08 selwin

OK for queues I want to make it default to expose all queues but configurable via settings.

laixintao avatar Aug 24 '21 07:08 laixintao

I think having this as a config is not very useful. Better to show all queues and allow users to select which queues they want to show and refresh the page.

On Aug 24, 2021, at 2:12 PM, laixintao @.***> wrote:

 OK for queues I want to make it default to expose all queues but configurable via settings.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

selwin avatar Aug 24 '21 07:08 selwin