This Heroku buildpack provides sidekiq metrics.
See also https://github.com/mperham/sidekiq/wiki/Monitoring
This buildpack does two things:
- Copies .profile.d/ruby-sidekiq-metrics.sh script into your slug
- 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 30 seconds and outputs the following log to stdout that is compatible with Librato Custom log-based metrics:
sample#sidekiq.default.size=0 sample#sidekiq.mailer.size=0
sample#sidekiq.default.latency=0 sample#sidekiq.mailer.latency=0
- bundler
- heroku/ruby buildpack
- sidekiq
SIDEKIQ_METRICS_DYNO(Default:web.1)- The Dyno name which the
sidekiq-metricsscript boot as daemon
- The Dyno name which the
SIDEKIQ_METRICS_INTERVAL(Default:30)- Polling interval (seconds) which the
sidekiq-metricsscript is called
- Polling interval (seconds) which the
SIDEKIQ_METRICS_TYPE(Default:sample)- You can set
sampleormeasure. Although you can setcount, it would not make sense for sidekiq metrics - See also Librato Custom log-based metrics
- You can set
$ heroku buildpacks:add https://github.com/feedforce/heroku-buildpack-sidekiq-metrics.git
{
"buildpacks": [
{
"url": "https://github.com/feedforce/heroku-buildpack-sidekiq-metrics.git"
}
]
}