gnocchi resource list has only type instance, instance_network_interface

asked 2018-04-17 05:59:03 -0500

br gravatar image

updated 2018-04-17 06:08:05 -0500

Hi All,

I can see only instance and instance_network_interface resources.

    root@cluster3-2:~# gnocchi resource list | grep 0af54b83-8a8a-4d3f-b5a4-782131986592
| 88121a74-3455-56f9-b8d5-4b683b99225b | instance_network_interface | a391261cffba4f4c827ab7420a352fe1 | 3b136545b47b40709b78b1e36cdcdc63 | instance-00000163-0af54b83-8a8a-4d3f-b5a4-782131986592-tap247c8b11-77 | 2018-03-30T04:24:18.526956+00:00 | None                             | 2018-03-30T04:24:18.526973+00:00 | None         | d8a1720063614692b88d81985a4a8284:83433afbf5954696bfcf7daf4eca608d |
| 0af54b83-8a8a-4d3f-b5a4-782131986592 | instance                   | a391261cffba4f4c827ab7420a352fe1 | 3b136545b47b40709b78b1e36cdcdc63 | 0af54b83-8a8a-4d3f-b5a4-782131986592                                  | 2018-03-30T01:08:29.426995+00:00 | None                             | 2018-04-17T10:00:59.469746+00:00 | None         | d8a1720063614692b88d81985a4a8284:83433afbf5954696bfcf7daf4eca608d |

please suggest how to get other statistics also like disk, cpu etc....

Polling.yaml
  ---
sources:
    - name: some_pollsters
      interval: 60
      meters:
        - cpu
        - memory.usage
        - network.incoming.bytes
        - network.incoming.packets
        - network.outgoing.bytes
        - network.outgoing.packets
        - disk.read.bytes
        - disk.read.requests
        - disk.write.bytes
        - disk.write.requests
        - hardware.cpu.util
        - hardware.memory.used
        - hardware.memory.total
        - hardware.memory.buffer
        - hardware.memory.cached
        - hardware.memory.swap.avail
        - hardware.memory.swap.total
        - hardware.system_stats.io.outgoing.blocks
        - hardware.system_stats.io.incoming.blocks
        - hardware.network.ip.incoming.datagrams
        - hardware.network.ip.outgoing.datagrams


gnocchi_resources.yaml
---

resources:
  - resource_type: identity
    archive_policy: low
    metrics:
      - 'identity.authenticate.success'
      - 'identity.authenticate.pending'
      - 'identity.authenticate.failure'
      - 'identity.user.created'
      - 'identity.user.deleted'
      - 'identity.user.updated'
      - 'identity.group.created'
      - 'identity.group.deleted'
      - 'identity.group.updated'
      - 'identity.role.created'
      - 'identity.role.deleted'
      - 'identity.role.updated'
      - 'identity.project.created'
      - 'identity.project.deleted'
      - 'identity.project.updated'
      - 'identity.trust.created'
      - 'identity.trust.deleted'
      - 'identity.role_assignment.created'
      - 'identity.role_assignment.deleted'

  - resource_type: ceph_account
    metrics:
      - 'radosgw.objects'
      - 'radosgw.objects.size'
      - 'radosgw.objects.containers'
      - 'radosgw.api.request'
      - 'radosgw.containers.objects'
      - 'radosgw.containers.objects.size'

  - resource_type: instance
    metrics:
      - 'instance'
      - 'memory'
      - 'memory.usage'
      - 'memory.resident'
      - 'vcpus'
      - 'cpu'
      - 'cpu.delta'
      - 'cpu_util'
      - 'disk.root.size'
      - 'disk.ephemeral.size'
      - 'disk.read.requests'
      - 'disk.read.requests.rate'
      - 'disk.write.requests'
      - 'disk.write.requests.rate'
      - 'disk.read.bytes'
      - 'disk.read.bytes.rate'
      - 'disk.write.bytes'
      - 'disk.write.bytes.rate'
      - 'disk.latency'
      - 'disk.iops'
      - 'disk.capacity'
      - 'disk.allocation'
      - 'disk.usage'
    attributes:
      host: resource_metadata.host
      image_ref: resource_metadata.image_ref
      display_name: resource_metadata.display_name
      flavor_id: resource_metadata.(instance_flavor_id|(flavor.id))
      server_group: resource_metadata.user_metadata.server_group

  - resource_type: instance_network_interface
    metrics:
      - 'network.outgoing.packets.rate'
      - 'network.incoming.packets.rate'
      - 'network.outgoing.packets'
      - 'network.incoming.packets'
      - 'network.outgoing.bytes.rate'
      - 'network.incoming.bytes.rate'
      - 'network.outgoing.bytes'
      - 'network.incoming.bytes'
    attributes:
      name: resource_metadata.vnic_name
      instance_id: resource_metadata.instance_id

  - resource_type: instance_disk
    metrics:
      - 'disk.device.read.requests'
      - 'disk.device.read.requests.rate'
      - 'disk.device.write.requests'
      - 'disk.device.write.requests.rate'
      - 'disk.device.read.bytes'
      - 'disk.device.read.bytes.rate'
      - 'disk.device.write.bytes'
      - 'disk.device.write.bytes.rate'
      - 'disk.device.latency'
      - 'disk.device.iops'
      - 'disk.device.capacity'
      - 'disk.device.allocation'
      - 'disk.device.usage'
    attributes:
      name: resource_metadata.disk_name
      instance_id: resource_metadata.instance_id

  - resource_type: image
    metrics:
      - 'image'
      - 'image.size'
      - 'image.download'
      - 'image.serve'
    attributes:
      name: resource_metadata.name
      container_format: resource_metadata.container_format
      disk_format: resource_metadata.disk_format

  - resource_type: ipmi
    metrics:
      - 'hardware.ipmi.node.power'
      - 'hardware.ipmi.node.temperature'
      - 'hardware.ipmi.node.inlet_temperature'
      - 'hardware.ipmi.node.outlet_temperature'
      - 'hardware.ipmi.node.fan'
      - 'hardware.ipmi.node.current'
      - 'hardware.ipmi.node.voltage'
      - 'hardware.ipmi.node.airflow'
      - 'hardware.ipmi.node.cups'
      - 'hardware.ipmi.node.cpu_util'
      - 'hardware.ipmi.node.mem_util'
      - 'hardware.ipmi.node.io_util'

  - resource_type: network
    metrics:
      - 'bandwidth'
      - 'network'
      - 'network.create'
      - 'network.update'
      - 'subnet'
      - 'subnet.create'
      - 'subnet.update'
      - 'port'
      - 'port.create'
      - 'port ...
(more)
edit retag flag offensive close merge delete

Comments

What metric do you catch? Depending on the metric the configuration is different.

pablobrunetti gravatar imagepablobrunetti ( 2018-04-17 16:11:52 -0500 )edit

Try using

gnocchi resource-type list gnocchi resource-type show gnocchi metric list gnocchi metric show gnocchi status

Refer https://docs.openstack.org/ocata/cli-...

Deepa gravatar imageDeepa ( 2018-04-18 01:17:47 -0500 )edit

@pablobrunetti, I want to catch disk, image and cpu. Could you please help me with respect to configuration

br gravatar imagebr ( 2018-04-18 01:45:21 -0500 )edit

I dont use gnocchi so dont have configuration handy .Have a look at https://ask.openstack.org/en/question... (has confguration).Also use gnocchi metric list command and see the output

Deepa gravatar imageDeepa ( 2018-04-18 02:07:27 -0500 )edit