Skip to content
This repository

Add possibility to mount FnordMetric via Rails routes #60

Open
kirs opened this Issue · 6 comments

6 participants

Kir Shatrov Paul Asmuth Søren Houen Aleks Sebastian Korfmann
Kir Shatrov

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.

Paul Asmuth
Owner

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?

Kir Shatrov
kirs commented

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

Søren Houen

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 :)

Aleks

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

cj commented

I would love to know this too :)

Sebastian Korfmann

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.