Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How do you create a push-based metric source? #5

Closed
eric opened this issue May 3, 2012 · 4 comments
Closed

Question: How do you create a push-based metric source? #5

eric opened this issue May 3, 2012 · 4 comments

Comments

@eric
Copy link

eric commented May 3, 2012

Do you have an example of how to create a metric source that receives it's datapoints from a websocket?

@mbostock
Copy link
Collaborator

mbostock commented May 4, 2012

No examples yet, but I have been thinking about about a streaming metrics API for Cube. To implement it, the metric needs to cache the current window internally, so that it can callback immediately on request with whatever's available. So it's not too dissimilar from the random walk example on the website. On the other hand if the new metric arrives via push after the context "beforechange" event is dispatched, then the metric might need to wait for the new data to arrive.

@mbostock
Copy link
Collaborator

mbostock commented May 8, 2012

Closing this because it's neither a defect or a feature request. Please followup on Stack Overflow if you have more questions. Thanks!

@mbostock mbostock closed this as completed May 8, 2012
@caub
Copy link

caub commented Aug 8, 2013

I'd actually be very interested in such a feature, since I've already a 'pubsub'-like push server for getting data

@cuadue
Copy link

cuadue commented Sep 10, 2013

Not sure if there's any interest left floating around, but here's a little demo I've whipped up.

https://gist.github.com/cuadue/6427101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants