Skip to content
Snippets Groups Projects
Commit 1d6df8eb authored by Andy Trevorah's avatar Andy Trevorah
Browse files

removed cube

parent a5a0b3c1
No related branches found
No related tags found
1 merge request!3removed cube
Loading
Loading
@@ -57,7 +57,7 @@ Once you've got your `env` instance, here are some things you can do with it
 
## Statistics
 
`env.stats` will send statistics to Datadog, Cube, Mixpanel and other places.
`env.stats` will send statistics to Datadog, Mixpanel and other places.
 
* `env.stats.event('name')` - increment a counter
* `env.stats.eventHF('name', [count], [frequency])` - increment a high frequency counter
Loading
Loading
Loading
Loading
@@ -25,7 +25,6 @@ exports.create = function(options) {
var mixpanelEnabled = config.get("stats:mixpanel:enabled");
var gaEnabled = config.get('stats:ga:enabled');
var statsdEnabled = config.get("stats:statsd:enabled");
var cubeEnabled = config.get("stats:cube:enabled");
var consoleEnabled = config.get("stats:console:enabled");
var intercomEnabled = config.get("stats:intercom:enabled");
 
Loading
Loading
@@ -78,42 +77,6 @@ exports.create = function(options) {
});
}
 
/**
* cube
*/
if (cubeEnabled) {
var Cube = require("cube");
var statsUrl = config.get("stats:cube:cubeUrl");
var cube = Cube.emitter(statsUrl);
statsHandlers.event.push(function(eventName, properties) {
if(!properties) properties = {};
properties.env = config.runtimeEnvironment;
var event = {
type: "gitter_" + eventName.replace(/\./g, '_'),
time: new Date(),
data: properties
};
cube.send(event);
});
statsHandlers.charge.push(function (userId, usd) {
var event = {
type: 'gitter_charge',
time: new Date(),
data: {
userId: userId,
usd: usd,
env: config.runtimeEnvironment
}
};
cube.send(event);
});
}
/**
* statsd
*/
Loading
Loading
Loading
Loading
@@ -27,7 +27,6 @@
"async": "^0.8.0",
"blocked": "^1.0.0",
"clockout": "0.0.1",
"cube": "git://github.com/gitterHQ/cube.git#b6c53a92190bcd3c945083e6b27edb25be0c134c",
"intercom.io": "~0.0.8",
"mixpanel": "0.0.20",
"nconf": "^0.6.9",
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment