Skip to content

Instantly share code, notes, and snippets.

@mfournier
Created March 14, 2014 17:34
Show Gist options
  • Select an option

  • Save mfournier/9552739 to your computer and use it in GitHub Desktop.

Select an option

Save mfournier/9552739 to your computer and use it in GitHub Desktop.
(by :service
(coalesce
(smap folds/sum (with {:host "total cluster" :state "ok"} index))
(smap
(fn [events]
(let [total (:metric (folds/sum events))]
(info total " " (type events) " " (map (fn [e] (:host e)) events))
;(info (map (fn [e] e) events))
)
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment