Revision history [back]

click to hide/show revision 1
initial version

how to enable hardware metrics on gnocchi

My current environment is Ocata and gnochi is getting all the metrics except hardware metrics. I have configure snmp and snmpwalk is working fine. Somehow, gnocchi is show any any hardware metrics.

cat /etc/ceilometer/gnocchi.resource.yml


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:

    • 'memory'
    • 'memory.usage'
    • 'memory.resident'
    • 'memory.bandwidth.total'
    • 'memory.bandwidth.local'
    • 'vcpus'
    • 'cpu'
    • 'cpu.delta'
    • 'cpu_util'
    • 'cpu_l3_cache'
    • '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'
    • 'compute.instance.booting.time'
    • 'perf.cpu.cycles'
    • 'perf.instructions'
    • 'perf.cache.references'
    • 'perf.cache.misses' attributes: host: resource_metadata.(instance_host|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 event_delete: compute.instance.delete.start event_attributes: id: instance_id event_associated_resources: instance_network_interface: '{"=": {"instance_id": "%s"}}' instance_disk: '{"=": {"instance_id": "%s"}}'
  • resource_type: instance_network_interface metrics:

    • 'network.outgoing.packets.rate'
    • 'network.incoming.packets.rate'
    • 'network.outgoing.packets'
    • 'network.incoming.packets'
    • 'network.outgoing.packets.drop'
    • 'network.incoming.packets.drop'
    • 'network.outgoing.packets.error'
    • 'network.incoming.packets.error'
    • '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.size'
    • 'image.download'
    • 'image.serve' attributes: name: resource_metadata.name container_format: resource_metadata.container_format disk_format: resource_metadata.disk_format event_delete: image.delete event_attributes: id: resource_id
  • 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.update'
    • 'router'
    • 'router.create'
    • 'router.update'
    • 'ip.floating'
    • 'ip.floating.create'
    • 'ip.floating.update' event_delete: floatingip.delete.end event_attributes: id: resource_id
  • resource_type: stack metrics:

    • 'stack.create'
    • 'stack.update'
    • 'stack.delete'
    • 'stack.resume'
    • 'stack.suspend'
  • resource_type: swift_account metrics:

    • 'storage.objects.incoming.bytes'
    • 'storage.objects.outgoing.bytes'
    • 'storage.api.request'
    • 'storage.objects.size'
    • 'storage.objects'
    • 'storage.objects.containers'
    • 'storage.containers.objects'
    • 'storage.containers.objects.size'
  • resource_type: volume metrics:

    • 'volume'
    • 'volume.size'
    • 'snapshot.size'
    • 'volume.snapshot.size'
    • 'volume.backup.size' attributes: display_name: resource_metadata.(display_name|name) volume_type: resource_metadata.volume_type event_delete: volume.delete.start event_attributes: id: resource_id
  • resource_type: host metrics:

    • 'hardware.cpu.load.1min'
    • 'hardware.cpu.load.5min'
    • 'hardware.cpu.load.15min'
    • 'hardware.cpu.util'
    • 'hardware.memory.total'
    • 'hardware.memory.used'
    • 'hardware.memory.swap.total'
    • 'hardware.memory.swap.avail'
    • 'hardware.memory.buffer'
    • 'hardware.memory.cached'
    • 'hardware.network.ip.outgoing.datagrams'
    • 'hardware.network.ip.incoming.datagrams'
    • 'hardware.system_stats.cpu.idle'
    • 'hardware.system_stats.io.outgoing.blocks'
    • 'hardware.system_stats.io.incoming.blocks' attributes: host_name: resource_metadata.resource_url
  • resource_type: host_disk metrics:

    • 'hardware.disk.size.total'
    • 'hardware.disk.size.used' attributes: host_name: resource_metadata.resource_url device_name: resource_metadata.device
  • resource_type: host_network_interface metrics:

    • 'hardware.network.incoming.bytes'
    • 'hardware.network.outgoing.bytes'
    • 'hardware.network.outgoing.errors' attributes: host_name: resource_metadata.resource_url device_name: resource_metadata.name

snmpd.conf sinks: - network_sink - name: meter_snmp interval: 60 resources: - snmp://10.10.128.46 - snmp://10.10.128.47 - snmp://10.10.128.48 meters: - "hardware.cpu" - "hardware.memory" - "hardware.disks" - "hardware.network" - "hardware.network" - "hardware.system_stats" sinks: - meter_sink

Metrics

root@ocata-controller ~(keystone_admin)]# gnocchi metric list +--------------------------------------+---------------------+---------------------------------+------+--------------------------------------+ | id | archive_policy/name | name | unit | resource_id | +--------------------------------------+---------------------+---------------------------------+------+--------------------------------------+ | 0007516c-18ac-44ef-a436-6f5977e19a02 | low | cpu_l3_cache | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 004189b2-e45e-42d3-b2c4-8aa2fea85846 | low | disk.read.bytes.rate | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 0063ad38-0d99-4df9-9121-289d2af0951f | low | subnet.update | None | b38836dd-18e3-4745-8a9f-4d47c3e6456a | | 015e883f-57b8-4fb6-854f-8e0c5993f2f8 | low | disk.ephemeral.size | GB | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 01d98221-a462-4f4b-8670-f9c2cc2012ac | low | volume.snapshot.size | None | b60e308c-650d-47f5-8296-ca47f4ed211f | | 0222f1ac-144d-448e-b6ac-99c61cb97eec | low | perf.instructions | None | ea329831-2d02-47dc-a68c-91a59876cdd8 | | 03018d9c-4c8a-4e20-a59b-14689747da3c | low | storage.objects.incoming.bytes | None | d924fce4-c55a-419a-892d-58861555f509 | | 03f84b3c-419f-46ca-b83d-cec42a15241a | low | bandwidth | None | b38836dd-18e3-4745-8a9f-4d47c3e6456a | | 04c29a7a-f515-43e4-8d66-1e5dd29b7bf5 | low | cpu | None | 71fe2638-c001-492d-9177-52f2975f496d | | 0503f18c-768b-4b8f-aea5-4af7eef66c9f | low | disk.ephemeral.size | GB | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 051ab687-35e5-4c9e-9b6f-1657496fb5df | low | disk.capacity | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 06d236ce-777f-458d-8856-c2905c78e08a | low | storage.objects.size | B | d924fce4-c55a-419a-892d-58861555f509 | | 083a3ef5-73de-42ae-bf53-30b74793c55e | low | port.create | None | b38836dd-18e3-4745-8a9f-4d47c3e6456a | | 08dcf591-2d03-4684-b8b2-3cf7fbed0ea4 | low | disk.write.bytes | None | cb3275f6-485f-42bb-adce-dd4447be4989 | | 09b9c8d8-6944-4517-b223-4902b20be86d | low | perf.instructions | None | 71fe2638-c001-492d-9177-52f2975f496d | | 0b19ab1e-da63-4b6b-b746-d26bcc63aa5c | low | storage.containers.objects | None | 4ff4b8a9-2251-49f2-b284-fb32da8d049e | | 0b6b5dab-1e0f-4447-9591-2425c7e60591 | low | disk.read.requests | None | cb3275f6-485f-42bb-adce-dd4447be4989 | | 0bb24556-1932-4975-bcbe-40e8995f1ba6 | low | port.create | None | 67ff49ea-4b76-4568-ad88-52b2dd6403d5 | | 0c0e174c-118c-4ab2-9079-d64e69e5c2c7 | low | volume.backup.size | None | 7e235e93-e87f-4168-81a0-330d1246686c | | 0ce31210-7135-475e-9b7c-e4b617e33ab7 | low | storage.objects.size | B | 03bbb253-62be-49e6-b132-9b0462425f71 | | 0e027c21-ea87-4718-ba35-e6bb673cf5a2 | low | volume.snapshot.size | None | b5d84ced-8e84-42d0-901f-92779f63f4c3 | | 0f5befb3-2d72-4e65-b51e-6fccd9fa193c | low | cpu_l3_cache | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 1014c591-90bc-4cff-ac62-62657f60ae4f | low | disk.write.requests | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 10d6bd7e-e73b-4394-8320-4637fe0be57e | low | disk.read.requests.rate | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 10d73363-56bf-40ce-a7c8-faaf666c6efc | low | disk.write.requests.rate | None | 71fe2638-c001-492d-9177-52f2975f496d | | 10edd73c-d069-4c6f-b7cc-d171ba188a31 | low | cpu.delta | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 10f1280b-2aa8-4566-9108-a79e378b00c2 | low | memory | MB | cb3275f6-485f-42bb-adce-dd4447be4989 | | 13de1825-eeb3-4040-bf85-42fa4fd6f736 | low | cpu | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 1411c796-61b5-4149-9e5e-43ac1563e852 | low | cpu.delta | None | 02e75f59-a3ed-483a-9539-04bea4b75d1e | | 143f2e80-e153-4f50-b3df-d62734a9436a | low | volume.snapshot.size | None | b3f63d07-1205-4a78-9823-f61e40250e08 | | 14c85ec9-dbfb-40da-97dc-5c24bf1862f5 | low | network.update | None | b38836dd-18e3-4745-8a9f-4d47c3e6456a | | 1644f50a-0ae9-426a-9042-9497983bf9cf | low | disk.read.bytes.rate | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 16476d64-306f-432a-a4d3-3bdcb075e3a7 | low | snapshot.size | None | 84a19c58-557d-46e1-ad28-8cf56d96d0f0 | | 17b60901-ae48-43f4-a28f-0b45359848ae | low | compute.instance.booting.time | None | 71fe2638-c001-492d-9177-52f2975f496d | | 17ea8e7b-34d3-4efa-b825-e5081fb07dc9 | low | disk.read.requests.rate | None | 71fe2638-c001-492d-9177-52f2975f496d | | 182f9b86-d495-433c-aad6-2b264aed7b67 | low | volume | None | 84a19c58-557d-46e1-ad28-8cf56d96d0f0 | | 19300178-d84a-42b5-ab05-83515d7fe2c6 | low | cpu | None | ea329831-2d02-47dc-a68c-91a59876cdd8 | | 1b06c1a7-565b-464c-ae5d-2d162052c92a | low | perf.cache.references | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 1dbdd992-238e-4580-b446-6b65311cb44a | low | memory.usage | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 1dd654a6-450d-4aeb-b5cc-1282a9867682 | low | storage.objects.incoming.bytes | None | 4ff4b8a9-2251-49f2-b284-fb32da8d049e | | 1df724ed-7e64-401b-ad0d-7000332eed4e | low | cpu_util | None | 02e75f59-a3ed-483a-9539-04bea4b75d1e | | 1e160a3f-3db7-4757-b76b-d87d417488d1 | low | storage.containers.objects.size | None | 4ff4b8a9-2251-49f2-b284-fb32da8d049e | | 1e4d308d-ef71-48af-a288-e2e9f9af1dc7 | low | volume.snapshot.size | None | 7e235e93-e87f-4168-81a0-330d1246686c | | 1ee32e0c-0d4b-41e5-98ae-1c85f68357a9 | low | volume | None | b3f63d07-1205-4a78-9823-f61e40250e08 | | 1ee7750c-5fac-4626-9405-21b417255f95 | low | disk.capacity | None | ea329831-2d02-47dc-a68c-91a59876cdd8 | | 20c07cc6-7a01-42f3-9441-8671976ee103 | low | ip.floating.update | None | 67ff49ea-4b76-4568-ad88-52b2dd6403d5 | | 20ef1e9f-8d94-493c-9a33-f7fbe6ca9026 | low | perf.instructions | None | cb3275f6-485f-42bb-adce-dd4447be4989 | | 20fed644-b814-4f9e-b33e-a7daa346aec9 | low | image.download | None | 09652b98-b3db-4f23-9ec8-37db259f2218 | | 213dc643-9182-471e-8f76-ee676f814459 | low | router | None | b38836dd-18e3-4745-8a9f-4d47c3e6456a | | 229d7e11-6fa0-42a7-a141-f5f74e9e14a1 | low | disk.allocation | None | cb3275f6-485f-42bb-adce-dd4447be4989 | | 24226265-b9c4-48b6-97a9-a6e228bc5ccd | low | storage.objects.outgoing.bytes | None | d924fce4-c55a-419a-892d-58861555f509 | | 2488865e-358f-4c8a-8795-ecf9eaa3e261 | low | disk.write.bytes.rate | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 2858f11d-ece3-45e0-8fb7-1dc0ec11fa5a | low | network | None | 67ff49ea-4b76-4568-ad88-52b2dd6403d5 | | 2b8f9183-0752-44ed-8536-682b52f6e7a0 | low | volume | None | 7e235e93-e87f-4168-81a0-330d1246686c | | 2ba91b97-e56f-40a0-8e48-04dc27cae30b | low | perf.instructions | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 2c02254c-8dd3-4bd5-8535-5625582e8d64 | low | disk.latency | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 2cf26741-eaf7-4c08-b7f5-5d95b43f04e2 | low | perf.cpu.cycles | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 2e84d112-a67c-4b63-9302-ed6fbd6539d3 | low | disk.write.requests | None | e7cf8994-13e1-4d55-a183-a87bd650bff2 | | 2ebeedbc-48f3-4ea7-9d2f-c691255982f9 | low | memory.bandwidth.total | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 2f22336d-b17e-463b-9b8d-493dfef95491 | low | disk.iops | None | cb3275f6-485f-42bb-adce-dd4447be4989 | | 30eaefc7-3985-4eb4-9d27-efa9f687ad77 | low | disk.ephemeral.size | GB | ea329831-2d02-47dc-a68c-91a59876cdd8 | | 30f7072b-0bd3-47ad-8d46-292844d96f35 | low | memory.resident | None | 71fe2638-c001-492d-9177-52f2975f496d | | 31576128-7252-4420-bda0-e4d4608ab3c8 | low | disk.read.bytes | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 31c0aef4-ec2f-4dec-adb1-944243809ba1 | low | subnet.create | None | b38836dd-18e3-4745-8a9f-4d47c3e6456a | | 321bcadd-beee-400b-8a03-227b64a8d947 | low | disk.allocation | None | 71fe2638-c001-492d-9177-52f2975f496d | | 33956861-0acd-470b-a980-37323e4516f0 | low | disk.allocation | None | 02e75f59-a3ed-483a-9539-04bea4b75d1e | | 34f5959e-9af8-41c9-ae1b-a57075f3642a | low | memory | MB | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 359c3efb-79a0-4b8c-8e1f-b69ceb03a503 | low | disk.iops | None | 71fe2638-c001-492d-9177-52f2975f496d | | 35a887f6-2a5e-4be9-816d-0e73d2a75627 | low | disk.read.requests | None | 71fe2638-c001-492d-9177-52f2975f496d | | 360ec84d-633e-490c-938b-877d8f503568 | low | memory | MB | ea329831-2d02-47dc-a68c-91a59876cdd8 | | 3724f67d-e6f8-466a-9e8a-526cc1245c53 | low | ip.floating | ip | b38836dd-18e3-4745-8a9f-4d47c3e6456a | | 389a0e3b-96d6-43bd-8bdd-619ed8a1ef15 | low | disk.write.requests | None | cb3275f6-485f-42bb-adce-dd4447be4989 | | 38b2abc6-6f4a-4dfa-9371-46c5b6fc7441 | low | network.update | None | 67ff49ea-4b76-4568-ad88-52b2dd6403d5 | | 39d3ab09-829e-4da5-bcb7-50a035d78c49 | low | disk.read.requests.rate | None | 928c98f6-c437-4dee-b3ed-813adc748c06 | | 3b5ce588-4c6f-4ef6-9076-741d55178712 | low | disk.latency