mdawar / rq-exporter

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

Running exporter for multiple DBs within same Redis instance #26

Closed dipeshprajapatixoxoday closed 1 year ago

dipeshprajapatixoxoday commented 1 year ago

First of all, thank you very much for sharing this with community.

I have one question here, how can I run the exporter for multiple DBs within the same redis instance? Thanks.

mdawar commented 1 year ago

Hi,

You have to run multiple instances of the exporter each one configured to use a separate db number.

If the exporter instances are running on the same host, you might also want to use a separate port for each exporter using the -p, --port cli arguments or RQ_EXPORTER_PORT env variable.

I hope that helps.

dipeshprajapatixoxoday commented 1 year ago

@mdawar This works. Thank you.