Last active
August 29, 2015 14:22
-
-
Save jamtur01/44946451361f4db22798 to your computer and use it in GitHub Desktop.
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
(include "/etc/riemann/mycorp/process.clj" | |
(ns mycorp.queue | |
"Instrumentation and alerts for our distributed queue and consumers" | |
(:require [riemann.config :refer :all] | |
[riemann.streams :refer :all] | |
[mycorp.process :refer :all])) | |
(defn capacity [index pagerduty] ...) | |
(defn rate-of-growth [index pagerduty] ...) | |
(defn queues | |
"Handles all queuing events." | |
[index pagerduty] | |
; We'll just route all events to each of these streams | |
(sdo | |
(capacity index pagerduty) | |
(rate-of-growth index pagerduty))) |
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 | |
(include "/etc/riemann/mycorp/") | |
(require '[examplecom.monitoring.services :as monitoring]) | |
. . . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I don't have the (include) in queue.clj it can't find the mycorp.process namespace.