prometheus_exporter icon indicating copy to clipboard operation
prometheus_exporter copied to clipboard

ALLOWED Config Labels is inaccurate for Rails 6.1

Open tjchambers opened this issue 3 years ago • 2 comments

IN the code the list of allowed config labels for ActiveRecord are username, database, host and port. These are fetched from an ActiveRecord::DatabaseConfigurations::HashConfig object using public_send. Hence they expect a public method to return those values.

In Rails 6.1.4.1 (and I believe from Rails 6.1.0.rc1 onward) only 2 of those methods exist in Rails - database and host.

So in fact username and port - while allowed - return an NoMethodError in place of the valued content.

tjchambers avatar Sep 20 '21 23:09 tjchambers