mod_statuspage express/connect 中间件

程序名称:mod_statuspage

授权协议: BSD

操作系统: 跨平台

开发语言: JavaScript

mod_statuspage 介绍

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);

mod_statuspage 官网

https://github.com/yahoo/mod_statuspage

相关编程语言

MuPlayer 是一款跨平台、轻量级的音频播放解决方案,...
OS FLV 是一个 开源和可嵌入网页的flv播放器。 这个...
DewPlayer音乐播放器,样式很简单,而且很实用.播放器...
JW FLV MEDIA PLAYER是一个开源的在网页上使用的Fla...
Speakker 是一个基于 Web 浏览器的音乐播放器,只提...
Player Framework 是一个开源的支持 HTML5 的视频播...