client_ruby | Prometheus instrumentation library for Ruby applications | Runtime Evironment library
kandi X-RAY | client_ruby Summary
kandi X-RAY | client_ruby Summary
Prometheus instrumentation library for Ruby applications
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of client_ruby
client_ruby Key Features
client_ruby Examples and Code Snippets
Community Discussions
Trending Discussions on client_ruby
QUESTION
I have a RoR application with installed Prometheus-client and Telegraf daemon with Prometheus input plugin working on the instance I want to monitor.
As far as I understand I need some kind of exporter middleware to collect metrics from Prometheus::Client.registry
and expose them with /metrics
HTTP endpoint.
What I don't really understand is how to pass all metrics from different envs (e.g from rake task and app's runtime code) into the same registry (it's an instance variable of Prometheus::Middleware::Exporter.new(registry)
) of the same instance of Prometheus::Middleware::Exporter
middleware?
Also, will urls = ["http://localhost:3000/metrics"]
config of Prometheus input plugin for Telegraf work on EC2 instance for example?
Thank you for advices.
...ANSWER
Answered 2017-Apr-02 at 06:21Perhaps an easier way to go would be to setup a Telegraf client on the same host (with Prometheus output and statsd input) and then fire events from your application into Telegraf's input, in statsd format. Telegraf would then turn around and emit these metrics in Prometheus's format.
in this way you'll get both Telegraf's host-level metrics (free memory, disc usage, etc) AND your application's metrics, all exported in the same port. It doesn't require any Ruby-specific code, just the ability to fire UDP messages from your app into a local port.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install client_ruby
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page