1.0.1 • Published 10 months ago

@waveorb/monitor v1.0.1

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

Waveorb monitor

Monitoring tool that runs on the server that gives you system information like:

  • Memory usage
  • Hard drive usage
  • CPU usage

The function checks system resources and returns a JSON object with data about usage.

Install

npm i @waveorb/monitor

Usage

var monitor = require('@waveorb/monitor')

// Get ram and swap usage stats as JSON, based on 'free -m'
var mem = await monitor.mem()

// Get hard drive usage as JSON, based on 'df -h'
var hd = await monitor.hd()

// Get CPU usage as JSON, based on 'top'
var cpu = await monitor.cpu()

// Get all stats (mem, cpu, hd) as JSON
var stats = await monitor.stats()

Created by Eldøy Projects

1.0.1

10 months ago

1.0.0

10 months ago