Skip to content
Snippets Groups Projects
README.markdown 1.82 KiB
Newer Older
Aphyr's avatar
Aphyr committed
Riemann-Dash
============
Aphyr's avatar
Aphyr committed

Aphyr's avatar
Aphyr committed
A javascript, websockets-powered dashboard for Riemann.
Aphyr's avatar
Aphyr committed

Get started
==========
Aphyr's avatar
Aphyr committed

``` bash
Roman Heinrich's avatar
Roman Heinrich committed
    $ gem install riemann-dash
    $ riemann-dash
Then open http://localhost:4567 in a browser. Riemann-dash will connect to the
local host (relative to your browser) by default, and show you a small manual.
Change the IP address in the top right field to point to your Riemann server's
websocket port.
Configuring
===========
Aphyr's avatar
Aphyr committed
Riemann-dash takes an optional config file, which you can specify as the first
command-line argument. If none is given, it looks for a file in the local
directory: config.rb. That file can override any configuration options on the
Dash class, and hence, all Sinatra configuration. You'll find a few usage
examples in "example/config.rb".
``` ruby
set :port, 6000      # HTTP server on port 6000
Michael Fairley's avatar
Michael Fairley committed
set :bind, "1.2.3.4" # Bind to a different interface
config[:ws_config] = 'custom/config.json' # Specify custom workspace config
Roman Heinrich's avatar
Roman Heinrich committed

Putting in production
=====================
Roman Heinrich's avatar
Roman Heinrich committed

If you expect more than a couple of simultaneous users, you should consider
running Riemann-dash in a proper application server. The easiest way is to
install thin or puma. Riemann-dash will automatically use one of them if they
are present. You'll need the C/C++ compiler, as well as the ruby and openssl
libraries and headers installed.

``` bash
    $ gem install riemann-dash thin
    $ riemann-dash
```
Roman Heinrich's avatar
Roman Heinrich committed

Marc Fournier's avatar
Marc Fournier committed
Riemann-dash can also run in a web server supporting the Rack interface. An
example rackup app is found in "example/config.ru".

Roman Heinrich's avatar
Roman Heinrich committed
Development
===========

Roman Heinrich's avatar
Roman Heinrich committed
    $ git clone git://github.com/aphyr/riemann-dash.git
Roman Heinrich's avatar
Roman Heinrich committed
    $ cd riemann-dash
    $ bundle
Roman Heinrich's avatar
Roman Heinrich committed
Testing
=======
    # run tests
    $ sh/test

Roman Heinrich's avatar
Roman Heinrich committed
Releasing
==========
    $ rake build
Roman Heinrich's avatar
Roman Heinrich committed
    $ rake release

REPL
====
    $ sh/c
    > irb :001 > Riemann::Dash::VERSION
    > => "0.2.2"