express/connect 中间件 mod_statuspage

码农软件 · 软件分类 · Node.js 扩展 · 2019-04-14 16:12:05

软件介绍

mod_statuspage for Node 是简单的 express/connect 中间件,提供一个状态页面,包括 Node.js host 的详细信息。

主要特性:

  • 各种版本:Prints NodeJS 版本,OS 版本,OS 发行版

  • CPU - CPU 平均负载

  • Memory内存 - 总内存,剩余内存Total Memory, Free Memory

  • 流量 - 总请求数,每秒请求数,总 KBs 传输,总 KBs 输出等等

  • Workers - 所有 worker 进程的列表

安装

npm install mod_statuspage

示例

var express = require('express'),
    status = require('../lib/index.js');
var app = express();
app.use(status({
    url: '/status',
    check: function(req) {
        if (req.something == false) {
            return false; //Don't show status
        }
        return true; //Show status
    },
    responseContentType : 'html'
}));
console.log('Go to: http://127.0.0.1:8000/status');
app.listen(8000);

本文地址:https://codercto.com/soft/d/3573.html

Learn Python the Hard Way

Learn Python the Hard Way

Zed Shaw / Example Product Manufacturer / 2011

This is a very beginner book for people who want to learn to code. If you can already code then the book will probably drive you insane. It's intended for people who have no coding chops to build up t......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具