guillaumeger / resque_exporter

Prometheus exporter for resque metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

resque_exporter

This will expose metrics from resque in a prometheus format. It gathers metrics by reading from the resque backend, redis.

configuration

All the configuration is done via environment variables. The following env vars are available:

variable name purpose default value
RESQUE_EXPORTER_REDIS_HOST hostname of ip of redis localhost
RESQUE_EXPORTER_REDIS_PORT port where redis is listening 6379
RESQUE_EXPORTER_REDIS_PASSWORD password to connect to redis ""
RESQUE_EXPORTER_REDIS_NAMESPACE namespace(prefix) of redis keys resque
RESQUE_EXPORTER_REDIS_DB database to read 0
RESQUE_EXPORTER_RESQUE_STATS_METRICS if the gem resque-job-stats is installed you can expose its metrics false

exposed metrics

The following metrics are exposed:

metric name type help
resque_workers gauge Number of workers
resque_workers_working gauge Number of workers currently working
resque_queue_jobs{queue="queuename"} gauge Number of jobs in queue
resque_jobs_processed_total counter Total number of processed jobs
resque_jobs_failed_total counter Total number of failed jobs
resque_failed_queue gauge Number of jobs in the failed queue
resque_job_completed{job="job_name"} gauge Number of times the job has successfully completed (from resque-job-stats)
resque_job_enqueued{job="job_name"} gauge Number of times the job has been enqueued (from resque-job-stats)
resque_job_failed{job="job_name"} gauge Number of times the job has failed (from resque-job-stats)

About

Prometheus exporter for resque metrics


Languages

Language:Go 95.9%Language:Makefile 3.5%Language:Dockerfile 0.6%