square / cubism

Cubism.js: A JavaScript library for time series visualization.

Home Page:https://square.github.com/cubism/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphite port to use

ashishrv opened this issue · comments

I have been trying to integrate cubism with graphite. My graphite installation works with graphite server bound to unix:// and using nginx to serve it at port 8050. How ever, when I give url as http://server:8050/ for graphite context, it does not render any graph.

That doesn't sound like a Cubism bug. As you can see from the source, it's simply passing along whatever hostname you specify, including the protocol, port and any path. So if it's not working, you should check that you're able to access your graphite installation.

Also note that if the Graphite installation is running on a separate domain, you may need to enable CORS.

in the sourcehttps://github.com/square/cubism/blob/master/src/graphite.js#L17 it does not have any thing where we can put our graphite server url. So how can this be helpful?

The host is passed as the first argument to the Graphite context. Take a look at the wiki page for more details: https://github.com/square/cubism/wiki/Graphite

I was talking about this link.
Here where is the url for particular graphite server passed?
And can u briefly explain how to use the code given in the above link can be used.
I have a graphite server running on my pc, trying to use it. And i'm not able to add thic plug-in onto the graphite. Any help is appreciated.

https://github.com/square/cubism/blob/master/src/graphite.js#L17

There's a good tutorial here: http://cookingclouds.com/2012/12/18/cubism-js-with-graphite-server/ - http://graphite-server.foo-bar.net is the graphite URL in their example. This is how the value of host is set in graphite.js.

Hello Guys,

I was trying to get the following metrics onto the graphite server.

I have to get the following metrics on the Graphite:

Number of pixels per partner
Total number of pixels
Average Pixel Response time.

Can u please help me with this.

Thanks & regards

On Thu, May 30, 2013 at 1:30 PM, Tom Carden notifications@github.comwrote:

There's a good tutorial here:
http://cookingclouds.com/2012/12/18/cubism-js-with-graphite-server/ -
http://graphite-server.foo-bar.net is the graphite URL in their example.
This is how the value of host is set in graphite.js.


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-18698844
.

Please use Stack Overflow for general questions about Graphite, Javascript, visualization, etc.

This forum is only for bugs and contributions to the Cubism library.