Skip to content

Instantly share code, notes, and snippets.

@nickchappell
Created June 17, 2014 05:34
Show Gist options
  • Save nickchappell/63c5dffc2c8b791ab64c to your computer and use it in GitHub Desktop.
Save nickchappell/63c5dffc2c8b791ab64c to your computer and use it in GitHub Desktop.
riemann influxdb config
(let [index (index)]
; Inbound events will be passed to the functions that come after (streams...
(streams
;This is one function. Index all events immediately.
index
;For each distinct host and service combination
(by [:host :service]
;Send events to InfluxDB
(influxdb
(let [servicename (:service event)
hostname (:host event)]
{:host "10.0.1.195"
:port 8086
:scheme "http"
:username "nick"
:password "password"
:db "riemann-data"
:series (clojure.string/join "." [(:host event) (:service event)])}))
;Just for debugging, log all events to the log file specified above in "(logging/init...."
#(info %)))
@Sravan0124
Copy link

Hi nickchappel i have doubt please help me out

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