Skip to content

Instantly share code, notes, and snippets.

@da-player
da-player / app.js
Created Jul 19, 2017
Node - Redis Bandwidth Monitor
View app.js
/*
npm install redis
*/
var http = require('http');
var fs = require('fs');
var redis = require("redis");
/* ------------------------------------------------------------------------------------------------ */
var server_id = 'source1'; // unique server id
var server_hostname = 'http://source1.domain.com'; // hostname
var server_network_interface = 'eth0'; // public network interface where nginx listens