Skip to content

Instantly share code, notes, and snippets.

@jamtur01
Last active August 29, 2015 14:22
Show Gist options
  • Save jamtur01/44946451361f4db22798 to your computer and use it in GitHub Desktop.
Save jamtur01/44946451361f4db22798 to your computer and use it in GitHub Desktop.
(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)))
; -*- mode: clojure; -*-
; vim: filetype=clojure
(include "/etc/riemann/mycorp/")
(require '[examplecom.monitoring.services :as monitoring])
. . .
@jamtur01
Copy link
Author

jamtur01 commented Jun 3, 2015

If I don't have the (include) in queue.clj it can't find the mycorp.process namespace.

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