Permalink
Commits on Apr 3, 2012
  1. Replace 20-second tier with 10-second tier.

    This matches Graphite's default, which is useful for comparing metrics from
    multiple backends. This also disables computing 5-minute metrics from the 10-
    second tier, since for low-frequency events this is vastly more expensive than
    computing the 5-minute metrics from the events directly. 10-second metrics are
    still available if desired but they are no longer created as a side-effect of
    requesting 5-minute metrics. Ideally, Cube could determine automatically whether
    to descend to the next tier based on the number of events in each time interval,
    but that'll require a bit more effort to implement.
    mbostock committed Apr 3, 2012
  2. Update mongodb driver.

    mbostock committed Apr 3, 2012
Commits on Apr 2, 2012
  1. Disable batchSize on metric queries.

    As best I can tell, this was causing it to return no more than 1,000 results,
    even though the intent was to paginate after the first 1,000. Fishy.
    mbostock committed Apr 2, 2012
Commits on Jan 26, 2012
  1. Fix off-by-one (or two) in GET metrics.

    Fixes the computation of the expected number of metric values.
    mbostock committed Jan 26, 2012
Commits on Jan 19, 2012
  1. Merge branch 'fix-error'

    mbostock committed Jan 19, 2012
  2. Use _id for metrics collections.

    The metrics collections are capped, so an _id is not required. However, starting
    in MongoDB 2.0, you can no longer perform a multi-update without an object _id,
    which caused metrics invalidation to fail. The fix is relatively simple, since
    the metrics values already had an implicit unique id (expression, level, time
    and optional group key): make the id explicit.
    
    Note that this change is not backwards-compatible!
    mbostock committed Jan 19, 2012
Commits on Jan 18, 2012
  1. Don't fail silently when a string is thrown.

    I'm looking at you, node-mongodb-native. ಠ_ಠ
    mbostock committed Jan 18, 2012
  2. Merge branch 'metric-get'

    mbostock committed Jan 18, 2012
Commits on Jan 13, 2012
  1. Allow HTTP GET for metrics.

    You can now issue a simple HTTP GET to retrieve metrics from Cube synchronously,
    rather than fetching metrics asynchronously via WebSockets. The parameters are
    identical to the WebSockets API. So,
    
        {
          "expression": "sum(random)",
          "start": "2012-01-09T01:23:00Z",
          "stop": "2012-01-10T04:56:00Z",
          "step": 300000
        }
    
    Is equivalent to:
    
       http://localhost:1081/1.0/metric
         ?expression=sum(random)
         &start=2012-01-09T01:23:00Z
         &stop=2012-01-10T04:56:00Z
         &step=300000
    
    The results are returned as a JSON array in chronological order. If an error
    occurs, an empty array of results are returned. Fixes #24.
    mbostock committed Jan 13, 2012
Commits on Nov 30, 2011
  1. Merge branch 'release'

    mbostock committed Nov 30, 2011
  2. More flexible time intervals.

    You can now specify the metric precision and duration independently, rather than
    being forced to use one of several fixed values.
    mbostock committed Nov 30, 2011
  3. Add 20-second tier.

    To avoid an explosion of cached metrics for sparse events, we no longer recurse
    all the way to the lowest tier. Instead, we recurse only one level down; if the
    cached metrics are not available at the lower tier, we then jump directly to the
    raw events.
    mbostock committed Nov 30, 2011
  4. Merge branch 'release'

    mbostock committed Nov 30, 2011
  5. Updates for Node 0.6.x.

    mbostock committed Nov 30, 2011
Commits on Nov 22, 2011
  1. Merge branch 'release'

    mbostock committed Nov 22, 2011
  2. Update D3 to 2.5.2.

    mbostock committed Nov 22, 2011
Commits on Nov 19, 2011
Commits on Nov 18, 2011
  1. Update D3 to 2.5.1.

    mbostock committed Nov 18, 2011
Commits on Oct 31, 2011
  1. Add `in` filter.

    mbostock committed Oct 31, 2011
Commits on Oct 15, 2011
  1. Only close when flushed.

    mbostock committed Oct 15, 2011
Commits on Oct 13, 2011
Commits on Oct 12, 2011
  1. Merge branch 'release'

    mbostock committed Oct 12, 2011
  2. Use d3.time.format.iso for date serialization.

    Fixes #2 for Safari 5.0.x and other browsers without toISOString support.
    mbostock committed Oct 12, 2011
Commits on Oct 11, 2011
  1. Display improvements.

    Fix #5, allowing the y-axis to negative. If only nonpositive values are seen,
    then the y-maximum is 0; if only nonnegative values are seen, then the y-minimum
    is 0; otherwise, the y-domain is the minimum and maximum value. X-labels are
    always drawn on the bottom.
    
    This also adopts D3 2.4's si-prefix format for both y-axis labels and for
    rolling sum values. The y-axis labels use d3.formatPrefix to determine the SI
    prefix that would be used for the largest value, and then applies that to all
    ticks for consistent labeling.
    mbostock committed Oct 11, 2011
Commits on Oct 7, 2011
  1. Update to D3 2.3.4.

    mbostock committed Oct 7, 2011
  2. Merge branch 'release'

    mbostock committed Oct 7, 2011
Commits on Oct 5, 2011
  1. Tweak scaling slightly.

    mbostock committed Oct 5, 2011