Code Monkey home page Code Monkey logo

health_api's Introduction

Simple web API that check the health of services

Prerequisites

  • nodejs >= 0.10.24

Install

[sudo] bash -c "$(curl -fsSL https://raw2.github.com/Wiredcraft/health_api/master/install.sh)"

Access

  • Http port - default: 5002
  • username - default: wiredcraft
  • password - default: prompted on install - then visible in init script

curl example

curl -u user:pass http://127.0.0.1:5002/{component}
# or 
curl http://user:[email protected]:5002/{component}

Supporting checks

Component Description
redis Checking if the local tcp port 6379 can be access
couchdb Checking if the local http port 5984 can be access
couchbase Checking if the local http port 8091 can be access
elasticsearch Checking if the local http port 9200 can be access
http Checking if the local http port 80 can be acccess
https Checing if the local http port 443 can be access
mongooseim Checking if the local tcp port 5222 can be access
api Checking if the local api end point http://127.0.0.1:3000/ping return correct message pong

health_api's People

Contributors

kuno avatar zbal avatar

Watchers

Makara Wang avatar  avatar YukiGu avatar Jonathan Dai avatar Quentin Berder avatar  avatar  avatar Marcio avatar Stelios avatar James Cloos avatar Juha avatar haishan avatar tomisacat avatar Fraser Xu avatar Fred Wang avatar Frank Dou avatar Manuel Villing avatar Aleksi Pekkala avatar 孙松 avatar Chopper Lee avatar Xavier Zhou avatar Baruch Berger avatar Benjamin avatar Wei avatar Borat avatar Jamie Stobbs avatar QingFeng avatar  avatar Kate Wu avatar meggery avatar  avatar Wang Zixiao avatar Charlie Li avatar fawzi bedidi avatar Ville Välimaa avatar Tommy avatar Jiaxi Zhang avatar Ray Wang avatar Kaleo avatar Lennon Cheng avatar Jack Z avatar mikelhsia avatar JohnnyGu avatar David Guan avatar Vera avatar John Roberts avatar Mary avatar Leo Zhou avatar  avatar  avatar Iris avatar Hazel Yang avatar Jonathan avatar Peter Pierzchanowski avatar Ilya Mochalov avatar Coco avatar JasonWang avatar XERO avatar xiaotian avatar  avatar VincentXiang avatar natalia avatar  avatar

health_api's Issues

Self healing API

Several times, on octokan, the health API got stuck because ... The symptoms are simple:

  • TCP port remains open,
  • auth is not prompted
  • returns NO data

Adding a simple external check / cron that will check on the API health and would:

  • restart whi-server service on failure

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.