yabeda-prometheus
yabeda-prometheus copied to clipboard
Adapter to expose metrics collected by Yabeda plugins to Prometheus
Hi Yabeda-rb team, We've bumped into issues like this  Is there any possibility to dump the file store properly?
Hi, In some cases it would be useful to have rails metrics and sidekiq metrics available on the same endpoint, so no extra port should be opened just for sidekiq....
Hi, there I test `yabeda-promtheus` with Passenger, but it seems not working. But the local machine is working well with puma. After I read the source code, I guess it...
Would be great to support the [summary metric type](https://prometheus.io/docs/concepts/metric_types/#summary). It is already supported in the [prometheus-client](https://github.com/prometheus/client_ruby#summary). I'm ok with making a PR, any recommendation on how to approach this? This...
Hello folks, thanks for creating this awesome gem, I am facing an issue with WEBrick on my app, my app runes on passenger, running `Yabeda::Prometheus::Exporter.start_metrics_server!` works fine and the metrics...
Should fix #21 I've been working on getting yabeda into our app which runs on passenger. I finally have it running, but faced a couple of issues that I've been...
Metrics exposed has duplicate label 'le'; hence, metrics cannot be imported to Prometheus. ``` rails_db_runtime_seconds_bucket{action="redirect_to_new_route",controller="home",format="html",le="0.005",method="get",status="200",le="0.01"} 0.0 rails_db_runtime_seconds_bucket{action="redirect_to_new_route",controller="home",format="html",le="0.005",method="get",status="200",le="0.025"} 0.0 rails_db_runtime_seconds_bucket{action="redirect_to_new_route",controller="home",format="html",le="0.005",method="get",status="200",le="0.05"} 0.0 rails_db_runtime_seconds_bucket{action="redirect_to_new_route",controller="home",format="html",le="0.005",method="get",status="200",le="0.1"} 0.0 ``` ### ENV ``` gem "prometheus-client", '~> 4.2.0'...
I am getting an exception while using `yabeda_prometheus` plugin in `config/puma.rb` error: ``` Puma caught this error: undefined method `registry' for Yabeda::Prometheus:Module (NoMethodError) /Users/arjun/x/vendor/cache/ruby/2.7.0/gems/yabeda-prometheus-0.9.0/lib/yabeda/prometheus/exporter.rb:53:in `initialize' /Users/arjun/x/vendor/cache/ruby/2.7.0/gems/rack-2.2.7/lib/rack/builder.rb:158:in `new' /Users/arjun/x/vendor/cache/ruby/2.7.0/gems/rack-2.2.7/lib/rack/builder.rb:158:in `block in...
Thanks for all the work on this great gem. Is there a simple way to protect the "/metrics" endpoint using a bearer token? Or is it the way to go...
Yabeda doesn't offer a way to pass the the `grouping_key` param to the Prometheus PushGateway client. See the parameter here: https://github.com/prometheus/client_ruby/blob/main/lib/prometheus/client/push.rb#L31-L35 It allows for more granularity when pushing metrics to...