阅读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 实现缓存操作