gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Add possibility to mount FnordMetric via Rails routes #15

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by kirs Monday Feb 20, 2012 at 09:51 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/60


In resque, there is a feature of mounting Sinatra app directly to Rails routes.

mount Resque::Server.new, :at => "/resque"

In my opinion, it's very useful and it will be possible to mount FnordMetric web frontend to Rails app with one line.

@paulasmuth, if you agree with me, I will implement this feature in pull request.

bf4 commented 10 years ago

Comment by paulasmuth Saturday Mar 10, 2012 at 00:59 GMT


Hey Kir, I think the feature you are looking for was already implemented by fd in issue #5 (FnordMetric.embed) - Is this what you wanted?

bf4 commented 10 years ago

Comment by kirs Friday Mar 16, 2012 at 17:03 GMT


Exactly, thanks! I think that it will be useful to mention it in Readme...

bf4 commented 10 years ago

Comment by houen Wednesday Sep 05, 2012 at 11:33 GMT


So I'm completely new to this. Can anyone post the code that needs to go into my routes file in order to mount this? I'll write a wiki post about it if someone points me in the right direction :)

bf4 commented 10 years ago

Comment by aleks Wednesday Sep 12, 2012 at 10:38 GMT


Am i right that this Feature isn't working anymore due to the removal of FnordMetric.embedded?

bf4 commented 10 years ago

Comment by cj Wednesday Apr 10, 2013 at 03:07 GMT


I would love to know this too :)

bf4 commented 10 years ago

Comment by skorfmann Wednesday Apr 10, 2013 at 04:50 GMT


It's not possible out of the box. You could try to extract the relevant parts from this file into you custom "embeddable" version. You would still need to run the workers (and acceptors if needed) separately.

Another approach could be, to build a custom interface with Fnordmetric UI

These are just ideas, haven't tried any of them :)