discourse / prometheus_exporter

A framework for collecting and aggregating prometheus metrics
MIT License
537 stars 155 forks source link

Feature Request: ActiveRecord Connection Pool Stats #93

Closed vijayanandnandam closed 5 years ago

vijayanandnandam commented 5 years ago

Hello,

Want to request instrumentation for collecting ActiveRecord connection pool stats.

Method to get stats is ActiveRecord::Base.connection_pool.stat. Documentation here

This has to be collected at worker level in cluster mode and at master level in single process mode.

SamSaffron commented 5 years ago

Sure, we collect this for Discourse. As long as it all responds I am fine to add the stat, send through a PR.

vijayanandnandam commented 5 years ago

Sent one.