diff --git a/README.md b/README.md index f09ae3ea6a56c810cef331dc43d6aecf54dcb670..cb4e37fcd98c357143444d45186e0f3c8a697449 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/stats.js b/lib/stats.js index 7aaa5aecfbebf98b5a245df473c60e88d537d13c..75b307abda704f3c687fc6e8a00f05893fdcccbd 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -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"); @@ -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 */ diff --git a/package.json b/package.json index 337849fc3039f712ea8863812b1cf2e6caf8ed65..5c61980abdb3191b3872c6069cf71066f83b3c74 100644 --- a/package.json +++ b/package.json @@ -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",