閱讀987 返回首頁    go 阿裏雲 go 技術社區[雲棲]


clj.monitor : monitoring applications in clojure based on SSH


    My weekend project clj.monitor is beta release,it's a clojure DSL for monitoring system and applications based on SSH.

Home:https://github.com/killme2008/clj.monitor

An example:
(ns clj.monitor.example
  (:use [clj.monitor.core]
        [control.core]
        [clj.monitor.tasks]))

;;define a mysql cluster
(defcluster mysql
  :clients [{:user "deploy" :host "mysql.app.com"}])

;;define a monitor for mysql cluster
(defmonitor mysql-monitor
  :tasks [(ping-mysql "root" "password")
            (system-load :5 3)]
  :clusters [:mysql])

;;start monitors
(start-monitors
 :cron "* 0/5 * * * ?"
 :alerts [(mail :from "alert@app.com" :to "yourname@app.com")]
 :monitors [mysql-monitor])


API document: https://fnil.net/clj.monitor

It is just a beta release,if you have any questions or find issues ,please let me know,thanks.

文章轉自莊周夢蝶  ,原文發布時間2012-05-12

最後更新:2017-05-18 20:36:58

  上一篇:go  5月17日雲棲精選夜讀:分布式大數據係統巧實現,全局數據調度管理不再難
  下一篇:go  Spring Boot 整合 Redis 實現緩存操作