Skip to content

helpshift/sensu-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sensu-client

A library to send alerts to sensu-client.

Installing

Clojars Project

Usage

For sensu-core

    '(require [sensu-client.core :as sensu])

    (sensu/send-alert :critical "host2 is down"
                      :host "sensu.company.com"
                      :port 3030
                      :name "host2-uptime-check"
                      :refresh 60
                      :occurrences 1
                      :proto :udp)

For sensu-go

    '(require [sensu-client.core :as sensu])

    (sensu/send-alert-sensu-go :critical "host2 is down"
                               :host "sensu.company.com"
                               :port 3031
                               :name "host2-uptime-check"
                               :labels {:contacts "team"})

Please refer this for more details.

License

Copyright © 2014 Helpshift Inc.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Clojure lib to send metrics to Sensu

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6