; vim: filetype=clojure
(logging/init {:file "riemann.log"})
(require '[riemann.influxdb :as influxdb])
; Listen on the local interface over TCP (5555), UDP (5555), and websockets
; (5556)
(let [host "127.0.0.1"]
(tcp-server {:host host})
(udp-server {:host host})
(ws-server {:host host}))
; Expire old events from the index every 5 seconds.
(periodically-expire 5)
(streams
(where (service "MyService")
(fn[event]
(let [client (influxdb/influxdb-9 {
:username "test"
:password "test"
:scheme "http"
:host "localhost"
:port 8086
:db "riemann"
:tag-fields #{:tagfield}})]
(client event)))))
And my event look like (posting with riemann client)
r << {host:"a",service:"MyService",metric:1.0, tagfield:'mine',ttl:30}
Thanks,
-Mani
--
You received this message because you are subscribed to a topic in the Google Groups "Riemann Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/riemann-users/k6O16QN5jb0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to riemann-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.