Open robertleib opened 12 years ago
+1
I'm interested in the same. I have some (ugly) code in the branch mountable-app in cbeer/dashing. I'm not ready yet to send it as a pull request, and there's still a lot of work to make the javascript work right, and the event stream depends a lot on your server configuration.
This is a great idea. I can imagine a lot of rails projects benefiting from this.
@cbeer looks like you're on the right track! I'll play around with this when I get some time.
+1
+1! This would be a great feature
:+1:
+1
I'm also interested in this feature and will be happy to help ;) I'll have a look at @cbeer branch.
This would be a great addition.
I have started some work two weeks ago that I had to put on hold. Just took some time today to work on that. I think I am getting near a decent proof of concept for that.
The work can be seen on my fork but all is in those two commits:
You can see a Rails app mounted with it here: https://github.com/jipiboily/dashing-mounted-rails-app
The major problem for now is that we need to set config.threadsafe! and this is not something we want, especially not in development. I don't have any more time to work on that for a couple of days probably, if someone want to take a look at what needs to be fixed, that would be awesome. It most probably has to do with the send_file
here. I think that's the last thing not working from my primary tests.
Disclaimer: I am not used to work with Sinatra, I might have done silly things. Also, code quality here was not the idea for now, just hacking a proof of concept and see where that leads.
Please let me know what I did that was silly, stupid or good if there is some. Comment the code if you want and let me know if I am on the right path with that and if this is the kind of thing that is wanted for Dashing.
Thanks for Dashing by the way! :)
and what about @padrino support? I will be happy to help. Anybody else?
+1
:+1:
+1
+1
+1
+1
:+1:
Sounds cool. I'll install this and try it out. Do you plan to work on it more?
To be honest, there was very little to no work on this for quite a while, only some +1. I think this won't happen unless more folks are interested in this and diving in. The work I did 7 months ago was never tried or reviewed by anyone (not pointing at Dashing's team at all here, just saying no one from the community dived in). This makes me think there is not enough interest in that to make it worth to add complexity. Added complexity means harder to maintain and this is certainly not a good idea in an open source project for maintainers to add complexity only for a few folks interested to use it but not helping maintain it. My 2 cents! :)
PS: this is all fine by me! :)
Hey guys !
I've worked on my own version of a Dashing Engine since I wanted to learn more about Rails Engines. It is working well, easy to use and I added a bunch of configuration options to it.
I'm using Redis to push & pull data to the widgets since not all of us have their project under Rails 4 yet. This way you can have a dedicated app for your dashboards and a shared Redis database.
It's also functional using CURL commands.
Please give it a try and let me know what do you think. This is not a beta version, I am using it in my day to day work as a metrics viewer on a TV screen.
Here is the link https://github.com/gottfrois/dashing-rails
Have fun!
Sounds great! Quick question -- when you say you use a dedicated app for dashboards, do you mean you use one dashing-rails app to host dashboards for multiple different rails apps? If so, would it work as a dashboard within a single rails app as well? Thanks!
Either one is possible. You can have one dashing-rails app with many dashboards (one dashboard per application you want to monitor for example). Or have one dashing-rails app with only one dashboard for one app to monitor.
Great!
On Mon, Aug 12, 2013 at 11:51 AM, Pierre-Louis Gottfrois < notifications@github.com> wrote:
Either one is possible. You can have on dashing-rails app with many dashboards (one dashboard per application you want to monitor for example). Or have on dashing-rails app with only one dashboard for one app to monitor.
— Reply to this email directly or view it on GitHubhttps://github.com/Shopify/dashing/issues/5#issuecomment-22503304 .
Good work @gottfrois! I'll check it out!
Hi @gottfrois, I am looking at integrating this into a rails app. Your readme states rails 4 is a requirement. Is that the case? Many thanks.
Hey, yes since I'm using ActionController::Live
to push the data to the clients. Basically, you can mount Dashing-Rails on a Rails 4 application. For Rails 3 application, you'll probably want to have a separate Rails 4 app and push your metrics into the Redis instance.
Understood; thanks.
—
Sent from Mailbox for iPad
On Fri, Aug 23, 2013 at 3:34 AM, Pierre-Louis Gottfrois notifications@github.com wrote:
Hey, yes since I'm using
ActionController::Live
to push the data to the clients. Basically, you can mount Dashing-Rails on a Rails 4 application. For Rails 3 application, you'll probably want to have a separate Rails 4 app and push your metrics into the Redis instance.Reply to this email directly or view it on GitHub: https://github.com/Shopify/dashing/issues/5#issuecomment-23147903
Any update on this issue? I have a rails 4 app and was wondering if its possible to mount a dashing app into it.
What would it take to make this mountable in a Rails 3 app?