Skip to content
Joseph Ruscio edited this page Apr 19, 2014 · 2 revisions

WikiAPI ReferenceLibrato

A source for Librato metrics. To create a source, first create a context. Then, use context.librato to specify your librato credentials. For example:

var context = cubism.context(), // a default context
    librato = context.librato("foo@gmail.com", "8585ae5c30d55ddef4");

# librato.metric(metric name, source)

Creates a new metric for the given librato composite metric query. For example:

var metrics = librato.metric("sum(series(\"hgsc_cpu_used\",  \"ardmore\"))");
Clone this wiki locally