-
Notifications
You must be signed in to change notification settings - Fork 20
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
Not working for clustered puma #5
Comments
Try replacing default prometheus-client with prometheus-client-mmap: # Gemfile
gem "yabeda"
gem "yabeda-rails"
gem "prometheus-client-mmap"
gem "yabeda-prometheus" See yabeda-rb/yabeda-prometheus#4 for discussion and more information |
hey, @mariokam support of gitlab client moved to another gem https://github.com/yabeda-rb/yabeda-prometheus-mmap |
Ended up using |
Unfortuantely this doesnt work currently with:
Individual workers supply their own metrics (not aggregated) |
That's weird. Can you please create reproduction? E.g. write a Ruby script using inline bundler and publish it as a secret gist? Also please show exact versions of all related gems – maybe some dependencies got updated… Also, just to confirm that by “Individual workers” you mean forks of main Puma process that aren't synced (so you have single |
I've solved this, it took a while but the answer was calling Prometheus client configure before fork If you fail in that it's initialised after fork and multiple directories in /tmp created. |
When running yabeda rails for clustered puma and does not work for streaming metrics, any ideas?
We are running it via puma config
bundle exec puma -C config/puma.rb
The text was updated successfully, but these errors were encountered: