Coder Social home page Coder Social logo

process-monitor's Introduction

Monitor app

A minimal IOLoop PeriodicCallback based application for monitoring database connection status. Runs a Tornado application on port 9999 and periodically checks for the global database object's status every 500ms.

On success/failure, initiates a specific notifier action as specified in one of the helper methods.

From a python shell,

from app import run_api
run_api()

From the terminal, using a virtual environment for the app.

PY_VERSION=3.6 ./scripts/setup
PY_VERSION=3.6 ./scripts/run
Trigger methods
# Update this method to trigger a custom notification/processing flow
# on a monitored process' downtime.
def notify_monitor_error(monitor_error):
    """."""
    pass
# Update this method to trigger a custom notification/processing flow
# when the monitored process is back up
def notify_monitor_success():
    """."""
    pass
# Update this method to trigger a custom check for any specific process.
def run_periodic():
    """."""
    pass

process-monitor's People

Contributors

techiev2 avatar onstash avatar

Watchers

 avatar James Cloos avatar

Forkers

onstash

process-monitor's Issues

Setup script fallbacks - System installation flows

Add flows to install system packages from source instead of depending on a singular apt-get install

  • A way to abstract installation to work with other OSs - either from source, or a fallback based run through OSs.

  • A way to install the requested Python version if it is not found, based on the previous flow.

Configurable connectivity options

The database in the app is a local mongo database. Need to add ways to configure database connections and a way to plug and play with other databases/services as the monitoring source.

Notification back end for the app

As it stands, the app debug prints the monitored process failure/return states. A way to plug a notification back end (email/slack/other) needs to be provided through an easily consumable API.

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.