Exemple #1
0
                'OS_CPU_OC_RATIO', 1)))
    os_ram_overcomit_ratio = config.get(
        'OS_RAM_OC_RATIO', float(
            os.getenv(
                'OS_RAM_OC_RATIO', 1)))

    osclient = OSClient(
        os_keystone_url,
        os_password,
        os_tenant_name,
        os_username,
        os_user_domain,
        os_region,
        os_timeout,
        os_retries)
    oscache = OSCache(os_polling_interval, os_region)
    collectors.append(oscache)

    check_os_api = CheckOSApi(oscache, osclient)
    collectors.append(check_os_api)
    neutron_agent_stats = NeutronAgentStats(oscache, osclient)
    collectors.append(neutron_agent_stats)
    cinder_service_stats = CinderServiceStats(oscache, osclient)
    collectors.append(cinder_service_stats)
    nova_service_stats = NovaServiceStats(oscache, osclient)
    collectors.append(nova_service_stats)
    hypervisor_stats = HypervisorStats(
        oscache,
        osclient,
        os_cpu_overcomit_ratio,
        os_ram_overcomit_ratio)
                'OS_CPU_OC_RATIO', 1)))
    os_ram_overcomit_ratio = config.get(
        'OS_RAM_OC_RATIO', float(
            os.getenv(
                'OS_RAM_OC_RATIO', 1)))

    osclient = OSClient(
        os_keystone_url,
        os_password,
        os_tenant_name,
        os_username,
        os_user_domain,
        os_region,
        os_timeout,
        os_retries)
    oscache = OSCache(os_polling_interval, os_region)
    collectors.append(oscache)

    check_os_api = CheckOSApi(oscache, osclient)
    collectors.append(check_os_api)
    neutron_agent_stats = NeutronAgentStats(oscache, osclient)
    collectors.append(neutron_agent_stats)
    cinder_service_stats = CinderServiceStats(oscache, osclient)
    collectors.append(cinder_service_stats)
    nova_service_stats = NovaServiceStats(oscache, osclient)
    collectors.append(nova_service_stats)
    hypervisor_stats = HypervisorStats(
        oscache,
        osclient,
        os_cpu_overcomit_ratio,
        os_ram_overcomit_ratio)