crankydillo / riemann-monitor

Submits riemann events as long as the process it launches is running.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Submits riemann events as long as the process it launches is running.

I should work on a fork of this project; however, I couldn't get it to 'build' and I only have a few hours to work on this. Beyond existing functionality, I'm assuming python would have a much smaller footprint than a JVM application, which is a very desirable feature for this type of app. Submitted this issue.

A big issue will be how much OS resources we use..

Install

I only have a snapshot deployed. Instructions for linux/mac. Install Java 8. Have write permisions to /opt.

curl -L "http://oss.sonatype.org/service/local/artifact/maven/content?r=snapshots&g=org.beeherd.riemann&a=riemann-monitor&e=zip&v=LATEST" > riemann-monitor-latest-snapshot.zip
unzip riemann-monitor-latest-snapshot.zip -d /opt/
export PATH=/opt/riemann-monitor-0.0.1-SNAPSHOT/bin:$PATH
riemann-monitor

Development

Need a riemann server?

Do what you want, but you can use this. Install docker. Then

cd docker/riemann-server
./build.sh
./run-server.sh

Building

mvn compile

Running

Assuming you have riemann listening to port 5555 on localhost. The command assumes bash/sh/etc (something that has sleep 30).

mvn compile
mvn exec:java -Dexec.args="localhost 5555 riemann-cli-monitor 5 -- sleep 30"

SBT

I often use SBT if I'm doing a vim+tmux thing. It's there if you want it. At time of writing, I'm using sbt 0.13.13.

On riemann

Good article on how riemann uses a push-based system for determining system anomalies.

About

Submits riemann events as long as the process it launches is running.

License:Apache License 2.0


Languages

Language:Scala 55.1%Language:Clojure 24.1%Language:Shell 20.8%