Advertisement
Hanynowsky

Riemann PD Integration

Nov 28th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (def pdalert
  2.   (where (state "critical")
  3.          (throttle 3 3600
  4.                    (rollup 1 3600
  5.                            (email "monitoring@gomycomp.org")))))
  6.  
  7. ; PagerDuty Integration with Time Persistence threshold
  8. (streams
  9.   (stable (* 1 60) :state
  10.           (let [pd (pagerduty "78e8bec940214cfa9905a1d01264de2de")]
  11.             (changed-state
  12.               (where (state "ok") (:resolve pd))
  13.               (where (state "critical") (:trigger pd)))))
  14.  )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement