No stats displayed
Closed this issue · 1 comments
ssimeonov commented
Redmon mounted in a Rails app is showing no stats. The following video shows the behavior: http://screencast.com/t/mVQk1RxF
Basic diagnostics:
- Redmon is connected to the right database.
- http://localhost:3000/admin/redmon/stats?count=100 returns
[]
- There are no errors in the logs and the Charles web proxy shows all requests succeeding
Rails configuration code:
# config/routes.rb
mount Redmon::App => '/admin/redmon/'
# config/initializers/redmon.rb
Redmon.configure do |config|
config.redis_url = "redis://127.0.0.1:6379/0"
config.namespace = 'redmon'
config.poll_interval = 10
end
steelThread commented
I think the readme is a little misleading here. When mounting in this fashion the worker that gathers the redis stats is not started. The readme does include the poll interval which implies that the periodic worker runs. In any case ff you want to run the worker you can give it a try using a railtie. I honestly haven't tried it so let me know if you run into any issues.
You can always kick off the worker from the command line, which I would probably do if I was mounting redmon in a rails app.
$ redmon --no-app