Compute 서비스 측정 활성화하기

Compute 서비스 측정 활성화하기

Telemetry는 notification과 에이전트 조합을 사용하여 Compute meter를 수집합니다. 해당 단계를 Compute 노드에서 수행합니다.

구성요소 설치와 구성

  1. 패키지를 설치하십시오:

    # apt-get install ceilometer-agent-compute
    
  1. /etc/ceilometer/ceilometer.conf 파일을 편집하여 다음 작업을 완료합니다:

    • [DEFAULT][oslo_messaging_rabbit] 섹션에서 RabbitMQ 메시지 큐 접근을 구성합니다:

      [DEFAULT]
      ...
      rpc_backend = rabbit
      
      [oslo_messaging_rabbit]
      ...
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = RABBIT_PASS
      

      RABBIT_PASSRabbitMQ 에서 openstack 계정에 대해 선택한 암호로 변경합니다.

    • [DEFAULT][keystone_authtoken] 섹션에서 Identity 서비스 접근을 구성합니다:

      [DEFAULT]
      ...
      auth_strategy = keystone
      
      [keystone_authtoken]
      ...
      auth_uri = http://controller:5000
      auth_url = http://controller:35357
      auth_plugin = password
      project_domain_id = default
      user_domain_id = default
      project_name = service
      username = ceilometer
      password = CEILOMETER_PASS
      

      CEILOMETER_PASS 를 Telemetry 서비스 데이터베이스에서 선택했던 암호로 변경합니다.

    • [service_credentials] 섹션에서 서비스 credential을 구성합니다:

      [service_credentials]
      ...
      os_auth_url = http://controller:5000/v2.0
      os_username = ceilometer
      os_tenant_name = service
      os_password = CEILOMETER_PASS
      os_endpoint_type = internalURL
      os_region_name = RegionOne
      

      CEILOMETER_PASS 를 Identity 서비스에서 ceilometer 사용자 암호로 변경합니다.

    • (옵션) 트러블 슈팅을 지원하기 위해, [DEFAULT] 섹션에서 verbose 로깅을 활성화합니다:

      [DEFAULT]
      ...
      verbose = True
      

Telemetry를 사용하는 Compute 구성

  • /etc/nova/nova.conf 파일을 편집하여 [DEFAULT] 섹션 내 notification을 구성합니다:

    [DEFAULT]
    ...
    instance_usage_audit = True
    instance_usage_audit_period = hour
    notify_on_state_change = vm_and_task_state
    notification_driver = messagingv2
    

설치 마무리

  1. 에이전트를 재시작합니다:

    # service ceilometer-agent-compute restart
    
  2. Compute 서비스를 재시작하십시오:

    # service nova-compute restart
    
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

Search