Aktifkan meter layanan Compute

Aktifkan meter layanan Compute

Telemetri menggunakan kombinasi pemberitahuan dan agen untuk mengumpulkan meter Compute. Lakukanlah langkah ini pada setiap node komputasi.

Instal dan konfigurasi komponen

  1. Instal paket:

    # yum install openstack-ceilometer-compute python-ceilometerclient python-pecan
    
  1. Editlah file /etc/ceilometer/ceilometer.conf dan selesaikanlah tindakan berikut:

    • Dalam bagian ``[DEFAULT] `` dan `` [oslo_messaging_rabbit] ``, konfigurlah akses antrian pesan (message queue) “RabbitMQ”:

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

      Ganti `` RABBIT_PASS`` dengan password yang Anda pilih akun openstack di RabbitMQ.

    • Dalam bagian ``[DEFAULT] `` dan ``[keystone_authtoken] ``, konfigurlah akses layanan Identity:

      [DEFAULT]
      ...
      auth_strategy = keystone
      
      [keystone_authtoken]
      ...
      auth_uri = http://controller:5000
      auth_url = http://controller:35357
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = ceilometer
      password = CEILOMETER_PASS
      

      Gantilah CEILOMETER_PASS dengan password yang Anda pilih untuk database layanan Telemetry.

    • Dalam bagian [service_credentials], konfigurlah kredensial layanan:

      [service_credentials]
      ...
      auth_type = password
      auth_url = http://controller:5000/v3
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = ceilometer
      password = CEILOMETER_PASS
      interface = internalURL
      region_name = RegionOne
      

      Gantilah CEILOMETER_PASS dengan password yang Anda pilih untuk user ceilometer dalam pelayanan Identity.

Konfigurasikan Compute menggunakan Telemetry

  • Editlah file /etc/nova/nova.conf dan konfigurasikan pemberitahuan di bagian ``[DEFAULT] ``:

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

Finalisasi instalasi

  1. Mulailah agen dan mengkonfigurasinya untuk memulai saat booting:

    # systemctl enable openstack-ceilometer-compute.service
    # systemctl start openstack-ceilometer-compute.service
    
  1. Restart layanan Compute:

    # systemctl restart openstack-nova-compute.service
    
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.