Socket
Socket
Sign inDemoInstall

koa-actuator

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

2

package.json
{
"name": "koa-actuator",
"version": "0.4.0",
"version": "0.4.1",
"description": "Healthcheck and monitoring middleware for koa inspired by java spring's actuators",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -22,3 +22,3 @@ # koa-actuator

Ones you start your koa application, it will add several service endpoints such as /health, /env, etc.
Ones you start your koa application, it will add endpoints /health, /info

@@ -33,10 +33,16 @@ ## Endpoints

"status": "UP",
"db": {
"status": "UP",
"freeConnections": 10
},
"redis": {
"status": "UP",
"usedMemory": "52m",
"uptimeDays": 16
"details: {
"db": {
"status": "UP",
"details": {
"freeConnections": 10
}
}
"redis": {
"status": "UP",
"details": {
"usedMemory": "52m",
"uptimeDays": 16
}
}
}

@@ -60,21 +66,2 @@ }

### /env
Exposes environment properties and command line arguments. Variables that likely to be secure (contain 'user', 'password', 'pass' etc in their names) will be replaced by *******
```json
{
"systemEnvironment": {
"OLDPWD": "*******",
"NVM_DIR": "/Users/yyyy/.nvm",
"USER": "*******",
"NVM_BIN": "/Users/yyyy/.nvm/versions/node/v7.9.0/bin",
"HTTP_PORT": "3000"
},
"arguments": [
"/Users/yyyy/.nvm/versions/node/v7.9.0/bin/node",
"/Users/yyyy/nodeProjects/koa-act-test/index",
"myarg=test"
]
}
```
### /info

@@ -91,28 +78,2 @@ Main application info from package.json

}
```
### /metrics
```json
{
"timestamp": 1494242326200,
"uptime": 8.017,
"processors": 8,
"heap": 10403840,
"heap.used": 7057224,
"resources": {
"memory": {
"rss": 27021312,
"heapTotal": 10403840,
"heapUsed": 7057224,
"external": 43578
},
"loadavg": [
1.89794921875,
1.7880859375,
1.75634765625
],
"cpu": "...",
"nics": "..."
}
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc