Giter Site home page Giter Site logo

status's Introduction

About application

Status is a rails based application for web services uptime and load time monitoring. It builds smart charts for the reports and has background scripts to ping and log services each minute.

Getting Started

Initialize and migrate database:

bundle
rake db:create
rake db:migrate

Generate some fake data:

rake db:seed

Data generating will spend some time. You could set days period for data generator by setting PAST_DAYS environment variable to any value:

PAST_DAYS=7 rake db:seed # generate data for one week

Then launch rails server, redis, clockwork and sidekiq:

rails s
redis-server
clockwork app/workers/clockwork.rb
sidekiq

Using cached version:

Plots generation spends a lot of time. If you don’t want to wait the page loads (obviously) you could use “with_cache” code branch. Cache updates every 10 minutes. So, after all scripts (rails, sidekiq, clockwork) are launched you need to wait some time until cache is written.

Tests

If you want to run specs, you need to create config/database.yml configuration file first. Then everything is as usual:

RAILS_ENV=test rake db:migrate
rspec spec/

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.