-
Notifications
You must be signed in to change notification settings - Fork 18
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
undefined method `registry' error. #25
Comments
Looks like But Meanwhile you can put this require into your +require "yabeda/prometheus/exporter"
activate_control_app
plugin :yabeda
plugin :yabeda_prometheus |
@Envek getting the same error after adding |
Oh, sorry, try to +require "yabeda/prometheus"
activate_control_app
plugin :yabeda
plugin :yabeda_prometheus See also yabeda-rb/yabeda-puma-plugin#21 (comment) for some more context for a similar problem. |
Thanks @Envek , requiring Only puma metrics are showing up, not the Rails metrics(yabeda-rails). Let me debug further. |
Try to manually require railties for both yabeda and yabeda-rails in your app initializer: # config/initializers/yabeda.rb
require "yabeda/railtie"
require "yabeda/rails/railtie" Usually they are required automatically when I don't know how to properly handle it at the moment. See the same comment I referenced above for details. |
@Envek should we update the readme with this information? We can add a note to avoid the confusion. |
I am getting an exception while using
yabeda_prometheus
plugin inconfig/puma.rb
error:
puma.rb:
Versions:
The text was updated successfully, but these errors were encountered: