-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working on views for stats and services
- Loading branch information
Showing
17 changed files
with
117 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1,3 @@ | |||
node_modules | node_modules | ||
.DS_Store | .DS_Store | ||
dump.rdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
var cp = require('child_process'); | |||
|
|||
var exiting = false; | |||
|
|||
console.log('forking upbeat'); | |||
var upbeat = cp.fork(__dirname + '/upbeat-server.js'); | |||
|
|||
console.log('forking test server'); | |||
var myServer = cp.fork(__dirname + '/my-server.js'); | |||
|
|||
console.log('starting redis'); | |||
cp.exec('redis-server'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
require('mochiscript'); | |||
require('js-yaml'); | |||
|
|||
var upbeat = require('../lib/upbeat'); | |||
var config = require('./example.yml'); | |||
var server = new upbeat.Server(config); | |||
server.run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
extends layout | |||
|
|||
block content | |||
table.table.table-condensed.table-bordered(style="background-color: #333") | |||
tr.success | |||
th Service | |||
th Status | |||
th Pass/Total | |||
th Last Pass | |||
th Last Failure | |||
- var i = 0; | |||
each service, sname in services | |||
if i++ > 0 | |||
tr: td(colspan=5) | |||
tr | |||
td: a(href="/services/#{sname}")= sname | |||
td!= health(service.isHealthy) | |||
td | |||
td | |||
td | |||
each sensor, name in service.sensors | |||
tr | |||
td(style="padding-left: 20px"): a(href="/services/#{sname}/sensors/#{name}")= name | |||
td!= health(sensor.isHealthy) | |||
td #{sensor.passCount}/#{sensor.totalCount} | |||
td= sensor.lastPass | |||
td= sensor.lastFail |