Skip to content

Instantly share code, notes, and snippets.

@alexshd
Last active August 29, 2015 13:57
Show Gist options
  • Save alexshd/9631615 to your computer and use it in GitHub Desktop.
Save alexshd/9631615 to your computer and use it in GitHub Desktop.
Riemann Workshop

The Riemann

Suggestion:

  • use some virtual machine
  • Download riemann
wget http://aphyr.com/riemann/riemann-0.2.4.tar.bz2
tar xvfj riemann-0.2.4.tar.bz2
cd riemann-0.2.4
  • learn clojure :)

to save time:

  • gem install riemann-tools --no-rdoc
  • gem install riemann-dash --no-rdoc

Starting riemann-dash:

riemann-dash

in the command line will start the dashboard on the default Sinatra port and bind to 127.0.0.1 .

To change that behaviour, in the directory you are running the command, make a config.rb file with:

set :port, <PORT>
set :bind, "<IP>"

the config file will be used automaticly as long as it in the working directory.

Starting Riemann server:

  • Download and extract ...
  • I the created directory run bin/riemann

The server will start on 127.0.0.1:5555 port. (netstat -nltp for validation) To change the address: In the file etc/riemann.config change the [host "<IP>"]

...
; Listen on the local interface over TCP (5555), UDP (5555), and websockets
; (5556)
(let [host "0.0.0.0"]
  (tcp-server :host host)
  (udp-server :host host)
  (ws-server  :host host))
...

Starting Riemann health agent

riemann-health -t linux-health -h <RIEMANN_SERVER>

@m1keil
Copy link

m1keil commented Mar 23, 2014

looks like riemann-dash not working with newer thin-2.0.0pre so you might want to downgrade it if you have issues running riemann-dash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment