Giter Club home page Giter Club logo

ministryofjustice.dps-monitor's Introduction

DPS Monitoring

Monitoring for the DPS Services and Projects

The project is based on Smashing.

Installs

Packages needed

ruby
ruby-dev
build-essential
nodejs
(or equivalent for your platform)

e.g. For Ubuntu this was:

$ sudo apt-get install ruby ruby-dev build-essential nodejs

Build

$ sudo gem install bundler
$ sudo gem install smashing
$ cd dps-monitor/
$ rm Gemfile.lock   (will not build on some platforms without this - Ubuntu)
$ bundle install

Run

smashing start

Local

Deployment

All merges to main are built & deployed automatically to cloud platform

Further Reading on Smashing

Check out http://smashing.github.io/ for more information.

Deployment Configuration

Requires the following environment variables to be available locally when running: Get a Circle CI token from https://app.circleci.com/settings/user/tokens

  • CIRCLE_CI_TOKEN - a valid circle API access token

Run

CIRCLE_CI_TOKEN=************ smashing start

Dashboard Configuration

  1. Edit dashboards/circle.erb to add projects to the build monitor
  2. Edit dashboards/health.erb to add grid items for health checks
  3. Edit the projects element in jobs/circle_ci.rb to match your changes to CI statuses shown in circle.erb
  4. Edit the projects element in jobs/health.rb
  5. Edit dashboards/overview.erb to add production service info

Running Locally

To test the application it is best to run using docker

Build first

docker build -t dps-monitor .

Run:

docker run -p3030:3030 --env CIRCLE_CI_TOKEN=******* --name dps-monitor -d -t dps-monitor:latest

Test in browser:

http://localhost:3030

Stop:

docker stop dps-monitor
docker rm -vf dps-monitor

ministryofjustice.dps-monitor's People

Contributors

andrewrlee avatar andymarke avatar brightonsbox avatar connormaglynn avatar jamiedraperuk avatar louisenorris avatar mattops avatar mikehalmamoj avatar mjwillis avatar petergphillips avatar simonmitchellmoj avatar steverendell avatar timharrison-moj 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.