Skip to content

jasonrudolph/heroku-buildpack-sidekiq-metrics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku-buildpack-sidekiq-metrics

This Heroku buildpack provides sidekiq metrics.

See also https://github.com/mperham/sidekiq/wiki/Monitoring

How does it affect my slug?

This buildpack does two things:

  1. Copies .profile.d/ruby-sidekiq-metrics.sh script into your slug
  2. Copies sidekiq-metrics script into your slug

The .profile.d/ruby-sidekiq-metrics.sh script starts the sidekiq-metrics script on web.1 Dyno boot.

The sidekiq-metrics script is called every 60 seconds and outputs the following log to stdout that is compatible with Librato Custom log-based metrics:

source=default sample#sidekiq.queue.size=42 sample#sidekiq.queue.latency=1
source=mailer sample#sidekiq.queue.size=3 sample#sidekiq.queue.latency=0

Requirements

Customize

  • SIDEKIQ_METRICS_DYNO (Default: web.1)
    • The Dyno name which the sidekiq-metrics script boot as daemon
  • SIDEKIQ_METRICS_INTERVAL (Default: 60)
    • Polling interval (seconds) which the sidekiq-metrics script is called
  • SIDEKIQ_METRICS_TYPE (Default: sample)

Configure from CLI

$ heroku buildpacks:add https://github.com/jasonrudolph/heroku-buildpack-sidekiq-metrics.git

Configure from app manifest

{
  "buildpacks": [
    {
      "url": "https://github.com/jasonrudolph/heroku-buildpack-sidekiq-metrics.git"
    }
  ]
}

About

Heroku buildpack for collecting sidekiq metrics

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Ruby 53.8%
  • Shell 46.2%