Skip to content

Instantly share code, notes, and snippets.

@tomohiro
Last active December 15, 2015 18:49
Show Gist options
  • Save tomohiro/5307147 to your computer and use it in GitHub Desktop.
Save tomohiro/5307147 to your computer and use it in GitHub Desktop.
Status Dashboard

Status Dashboard

Getting Started

Install

$ mkdir statusdashboard
$ cd statusdashboard
$ npm install statusdashboard

Configuration

Create a setting.js

$ vi setting.js

Like this.

exports.create = function() {
    var appSettings = {
        hostname: 'status.local',
        port: 8080,
        services: [
            { name: 'fnortmetric', label: 'Fnortmetric', host: 'fnordmetric.local', check: 'http', port: '80', path: '/bar' },
            { name: 'jenkins', label: 'Jenkins CI', host: 'jenkins.local', check: 'http', port: '80' },
        ]
    };
    return appSettings;
};

Launch

$ APP_SETTINGS=$(pwd)/settings.js ./node_modules/statusdashboard/bin/statusdashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment