Git Product home page Git Product logo

anteye's Introduction

anteye

anteye is a small and simple monitor system. anteye should monitor cluster less then 50 instances. it can send notice msgs via mailsms or callback(TODO).
we suggest you deploy more than one anteye instances in the production environment.

install

You can install anteye from the latest release,

# download release
wget -q https://github.com/niean/anteye/releases/download/v0.0.2/tycs-anteye-0.0.2.tar.gz
tar -zxf tycs-anteye-$vsn.tar.gz

# config, change configs as you like
mv cfg.example.json cfg.json
vim cfg.json
...

# start
./control start

# stop
./control stop

Or you can install anteye from scratch

# download src
cd $GOPATH/src/github.com/niean
git clone https://github.com/niean/anteye.git
cd anteye
go get ./...

# build, get bin tycs-anteye
./control build

# config, change configs as you like
mv cfg.example.json cfg.json
vim cfg.json
...

# start
./control start

# stop
./control stop

config

debug: true/false, open debug log or not

http
    - enable: true/false, enable http-server or not
    - listen: listening port of http-server

mail 
    - enable: true/false, enable sending alarm mails or not
    - url: http-url used to post mail content
    - receivers: mail accounts. if you have multiple accounts, then separate them by commas. eg. "[email protected],[email protected]"

sms
    - enable: true/false, enable sending alarm sms or not
    - url: http-url used to post sms content
    - receivers: mobile numbers. if you have multiple numbers, then separate them by commas. eg. "18001163876,13811685233"

callback
    - enable: true/false, enable alarm callback or not
    - url: http-url used to post alarm content

monitor
    - cluster: host instances to be monitored, one item goes like "module,hostname:port/health/url"

interface

anteye sends msgs via http interfaces. these interfaces defined as followings:

# sms interface
method: http.post
params:
  - tos: mobile numbers separated by commas
  - content: content of sms
  - from: optional, indicates who sends this sms 

# mail interface
method: http.post
params:
  - tos: mail accounts separated by commas
  - content: content of mail
  - subject: subject of mail
  - from: optional, indicates who sends this mail

# callback
method: http.post
params: body. anteye will post you a string object like '[date][status][err.cnt][instance]', eg. [2015-07-02 08:40:30][err][8][task,127.0.0.1:16269/health]

debug

# log
./test/debug tail

# get internal status
./test/debug counter

reference

anteye's People

Contributors

niean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anteye's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.