Giter VIP home page Giter VIP logo

heartcheck's Introduction

Heartcheck

Build Status

Check your applications' heart.

About

Endpoint JSON documentation:

https://github.com/locaweb/heartcheck/wiki/Endpoint-Json

How to setup

  1. Include the gem in your Gemfile:

    gem 'heartcheck'
    
  2. Install the gem:

    bundle install
    
  3. Generate some required files according to the framework you are using:

    heartcheck rails
    heartcheck padrino
    heartcheck sinatra
    
  4. After that, follow the instructions, edit the generated files and restart your server.

  5. Done! Now you are able to access [host]/monitoring and check the monitoring JSON!

Routes

  • [host]/monitoring
    • To check if the app and its integrations are avaiable;
    • Directed for verifying the app SLA;
  • [host]/monitoring/info
    • To view some informations that you can configure;
    • Directed for availability check from load balanced and get info about the installed app;
  • [host]/monitoring/functional
    • To check if the app is healty (no async job failed and other checks that aren't related to app availability);
    • Directed for verifying consistency problems within the app;
  • [host]/monitoring/dev
    • Directed for the development team;
    • It's run the essential and functional checks;
  • [host]/monitoring/health_check
    • To check if the app is up and running

How to use

You can see how to use in template that is generated when install: https://github.com/locaweb/heartcheck/blob/master/lib/heartcheck/generators/templates/config.rb

Git tags

Don't forget to tag your work! After a merge request being accepted, run:

1 - (git tag -a "x.x.x" -m "") to create the new tag. 2 - (git push origin "x.x.x") to push the new tag to remote.

Follow the RubyGems conventions at http://docs.rubygems.org/read/chapter/7 to know how to increment the version number. Covered in more detail in http://semver.org/

Merge requests acceptance

Don't forget to write tests to all your code. It's very important to maintain the codebase's sanity. Any merge request that doesn't have enough test coverage will be asked a revision

heartcheck's People

Contributors

brunoadacosta avatar marciotrindade avatar andrerocker 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.