Created
December 3, 2013 08:54
-
-
Save srenatus/7766074 to your computer and use it in GitHub Desktop.
Trying Riemann with OSv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name" : "Riemann 0.2.4", | |
"main" : "riemann.bin", | |
"args" : ["-server", "-Xms1024m", "-Xmx1024m", "-XX:+UseParNewGC", "-XX:+UseConcMarkSweepGC", "-XX:+CMSParallelRemarkEnabled", "-XX:+AggressiveOpts", "-XX:+UseFastAccessorMethods"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; -*- mode: clojure; -*- | |
; vim: filetype=clojure | |
(logging/init :file "/var/log/riemann.log") | |
;(logging/init) ; stdout | |
(repl-server :host "0.0.0.0") | |
; 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)) | |
; Expire old events from the index every 5 seconds. | |
(periodically-expire 5) | |
; Keep events in the index for 5 minutes by default. | |
(let [index (default :ttl 300 (update-index (index)))] | |
; Inbound events will be passed to these streams: | |
(streams | |
; Index all events immediately. | |
index | |
; Calculate an overall rate of events. | |
(with {:metric 1 :host nil :state "ok" :service "events/sec"} | |
(rate 5 index)) | |
; Log expired events. | |
(expired | |
(fn [event] (info "expired" event))) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment