Open ben5556 opened 7 months ago
Using latest docker image
It seems that you don't have any workers running and there are no jobs enqueued, this is the initial state when there are no metrics to display.
Take a look at the docker-compose.yml
file for a complete example, you can start an example dev environment using docker compose up
.
Thanks. I would expect it to show metric but with a value of 0 if there are no jobs enqueued ?
On Sat, 2 Dec 2023 at 5:54 PM, Pierre Mdawar @.***> wrote:
It seems that you don't have any workers running and there are no jobs enqueued, this is the initial state when there are no metrics to display.
Take a look at the docker-compose.yml https://github.com/mdawar/rq-exporter/blob/master/docker-compose.yml file for a complete example, you can start an example dev environment using docker compose up.
— Reply to this email directly, view it on GitHub https://github.com/mdawar/rq-exporter/issues/33#issuecomment-1837136352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJKLW7JVNUOBSV5ZKG6Y65DYHMMYBAVCNFSM6AAAAABADHNX52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGEZTMMZVGI . You are receiving this because you authored the thread.Message ID: @.***>
The Prometheus client automatically exports a 0 value for metrics without labels, all the metrics that you referred to have labels and are only exported when the data is available.
Thanks a lot. I will test this on production and let you know.
On Sat, 2 Dec 2023 at 6:24 PM, Pierre Mdawar @.***> wrote:
The Prometheus client automatically exports a 0 value https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics for metrics without labels, all the metrics that you referred to have labels and are only exported when the data is available.
— Reply to this email directly, view it on GitHub https://github.com/mdawar/rq-exporter/issues/33#issuecomment-1837142216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJKLW7MEHV535U4J775R6EDYHMQJZAVCNFSM6AAAAABADHNX52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGE2DEMRRGY . You are receiving this because you authored the thread.Message ID: @.***>
were you able to fix it?
The below metrics are not collected by the exporter
Debug logs of the container:
Metrics exposed by the exporter