npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gazzehamine/armada-watch-agent

v1.5.3

Published

Monitoring agent for Armada Watch - EC2 instance monitoring with SSL, PM2, Nginx, Systemd, and Security monitoring

Downloads

1,360

Readme

Armada Watch Agent

Lightweight monitoring agent for EC2 instances. Collects and sends system metrics to your Armada Watch monitoring server.

Installation

Via NPM (Recommended)

npm install -g @gazzehamine/armada-watch-agent

Automated Setup (Easiest)

After installing the agent, run the setup wizard:

armada-watch-setup

This interactive script will:

  • ✅ Verify Node.js and PM2 installation
  • ✅ Configure the agent (.env file)
  • ✅ Start the agent with PM2
  • ✅ Optionally configure Nginx monitoring
  • ✅ Optionally configure SSL certificate monitoring
  • ✅ Optionally configure security monitoring
  • ✅ Set up PM2 auto-start on boot

Note: For SSL monitoring to work, you need to restart PM2 daemon after setup:

pm2 kill
cd ~/armada-watch-agent
pm2 start armada-watch-agent --name armada-watch
pm2 save

Manual Setup

If you prefer to configure manually:

Quick Start

1. Set Environment Variables

Create a .env file:

SERVER_URL=http://your-monitoring-server:4000
INSTANCE_NAME=Production Web Server
REGION=us-east-1
COLLECTION_INTERVAL=10

Or set them directly:

export SERVER_URL=http://your-monitoring-server:4000
export INSTANCE_NAME="Production Web Server"
export REGION=us-east-1
export COLLECTION_INTERVAL=10

2. Run the Agent

# If installed via npm
armada-watch-agent

# Or with npx
npx @gazzehamine/armada-watch-agent

# If built from source
npm start

3. Run as a Service (Production)

Using PM2:

npm install -g pm2
pm2 start armada-watch-agent --name armada-watch
pm2 save
pm2 startup

Using systemd:

sudo tee /etc/systemd/system/armada-watch.service > /dev/null <<EOF
[Unit]
Description=Armada Watch Monitoring Agent
After=network.target

[Service]
Type=simple
User=$USER
WorkingDirectory=$HOME
Environment="SERVER_URL=http://your-server:4000"
Environment="INSTANCE_NAME=My Instance"
Environment="REGION=us-east-1"
ExecStart=$(which armada-watch-agent)
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable armada-watch
sudo systemctl start armada-watch

Configuration

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | SERVER_URL | Yes | - | URL of your monitoring server | | INSTANCE_NAME | No | hostname | Friendly name for this instance | | REGION | No | unknown | AWS region (e.g., us-east-1) | | INSTANCE_ID | No | hostname | EC2 instance ID (auto-detected on EC2) | | COLLECTION_INTERVAL | No | 10 | Interval in seconds between metric collections |

Collected Metrics

The agent collects:

  • CPU Usage - Overall CPU utilization percentage
  • Memory Usage - RAM usage percentage and amounts
  • Disk Usage - Disk space utilization
  • Network Traffic - Network RX/TX bytes
  • System Info - Platform, architecture, CPU model
  • Top Processes - Top 10 processes by CPU/Memory

Requirements

  • Node.js >= 18.0.0
  • Network access to monitoring server on port 4000

Troubleshooting

Agent can't connect to server

# Test connectivity
curl http://your-server:4000/health

# Check agent logs (PM2)
pm2 logs armada-watch

# Check agent logs (systemd)
sudo journalctl -u armada-watch -f

Permission errors

The agent needs permission to read system metrics. Run with appropriate user permissions.

License

MIT