Advertisement
Guest User

Untitled

a guest
Feb 10th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (let [index (index)]
  2.   (streams
  3.     (default :ttl 60
  4.       index
  5.  
  6.     (tagged "collectd"
  7.         (smap rewrite-service graph
  8.  
  9.         (by [:host :service]
  10.             (where (or (service "cpu/percent-idle") (service #"^ping-droprate.*"))
  11.                     #(info "BEFORE STABLE" (:host %) (:service %) "METRIC" (:metric %) "###" (:state %))
  12.                     (stable 180 :state
  13.                     #(info "STABLE" (:host %) (:service %) "METRIC" (:metric %) "###" (:state %))
  14.                         (changed-state {:init "ok"}
  15.                         #(info "CHANGED-STATE" (:host %) (:service %) (:metric %) (:state %))
  16.                         (throttle 50 3600
  17.                             (with :description "from monitor"
  18.                             (telegram {:token token :chat_id chat_id})))))))))
  19.                                                 )))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement