@bitcall/pm2-pulse-agent 1.0.1-beta.5 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +13 -3
  2. package/agent.js +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,13 +4,23 @@ A Node.js monitoring agent that tracks server metrics (CPU, RAM, processes) and
4
4
 
5
5
  ## Features
6
6
 
7
- - **Real-time Metrics Collection**: Monitors CPU usage, RAM consumption, and PM2 process states
7
+ - **Real-time Metrics Collection**: Monitors CPU usage, RAM consumption, and PM2 process status
8
8
  - **Configurable Thresholds**: Set custom CPU and RAM alert thresholds
9
9
  - **PM2 Integration**: Tracks all PM2-managed processes and their status
10
10
  - **gRPC Communication**: Sends metrics to a monitoring server via gRPC
11
11
  - **Authentication Support**: Optional Bearer token authentication
12
12
  - **Singleton Pattern**: Ensures only one agent instance runs per server
13
13
 
14
+ ## Changelog Testing
15
+
16
+ Changelog trigger: feature note.
17
+
18
+ Changelog test note (fix).
19
+
20
+ Docs note for release testing.
21
+
22
+ Testing update for README (chore).
23
+
14
24
  ## Installation
15
25
 
16
26
  ```bash
@@ -38,7 +48,7 @@ npm install -g @bitcall/pm2-pulse-agent@beta
38
48
  pm2-pulse-setup
39
49
  ```
40
50
 
41
- This will prompt you to configure:
51
+ The setup prompts you to configure:
42
52
  - **AUTH_TOKEN**: Secret token for server authentication (optional)
43
53
  - **MONITOR_SERVER**: gRPC server address (default: `localhost:50051`)
44
54
  - **VPS_ID**: Unique identifier for this server (default: `server-{hostname}`)
@@ -173,4 +183,4 @@ RAM Threshold: 80%
173
183
 
174
184
  ## License
175
185
 
176
- MIT
186
+ MIT
package/agent.js CHANGED
@@ -11,9 +11,9 @@ require('dotenv').config()
11
11
  const DEFAULT_SERVER = 'localhost:50051'
12
12
  const DEFAULT_VPS_ID = 'server-' + os.hostname()
13
13
  const DEFAULT_CHECK_INTERVAL = 10 // seconds (accurate CPU measurement)
14
- const DEFAULT_CPU_THRESHOLD = 70
14
+ const DEFAULT_CPU_THRESHOLD = 70
15
15
  const DEFAULT_RAM_THRESHOLD = 80
16
- const DEFAULT_DISK_THRESHOLD = 85
16
+ const DEFAULT_DISK_THRESHOLD = 85
17
17
  const DEFAULT_AUTH_TOKEN = process.env.AUTH_TOKEN || ''
18
18
 
19
19
  // Load proto from package directory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitcall/pm2-pulse-agent",
3
- "version": "1.0.1-beta.5",
3
+ "version": "1.3.0",
4
4
  "description": "PM2 monitoring agent that tracks server metrics and sends alerts via gRPC",
5
5
  "main": "agent.js",
6
6
  "bin": {