Prometheus Exporter for Ruby

649 views
Skip to first unread message

sam.s...@gmail.com

unread,
Feb 7, 2018, 10:27:20 AM2/7/18
to Prometheus Users
Just a note to say I released prometheus exporter for Ruby at:


Blog post at:


This is production ready and used on all our hosted sites at Discourse. 

It is a departure from the official gem in that

1. It deals with the critical multi process issue that Ruby app servers have 

2. It implements summary in an accurate way  (like the go client does)  


Ben Kochie

unread,
Feb 8, 2018, 9:40:32 AM2/8/18
to sam.s...@gmail.com, Prometheus Users
Thanks, this is pretty nice.  I would recommend naming it something a little less generic, maybe prometheus_ruby_exporter, since this seems to be a very ruby-specific system.

The other one big downside to this approach is that the lifecycle of the exporter is not directly tied to the ruby code lifecycle.  It's desired that when you restart/hup the rails server (puma, unicorn, etc) the metrics counters are purged.  Maybe it would be useful to have a reset method the send-metrics endpoint.  This could be called by rails in the startup/hup procedure.  This would make it easy for obsolete metric names to be purged on new code releases.

Also, FYI, GitLab has been working on solving the long standing multi-process issue in the official Prometheus ruby client.  We have a beta quality gem available for testing, but it will require some work to merge it upstream.


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/8a8b26c6-b369-428c-b9d8-91e4c1869d94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages