Export metrics in prometheus format #60181
Ticket
What are you trying to accomplish?
Add Prometheus metrics endpoints. Some OP instances are running inside closed networks without ability to use appsignal.
What approach did you choose and why?
Add yabeda gems to get metrics by Prometheus when OPENPROJECT_PROMETHEUS_EXPORT environment set to 'true'.
I would like to see some documentation on what is being exported with this defualt configuration.
English is not my native, so could you check it? And do we need to add some short docs from gems used?
@top4ek Why did rb_sys become dependency of pry 0.15.2?
Oh, my bad. Conflicts while rebasing, look like I've forgot to "bundle" after.
Unfortunately bundle (bundle install) or bundle lock seem to be ok with that extra dependency if it is already installed, seems that only clean install would make bundle complain, but not fix it
Interesting. Just pulled dev and bundled — got rb_sys removed. Looks like you're right, in my case there's some updates triggered tree rebuild.
Removing pry before running bundle also does remove extra dependency, it makes me wonder why did bundle install in CI fail complaining about odd dependency instead of silently fixing it
Found it bundle config --local deployment true makes bundle error on incorrect dependencies
Hi, just wondering: Is there some sort of docs as to how to configure and/or scrape the metrics?
@famfop hi, you can start here.