riemann-dash/README.markdown

76 lines
1.9 KiB
Markdown
Raw Normal View History

2012-02-24 07:53:45 +00:00
Riemann-Dash
============
2012-02-18 23:22:24 +00:00
2015-03-23 15:20:00 +00:00
Remark: the riemann config is the file `riemann.config`.
2015-03-23 15:18:11 +00:00
It contains alert rules.
Riemann-Dash is a javascript, websockets-powered dashboard for Riemann.
2012-02-18 23:22:24 +00:00
Get started
==========
2012-02-18 23:22:24 +00:00
``` bash
2013-03-11 20:07:41 +00:00
$ gem install riemann-dash
$ riemann-dash
```
2012-02-18 23:22:24 +00:00
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.
2012-02-18 23:22:24 +00:00
Configuring
===========
2012-02-18 23:22:24 +00:00
2012-02-24 07:53:45 +00:00
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
2014-06-04 22:13:26 +00:00
Dash class, and hence, all Sinatra configuration. You'll find a few usage
examples in "example/config.rb".
2012-02-18 23:22:24 +00:00
``` ruby
2013-09-06 17:45:42 +00:00
set :port, 6000 # HTTP server on port 6000
set :bind, "1.2.3.4" # Bind to a different interface
config[:ws_config] = 'custom/config.json' # Specify custom workspace config
```
2013-03-11 10:26:30 +00:00
Putting in production
=====================
2013-03-11 10:26:30 +00:00
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
```
2013-03-11 10:26:30 +00:00
2014-09-17 08:06:50 +00:00
Riemann-dash can also run in a web server supporting the Rack interface. An
example rackup app is found in "example/config.ru".
2013-03-11 10:26:30 +00:00
Development
===========
2013-03-11 20:07:41 +00:00
$ git clone git://github.com/aphyr/riemann-dash.git
2013-03-11 10:26:30 +00:00
$ cd riemann-dash
$ bundle
2013-03-11 10:30:16 +00:00
2013-03-11 11:32:44 +00:00
Testing
=======
# run tests
$ sh/test
2013-03-11 10:30:16 +00:00
Releasing
==========
$ rake build
2013-03-11 11:10:34 +00:00
$ rake release
REPL
====
$ sh/c
> irb :001 > Riemann::Dash::VERSION
2013-09-06 17:45:42 +00:00
> => "0.2.2"