Skip to content

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

Notifications You must be signed in to change notification settings

Alexand/sidekiq-prometheus-exporter-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages