1.0.1 • Published 10 months ago

hostcare v1.0.1

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

Hostcare

Hostcare is a command-line tool designed to help you monitor server health, simulate load testing, and gather system metrics efficiently. With a user-friendly interface, Hostcare enables developers and system administrators to ensure their servers are running optimally.

Table of Contents


Features

1. Server Health Check

  • Description: This feature allows you to check the health of a server by sending an HTTP request to a specified URL. It reports the server's status, HTTP status code, response time, and a timestamp.
  • Usage:
    hostcare healthcheck <url>

2. Load Testing

  • Description: Simulate load on your server by sending multiple requests simultaneously. This feature helps you understand how your server handles high traffic and identifies potential performance bottlenecks.
  • Usage:
    hostcare loadtest <url> <requestCount>

3. System Metrics

  • Description: Gather and display essential system metrics, such as uptime, load averages, memory usage, and more. This helps you monitor your server's performance and resource consumption.
  • Usage:
    hostcare metrics

Installation

To install Hostcare, you can use npm. There are two ways to install:

Option 1: Global Installation

This option makes the hostcare command available from any directory in your terminal.

npm install -g hostcare

Option 2: Local Installation

If you prefer to install Hostcare locally within a project, use the following command:

npm install hostcare

To use the command after local installation, prefix it with npx everytime you use it:

npx hostcare <command>

Usage

After installation, you can use Hostcare commands as follows:

  • For server health checks:

    hostcare health <url>
  • For load testing:

    hostcare load <url> <requestCount>
  • For system metrics:

    hostcare metrics

Examples

  1. Checking Server Health

    hostcare healthcheck http://example.com
  1. Running a Load Test

    hostcare loadtest http://example.com 100
  1. Displaying System Metrics

    hostcare metrics

License

This project is licensed under the MIT License. See the LICENSE file for details.

1.0.1

10 months ago

1.0.0

10 months ago