How to use context.cube and request in Cubism.js? -


i trying learn cubism(but not find tutorials) . have few basic questions:

  1. how use context.cube locally in cubism. running cube's evaluator locally on port 1081. tried using "localhost" , no luck.

  2. how use request.eq(key,'value') . key request_events collection or request_metrics?

any appreciated.

[edit]: turns out there problem cube installation. have fixed , connect evaluator using "localhost:1081". however, still can't correct values using metric expressions.

here data looks in mongodb('request_events' collection name):

some({ "_id" : { "$oid" : "51e4347f44aee763f87a1214"} , "t" : { "$date" : "2013-07-15t17:42:18.000z"} , "d" : { "received" : { "$date" : "2013-07-15t17:42:23.817z"} , "urlbase" : "egauge2962.egaug.es" , "all" : 14837.0 , "low voltage" : 2883.0 , "lights" : 4914.0}})

i trying values of 'all' field when received date greater 2013-07-15t17:42:23.817z.

so far, this- http://localhost:1081/1.0/event?expression=request.ge(received,"2013-07-15t17:42:23.817z") returns me [].

sorry blow own horn, i've written cubism tutorial here: http://xaranke.github.io/articles/cubism-intro/. not cover cube, instead uses json data source.

one way think first problem can resolved use 127.0.0.1:1081 instead of localhost:1081. both resolve same url internally.

i'm not cube expert, digging around official documentation think key request_metrics. request.eq filter providing exact match match data key parameter of "value". unless specify key attribute of data value, not want do.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -