Alexand / sidekiq-prometheus-exporter-docker

This repo is simply to make the awesome sidekiq-prometheus-exporter gem available on an image already running on a Rack Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sidekiq-prometheus-exporter-docker

Containerized version of sidekiq-prometheus-exporter. Thanks @Stretch for providing this amazing gem.

How it works:

  • Tries to connect on redis:6379
  • Exposes rack server on port 9292
  • GET '/metrics' endpoint to serve the prometheus file
  • [Optional] accepts custom redis url by setting the env REDIS_URL
  • [Optional] accepts custom redis namespace by setting the env REDIS_NAMEPSACE

Usage Example

docker pull redis                     # if you don't have redis already running
docker run --name some-redis -d redis # if you don't have redis already running

docker pull alexand/sidekiq-prometheus-exporter
docker run -it --rm --link some-redis:redis -p 9292:9292 alexand/sidekiq-prometheus-exporter

curl localhost:9292/metrics 

License

Please see LICENSE for licensing details.

About

This repo is simply to make the awesome sidekiq-prometheus-exporter gem available on an image already running on a Rack Application


Languages

Language:Ruby 100.0%