Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The solution to this problem only applies to a vmware backend. I also added a transformer for memory utilization % as a bonus. Here is what is working for us; ymmv.

    ---
sources:
- name: meter_source
  interval: 60
  meters:
        - "*"
        - "!volume.create.*"
        - "!volume.delete.*"
        - "!volume.update.*"
        - "!volume.resize.*"
        - "!volume.attach.*"
        - "!volume.detach.*"
        - "!snapshot.create.*"
        - "!snapshot.delete.*"
        - "!identity.authenticate.*"
        - "!storage.api.request"
  sinks:
      - meter_sink
- name: memory_source
  interval: 60
  meters:
      - "memory.usage"
  sinks:
      - memory_util
sinks:
- name: meter_sink
  transformers:
  publishers:
      - notifier://

- name: memory_util
  transformers:
      - name: "arithmetic"
        parameters:
            target:
                name: "memory_util"
                unit: "%"
                type: "gauge"
                expr: "100.0 * $(memory.usage) / $(memory.usage).resource_metadata.flavor.ram "
  publishers:
      - notifier://

/etc/nova/nova-compute.conf _and_ /etc/ceilometer/ceilometer.conf on all compute nodes should both resemble the following. Edit host info to suit the environment.

    [DEFAULT]
    compute_driver=vmwareapi.VMwareVCDriver
    log_file=nova-compute-vmware-vcenter.log
    host=vcenter-hostname
    [vmware]
    cache_prefix=$host
    cluster_name=clustername
    host_ip=10.20.0.7
    host_username=administrator@vsphere.local
    host_password=<<password>>
    insecure=True
    api_retry_count=5
    maximum_objects=100
    task_poll_interval=5.0
    datastore_regex=<<regex>>
    use_linked_clone=true

The solution to this problem only applies to a vmware backend. I also added a transformer for memory utilization % as a bonus. Here is what is working for us; ymmv.

/etc/ceilometer/ceilometer.conf should contain this line, with your desired interval:

evaluation_interval = 60

/etc/ceilometer/pipeline.yaml:

    ---
sources:
- name: meter_source
  interval: 60
  meters:
        - "*"
        - "!volume.create.*"
        - "!volume.delete.*"
        - "!volume.update.*"
        - "!volume.resize.*"
        - "!volume.attach.*"
        - "!volume.detach.*"
        - "!snapshot.create.*"
        - "!snapshot.delete.*"
        - "!identity.authenticate.*"
        - "!storage.api.request"
  sinks:
      - meter_sink
- name: memory_source
  interval: 60
  meters:
      - "memory.usage"
  sinks:
      - memory_util
sinks:
- name: meter_sink
  transformers:
  publishers:
      - notifier://

- name: memory_util
  transformers:
      - name: "arithmetic"
        parameters:
            target:
                name: "memory_util"
                unit: "%"
                type: "gauge"
                expr: "100.0 * $(memory.usage) / $(memory.usage).resource_metadata.flavor.ram "
  publishers:
      - notifier://

/etc/nova/nova-compute.conf _and_ /etc/ceilometer/ceilometer.conf on all compute nodes should both resemble the following. Edit host info to suit the environment.

    [DEFAULT]
    compute_driver=vmwareapi.VMwareVCDriver
    log_file=nova-compute-vmware-vcenter.log
    host=vcenter-hostname
    [vmware]
    cache_prefix=$host
    cluster_name=clustername
    host_ip=10.20.0.7
    host_username=administrator@vsphere.local
    host_password=<<password>>
    insecure=True
    api_retry_count=5
    maximum_objects=100
    task_poll_interval=5.0
    datastore_regex=<<regex>>
    use_linked_clone=true