Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Replace Cube front-end with node-static.
Browse files Browse the repository at this point in the history
The Cube front-end is now just a static file server (in addition to the /event
and /metric endpoints that power the collector and evaluator). This removes the
visualization component from Cube, so that it can focus on data collection and
metric computation. To make visualizations, you now simply write a bit of HTML
and JavaScript to fetch and display metrics. This commit will followup with some
examples that demonstrate the technique.

Also, add a 1-minute tier, and remove the week and year tiers. The highest tier
is now the 1-day tier. We could still use the old tiers, but there's a little
bit of overhead to invalidate every tier for every event; perhaps in the future,
we'll want to configure tiers on a per-event basis.
  • Loading branch information
mbostock committed Apr 16, 2012
1 parent e51cd37 commit f848376
Show file tree
Hide file tree
Showing 47 changed files with 183 additions and 2,000 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -7,8 +7,8 @@ PEG_COMPILER = ./node_modules/pegjs/bin/pegjs
$(PEG_COMPILER) < $< > $@

all: \
lib/cube/server/event-expression.js \
lib/cube/server/metric-expression.js
lib/cube/event-expression.js \
lib/cube/metric-expression.js

test: all
@$(JS_TESTER)
1 change: 0 additions & 1 deletion bin/evaluator.js
Expand Up @@ -4,7 +4,6 @@ var options = require("./evaluator-config"),

server.register = function(db, endpoints) {
cube.evaluator.register(db, endpoints);
cube.visualizer.register(db, endpoints);
};

server.start();
12 changes: 0 additions & 12 deletions lib/cube/client/board.css

This file was deleted.

225 changes: 0 additions & 225 deletions lib/cube/client/board.js

This file was deleted.

87 changes: 0 additions & 87 deletions lib/cube/client/body.css

This file was deleted.

3 changes: 0 additions & 3 deletions lib/cube/client/cube.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/cube/client/end.js

This file was deleted.

0 comments on commit f848376

Please sign in to comment.