Git Product home page Git Product logo

buche's Introduction

Buche

Permite enviar peticiones a servicios y notificar cuando no responden adecuadamente.

Hay tres componentes:

  1. Servidor con API para acceder a los datos.
  2. Sitio web para administrar los recursos y ver su estado.
  3. Proceso que verifica el estado de los recursos

Configuración

La configuración esta en el archivo buche_config.js.

Se deben configurar los datos de conexión con MongoDB.

Servidor de API

Los datos de los recursos y su estado estan almacenados en una base de datos MongoDB.

Para poder acceder a estos datos se debe iniciar el servidor que expone la API:

% node api_server.js

Este servidor escucha peticiones en localhost:42024

Esquema de datos

Recursos

Los recursos son entidades que responden a peticiones de red y deben ser monitoreados.

Ejemplo:

[
    {
        "_id": "58dfc56f02885b2aeb30fcf9",
        "name": "4097",
        "host": "54.173.171.58",
        "port": 4097,
        "send": "PING",
        "expect": "PONG",
        "email": "[email protected]",
        "checkInterval": 1,
        "lastStatus": "n",
        "lastResponseTime": 0.42,
        "lastCheck": "2017-04-01T15:21:19.009Z",
        "createdAt": "2017-04-01T15:21:19.009Z",
        "updatedAt": "2017-04-01T15:21:19.009Z"
    }
]

Los status posibles son:

{
    "n": "new",
    "w": "waiting",
    "o": "ok",
    "f": "fail"
}

buche's People

Contributors

fcasco avatar

Watchers

James Cloos avatar  avatar

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.