@pomby/pomby

0.6.4 • Public • Published

Pomby

Pomby is a simple application monitoring system for your services. Track downtime including error and downtime reports.

Pomby is designed to be a pluggable architecture to allow you to build any type of monitor you need, as well as add pluggable actions on your monitors.

Getting Started

const pomby = require('@pomby/pomby');
const pombySimple = require('@pomby/simplerequest');

pomby({
  db: 'mongodb://localhost/pomby',
  port: 8087,
  development: false,
  sessionAge: 24 * 60 * 60 * 1000,
  monitorHandlers: [pombySimple],
  dataRetention: 7 * 24 * 60 * 60 * 1000, // 1 week
  defaultRunSpacing: 1 * 60 * 1000, // 1 min
});

db - required

Database conenction string - mongo DB

monitorHandlers <[handler]> - required

An array of monitor handlers that you wish to be available.

port - required

default: 8080

Required to set the port the application runs on.

defaultRunSpacing - required

default: 30 seconds (also the minimum setting)

This specifies how often the monitors will fun by default.

development - optional

Runs the project in development mode, live rebuilds of the UI and more debugging output.

sessionAge - optional

Login session age in ms

dataRetentions - optional

Time to retrain error logs and per-run spacing logs. Hourly and daily records are stored indefinity.

What does it do?

Dashboard

A quick view to how your monitored applications are doing right now.

Dashboard

Monitors

Detailed statistics about your monitored application and reporting on that monitored service.

Monitor

Monitors

Plugins

Plugin Hooks

The following are the types of hooks you can use when creating a plugin

  • onRunComplete(config, monitor, runLog, error, errorDetails) - Hook runs after a run is completed for a monitor

Reporting

Coming soon...

Readme

Keywords

Package Sidebar

Install

npm i @pomby/pomby

Weekly Downloads

0

Version

0.6.4

License

MIT

Unpacked Size

287 kB

Total Files

69

Last publish

Collaborators

  • mikevalstar