Sign inSign up

kaorimatz/resque-exporter

By kaorimatz

Updated over 8 years ago

Prometheus exporter for Resque metrics.

Image
0

50K+

kaorimatz/resque-exporter repository overview

Resque Exporter

Prometheus exporter for Resque metrics.

Usage

./resque_exporter

By default, the resque exporter collects metrics from redis://localhost:6379. You can change it using the --redis.url flag.

./resque_exporter --redis.url redis://redis.example.com:6379/1

If REDIS_URL environment variable is given, it takes precedence over the --redis.url flag.

REDIS_URL=unix:///var/run/redis.sock ./resque_exporter

If your Resque is using a non-default namespace (default is resque) to prefix its Redis keys, specify the namespace using the --redis.namespace flag.

./resque_exporter --redis.namespace app
Flags
$ ./resque_exporter --help
Usage of ./resque_exporter:
  -redis.namespace string
        Namespace used by Resque to prefix all its Redis keys. (default "resque")
  -redis.url string
        URL to the Redis backing the Resque. (default "redis://localhost:6379")
  -version
        Print version information.
  -web.listen-address string
        Address to listen on for web interface and telemetry. (default ":9447")
  -web.telemetry-path string
        Path under which to expose metrics. (default "/metrics")
Docker

You can deploy the resque exporter using the kaorimatz/resque-exporter Docker image.

docker run -d -p 9447:9447 kaorimatz/resque-exporter --redis.url redis://redis.example.com:6379

Metrics

NameHelpLabels
resque_failed_job_executions_totalTotal number of failed job executions.
resque_failed_scrapes_totalTotal number of failed scrapes.
resque_job_executions_totalTotal number of job executions.
resque_jobs_in_failed_queueNumber of jobs in a failed queue.queue
resque_jobs_in_queueNumber of jobs in a queue.queue
resque_scrape_duration_secondsTime this scrape of resque metrics took.
resque_scrapes_totalTotal number of scrapes.
resque_upWhether this scrape of resque metrics was successful.
resque_workersNumber of workers.
resque_working_workersNumber of working workers.

Development

Building
make
Building Docker image
make docker

Tag summary

Content type

Image

Digest

Size

5.2 MB

Last updated

over 8 years ago

docker pull kaorimatz/resque-exporter