config/initializers/active_metrics.rb
# Note: The legacy Postgresql adapter ignores everything except the adapter name here, just stealing the current ActiveRecord connection.
require 'active_metrics'
ActiveMetrics::Base.establish_connection(:adapter => "miq_postgres", :database => "manageiq_metrics")