steelThread / redmon

A web interface for managing redis: cli, admin, and live monitoring
http://steelthread.github.com/redmon/
1.57k stars 127 forks source link

No stats displayed #29

Closed ssimeonov closed 12 years ago

ssimeonov commented 12 years ago

Redmon mounted in a Rails app is showing no stats. The following video shows the behavior: http://screencast.com/t/mVQk1RxF

Basic diagnostics:

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 12 years ago

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