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 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
- bundler
- heroku/ruby buildpack
- sidekiq
SIDEKIQ_METRICS_DYNO
(Default:web.1
)- The Dyno name which the
sidekiq-metrics
script boot as daemon
- The Dyno name which the
SIDEKIQ_METRICS_INTERVAL
(Default:60
)- Polling interval (seconds) which the
sidekiq-metrics
script is called
- Polling interval (seconds) which the
SIDEKIQ_METRICS_TYPE
(Default:sample
)- You can set
sample
ormeasure
. 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/jasonrudolph/heroku-buildpack-sidekiq-metrics.git
{
"buildpacks": [
{
"url": "https://github.com/jasonrudolph/heroku-buildpack-sidekiq-metrics.git"
}
]
}