{"repo":"yabeda-rb/yabeda-prometheus","free":true,"listed":false,"github":"https://github.com/yabeda-rb/yabeda-prometheus","clone":"git clone https://github.com/yabeda-rb/yabeda-prometheus.git","description":"Adapter to expose metrics collected by Yabeda plugins to Prometheus","language":"Ruby","stars":129,"topics":["prometheus","monitoring","yabeda"],"license":"MIT","category":"analytics","readme_excerpt":"Adapter for easy exporting your collected metrics from your application to the [Prometheus]! One more? Why not X? - https://github.com/discourse/prometheus exporter – built on assumption that various processes (web, jobs, etc) are able to communicate between them on single machine. But in containerized environments all your processes on different “machines”! - https://github.com/getqujing/prome – actually inspired this all these gems but seems abandoned and lacks extensibility. Installation Add this line to your application's Gemfile: And then execute: $ bundle Usage 1. Exporting from running web servers: Place following in your config.ru before running your application: Metrics will be available on /metrics path (configured by :path option), additionally metrics can be served only on specific port with :port option. Alternatively you can mount it in Rails application routes as standalone Rack application: Additional options (like :port ) are also accepted and forwarded to Prometheus Exporter middleware. 2. Run web-server from long-running processes (delayed jobs, …): WEBrick will be launched in separate thread and will serve metrics on /metrics path. ATTENTION : Starting from Ruby 3.0 WEBrick isn't included with Ruby by default. You should either add gem \"webrick\" into your Gemfile or launch Yabeda::Prometheus::Exporter.rack app with application server of your choice. See [yabeda-sidekiq] for example. Listening address is configured via PROMETHEUS EXPORTER BIND env variable ","default_branch":null,"files":null,"tree":[],"storefront":"/r/yabeda-rb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yabeda-rb/yabeda-prometheus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}