1.0.8 • Published 5 months ago

node-apm-agent v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Node.js Monitoring Agent

A lightweight Node.js monitoring agent with a built-in dashboard to monitor memory usage, CPU usage, and uptime for Node.js processes.

Features

  • Monitors all Node.js processes on the system.
  • Tracks memory, CPU, and uptime for each process.
  • Automatically logs stats into an SQLite database.
  • Includes a built-in dashboard for real-time data visualization.
  • Configurable through CLI options.

Installation

Install the package globally using NPM:

npm install -g node-apm-agent

Usage

Run the agent directly from the CLI:

node-apm-agent start

Options

OptionAliasDescriptionDefault
--port <number>-pPort to run the dashboard on3000
--interval <ms>-iInterval between monitoring (in ms)10000
--app-name <name>-nFilter processes by application nameMonitors all processes

Examples

Run with default settings:

node-apm-agent start

Specify a custom port and monitoring interval:

node-apm-agent start --port 4000 --interval 5000

Monitor processes for a specific application:

node-apm-agent start --app-name "my-app"

Dashboard

The agent includes a built-in dashboard accessible via your browser.

Once the agent is running, visit:

http://localhost:<port>

Replace <port> with the port specified (default is 3000).


Stopping the Agent

To stop the agent, press Ctrl+C. The SQLite database will not retain historical data.

Or

node-apm-agent stop

Contributing

We welcome contributions! Feel free to:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Submit a pull request.

For major changes, please open an issue first to discuss what you would like to change.


License

This project is licensed under the MIT License.


Support

If you encounter any issues or have questions, please open an issue on GitHub.


npm license downloads views

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago