New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapijs-status-monitor

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapijs-status-monitor

Monitoring plugin for hapi.js applications

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
267
increased by8.98%
Maintainers
2
Weekly downloads
 
Created
Source

hapijs-status-monitor

Build Status npm Coverage Status

Simple, self-hosted module based on Socket.IO and Chart.js to report realtime server metrics for hapi.js servers.

Inspired from express-status-monitor

screenshot

Installation & setup

Install package

npm install hapijs-status-monitor --save

Register plugin

await server.register({ plugin: require('hapijs-status-monitor') });

Run server and go to /status

Run examples

  1. Go to cd examples/
  2. Run npm i
  3. Run server npm start
  4. Go to http://localhost:8000/status

Options

Monitor can be configured by passing options object into server register method

await server.register({
  plugin: require('hapijs-status-monitor'),
  options: {
    title: 'My Status Monitor',
    routeConfig: {
      auth: false
    }
  }
});

Default options:

title: 'hapi.js Status',
path: '/status',
spans: [{
  interval: 1,     // Every second
  retention: 60    // Keep 60 datapoints in memory
}, {
  interval: 5,     // Every 5 seconds
  retention: 60
}, {
  interval: 15,    // Every 15 seconds
  retention: 60
}],
routeConfig: {}  // Route options, see https://github.com/hapijs/hapi/blob/master/API.md#route-options

Contributors

Thanks goes to these wonderful people (emoji key):


z i λ a s a l

💻 ⚠️ 📖

Daniel Bayerlein

💻 ⚠️ 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

License

Copyright (c) 2016-present @ziyasal & @danielbayerlein. See LICENSE for details.

Keywords

FAQs

Package last updated on 04 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc