app/models/manageiq/providers/redhat/infra_manager/metrics_capture.rb
#
# Connect / Disconnect / Intialize methods
#
Connect / Disconnect / Intialize methods
Connect / Disconnect / Intialize methods
def perf_init_rhevm
    raise "no metrics credentials defined" unless target.ext_management_system.has_authentication_type?(:metrics)
    username, password = target.ext_management_system.auth_user_pwd(:metrics)
    conn_info = {
      :host     => target.ext_management_system.hostname,
      :database => target.ext_management_system.history_database_name,
      :username => username,
      :password => password
    }
    require 'ovirt_metrics'
    OvirtMetrics.establish_connection(conn_info)
  end
def perf_init_rhevm raise "no metrics credentials defined" unless target . ext_management_system . has_authentication_type? ( :metrics ) username , password = target . ext_management_system . auth_user_pwd ( :metrics ) conn_info = { :host => target . ext_management_system . hostname , :database => target . ext_management_system . history_database_name , :username => username , :password => password } require 'ovirt_metrics' OvirtMetrics . establish_connection ( conn_info ) end
Connect / Disconnect / Intialize methods
Connect / Disconnect / Intialize methods