Code Monkey home page Code Monkey logo

magnificent-service-monitor's Introduction

Magnificent service monitor

This application checks Magnificent service frequently - at least several times a minute. It indicates how healthy the Magnificent service has been, over the last little while. It can also tell our system administrator if Magnificent has not been responding at all.

System administrator can see the result of monitoring in the next file: ./log/magnificent.log Application writes one log entry per each health check with the appropriate log level (Healthy: INFO, Unhealthy: WARN, Unavailable: ERROR).

Build

You can build this application using the next command:

mvn clean package

As a result of the program execution, an executable jar will be generated:

target/magnificent-service-monitor-VERSION-jar-with-dependencies.jar

Run

You can run this application using the next command:

java -jar magnificent-service-monitor-1.0-SNAPSHOT-jar-with-dependencies.jar

Or from your favourite IDE (just start main method from the code.codechallenge.Main class).

Configuration properties

The user is able to configure the service under monitoring (below you can see configuration properties and default values). monitoring.server.schedule.fixed.rate - This property is used to configure how frequently health check should be performed. monitoring.server.connection.timeout - This property is used to configure default connection timeout to the server.

monitoring.server.url=http://localhost monitoring.server.port=12345 monitoring.server.schedule.fixed.rate=10000 monitoring.server.connection.timeout=5000

Starting test server

Install Python. Python2 and Python3 both work. pip install twisted python server.py Okay, now you're running magnificent! Visit http://localhost:12345 in a web browser or something. It should throw a verbose error, or return "Magnificent!".

magnificent-service-monitor's People

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.