Coder Social home page Coder Social logo

resque_exporter's Introduction

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

Name Help Labels
resque_failed_job_executions_total Total number of failed job executions.
resque_failed_scrapes_total Total number of failed scrapes.
resque_job_executions_total Total number of job executions.
resque_jobs_in_failed_queue Number of jobs in a failed queue. queue
resque_jobs_in_queue Number of jobs in a queue. queue
resque_scrape_duration_seconds Time this scrape of resque metrics took.
resque_scrapes_total Total number of scrapes.
resque_up Whether this scrape of resque metrics was successful.
resque_workers Number of workers.
resque_working_workers Number of working workers.

Development

Building

make

Building Docker image

make docker

resque_exporter's People

Contributors

kaorimatz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.