Ask Your Question
3

Kilo version Insance meter event_type

asked 2015-07-12 04:21:25 -0500

frz59 gravatar image

Hi there. I was used "instance" meter to obtain when an instance was created or destroyed. But in kilo version I can't find the "event_type" field in the result.

the first part of result:

{
counter_name: "instance"
user_id: "9ff6a8fa764c4a15a6502c6a9816219a"
resource_id: "4e2b22f1-fcf7-49ec-a9fd-ad6b78d78428"
timestamp: "2015-07-12T08:21:19"
recorded_at: "2015-07-12T08:21:19.699000"
message_id: "f930144e-286e-11e5-8229-aa2c86bde947"
source: "openstack"
counter_unit: "instance"
counter_volume: 1
project_id: "5ba5c6d0608441a7a45fce8fbef9b78d"
resource_metadata: {
ramdisk_id: "None"
flavor.vcpus: "1"
flavor.ephemeral: "0"
display_name: "test100"
flavor.ram: "2048"
status: "active"
ephemeral_gb: "0"
flavor.name: "m1.small"
disk_gb: "20"
kernel_id: "None"
image.id: "7c5a68a8-c69f-4d34-87b9-8f86ea390f92"
flavor.id: "2"
host: "aaa1dd474b64f58a4e96b8670c5554303dd474db2c2bbdce7b3ea706"
OS-EXT-AZ.availability_zone: "nova"
image.name: "Ubuntu14.04"
image_ref_url: "http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/images/7c5a68a8-c69f-4d34-87b9-8f86ea390f92"
name: "instance-00000002"
flavor.disk: "20"
root_gb: "20"
image.links: "[{'href': 'http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/images/7c5a68a8-c69f-4d34-87b9-8f86ea390f92', 'rel': 'bookmark'}]"
memory_mb: "2048"
instance_type: "2"
vcpus: "1"
image_ref: "7c5a68a8-c69f-4d34-87b9-8f86ea390f92"
flavor.links: "[{'href': 'http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/flavors/2', 'rel': 'bookmark'}]"
}-
counter_type: "gauge"
}

full result of instance meter:

[{"counter_name": "instance", "user_id": "9ff6a8fa764c4a15a6502c6a9816219a", "resource_id": "4e2b22f1-fcf7-49ec-a9fd-ad6b78d78428", "timestamp": "2015-07-12T08:51:19", "recorded_at": "2015-07-12T08:51:19.463000", "message_id": "29ef0334-2873-11e5-8229-aa2c86bde947", "source": "openstack", "counter_unit": "instance", "counter_volume": 1.0, "project_id": "5ba5c6d0608441a7a45fce8fbef9b78d", "resource_metadata": {"ramdisk_id": "None", "flavor.vcpus": "1", "flavor.ephemeral": "0", "display_name": "test100", "flavor.ram": "2048", "status": "active", "ephemeral_gb": "0", "flavor.name": "m1.small", "disk_gb": "20", "kernel_id": "None", "image.id": "7c5a68a8-c69f-4d34-87b9-8f86ea390f92", "flavor.id": "2", "host": "aaa1dd474b64f58a4e96b8670c5554303dd474db2c2bbdce7b3ea706", "OS-EXT-AZ.availability_zone": "nova", "image.name": "Ubuntu14.04", "image_ref_url": "http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/images/7c5a68a8-c69f-4d34-87b9-8f86ea390f92", "name": "instance-00000002", "flavor.disk": "20", "root_gb": "20", "image.links": "[{'href': 'http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/images/7c5a68a8-c69f-4d34-87b9-8f86ea390f92', 'rel': 'bookmark'}]", "memory_mb": "2048", "instance_type": "2", "vcpus": "1", "image_ref": "7c5a68a8-c69f-4d34-87b9-8f86ea390f92", "flavor.links": "[{'href': 'http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/flavors/2', 'rel': 'bookmark'}]"}, "counter_type": "gauge"}, {"counter_name": "instance", "user_id": "9ff6a8fa764c4a15a6502c6a9816219a", "resource_id": "4e2b22f1-fcf7-49ec-a9fd-ad6b78d78428", "timestamp": "2015-07-12T08:41:19", "recorded_at": "2015-07-12T08:41:19.440000", "message_id": "c44b58a8-2871-11e5-8229-aa2c86bde947", "source": "openstack", "counter_unit": "instance", "counter_volume": 1.0, "project_id": "5ba5c6d0608441a7a45fce8fbef9b78d", "resource_metadata": {"ramdisk_id": "None", "flavor.vcpus": "1", "flavor.ephemeral": "0", "display_name": "test100", "flavor.ram": "2048", "status": "active", "ephemeral_gb": "0", "flavor.name": "m1.small", "disk_gb": "20", "kernel_id": "None", "image.id": "7c5a68a8-c69f-4d34-87b9-8f86ea390f92", "flavor.id": "2", "host": "aaa1dd474b64f58a4e96b8670c5554303dd474db2c2bbdce7b3ea706", "OS-EXT-AZ.availability_zone": "nova", "image.name": "Ubuntu14.04", "image_ref_url": "http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/images/7c5a68a8-c69f-4d34-87b9-8f86ea390f92", "name": "instance-00000002", "flavor.disk": "20", "root_gb": "20", "image.links": "[{'href': 'http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/images/7c5a68a8-c69f-4d34-87b9-8f86ea390f92', 'rel': 'bookmark'}]", "memory_mb": "2048", "instance_type": "2", "vcpus": "1", "image_ref": "7c5a68a8-c69f-4d34-87b9-8f86ea390f92", "flavor.links": "[{'href': 'http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/flavors/2', 'rel': 'bookmark'}]"}, "counter_type": "gauge"}, {"counter_name": "instance", "user_id": "9ff6a8fa764c4a15a6502c6a9816219a", "resource_id": "4e2b22f1-fcf7-49ec-a9fd-ad6b78d78428", "timestamp": "2015-07-12T08:31:19", "recorded_at": "2015-07-12T08:31:19.427000", "message_id": "5ea87f40-2870-11e5-8229-aa2c86bde947", "source": "openstack", "counter_unit": "instance", "counter_volume": 1.0, "project_id": "5ba5c6d0608441a7a45fce8fbef9b78d", "resource_metadata": {"ramdisk_id": "None", "flavor.vcpus": "1", "flavor.ephemeral": "0", "display_name": "test100", "flavor.ram": "2048", "status": "active", "ephemeral_gb": "0", "flavor.name": "m1.small", "disk_gb": "20", "kernel_id": "None", "image.id": "7c5a68a8-c69f-4d34-87b9-8f86ea390f92", "flavor.id": "2", "host": "aaa1dd474b64f58a4e96b8670c5554303dd474db2c2bbdce7b3ea706", "OS-EXT-AZ.availability_zone": "nova", "image.name": "Ubuntu14.04", "image_ref_url": "http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/images/7c5a68a8-c69f-4d34-87b9-8f86ea390f92", "name": "instance-00000002", "flavor.disk": "20", "root_gb": "20", "image.links": "[{'href': 'http://xx.xx.xx.xx:8774/ed361dfd788846d5bbce6998e57fa94c/images ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-07-14 04:21:18 -0500

Antonio1120 gravatar image

In KILO version installed as all-in-one you must config ceilometer by yourself. Configure the Compute service to send notifications to the message bus. Edit the /etc/nova/nova.conf file and configure notifications in the [DEFAULT] section:

[DEFAULT]
...
instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
notification_driver = messagingv2
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-07-12 04:21:25 -0500

Seen: 101 times

Last updated: Jul 14 '15