Questions tagged [square-cube]

Cube is a system for collecting timestamped events and deriving metrics.

Cube is a system for collecting timestamped events and deriving metrics. Originally developed for internal use at Square, it was released in 2011 under the Apache license.

Cube is designed for internal use only. Cube does not provide access control, so any data you put into Cube can be queried by anyone that can access your evaluator. You can separate the collector and evaluator, and use a firewall to prevent access to the collector. We may add some type of access control in the future if there is demand for user-facing applications.

Another method of access control is to hide Cube behind a secure, authenticated proxy. Even then, be aware that Cube is not yet hardened against denial-of-service attacks and other malicious requests, and is still in the early stages of development.

Cube can be used in production on streams up to several thousand requests per second (nearly a billion requests per day). Please see the Performance and Scaling notes.

4 questions
1
vote
1 answer

Can Cube (js metrics framework) return more than 1000 events?

The Cube software (https://github.com/square/cube) allows you to retrieve events. I want to retrieve a lot of events. But it appears that I am capped at 1000. There are well over 9000 in mongodb in the collection and time range I am querying Example…
cmonkey
  • 4,256
  • 1
  • 26
  • 46
0
votes
1 answer

How do I query all fields in square-cube?

I can run: curl 'http://localhost:1081/1.0/event?expression=cube_request(path)&limit=1' but this gives me only 'path'. I'd like to see a full record in my 'cube explorer' tool. Is there an * character that allows to effectively do a SELECT *? Or…
Robin
  • 698
  • 6
  • 25
0
votes
1 answer

How to get event aggregation to work through Square-Cube REST

Does anyone know how to get event aggregation to work through Square-Cube REST? Given an event: { type: 'sampleType', time: '...' data:{ prop: 3.445 } } When attempting to sum this, I am getting distinct count by item,…
deepelement
  • 2,457
  • 1
  • 25
  • 25
0
votes
1 answer

Distinct metrics for Cubism (Square/Cube)

I'm looking for a rest call to square/cube that will give me a distinct list of a certain property from my events. My property is a string on the data property of the cube event. Is that possible to do via REST?
Scott
  • 4,066
  • 10
  • 38
  • 54