Ask Your Question
0

Ceilometer API call for events information

asked 2016-08-10 01:07:35 -0500

Jayjee gravatar image

I'm making API call into ceilometer (Juno release) to get information about Openstack events. I don't seem to get any information about the source of the event - instance id or resource id or entity id of the resource on which the event originated. GET v2/events does not return this information. It returns only the following -

{ "traits": [ { "type": "string", "name": "service", "value": "identity.contrail300" } ], "generated": "2016-08-05T15:31:48.412000", "message_id": "142b72b7-79ee-4945-9233-3c8875fd77b1", "event_type": "identity.authenticate"

Any idea how can get more information about each event, especially the resource id?

Thanks, Jay

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-08-10 11:37:33 -0500

Jayjee gravatar image

Thanks so much for the response. What command / API call did you make to get this output?

edit flag offensive delete link more

Comments

It's a regular file so feel free to use vim, cat, less to check it's content.

vim /etc/ceilometer/event_definitions.yaml
yprokule gravatar imageyprokule ( 2016-08-11 03:42:57 -0500 )edit
0

answered 2016-08-10 02:00:07 -0500

yprokule gravatar image

It all depends on the event's type. E.g compute.instance.* events:

- event_type: compute.instance.*
  traits: &instance_traits
    tenant_id:
      fields: payload.tenant_id
    user_id:
      fields: payload.user_id
    instance_id:
      fields: payload.instance_id
    host:
      fields: publisher_id.`split(., 1, 1)`
    service:
      fields: publisher_id.`split(., 0, -1)`
    memory_mb:
      type: int
      fields: payload.memory_mb
    disk_gb:
      type: int
      fields: payload.disk_gb
    root_gb:
      type: int
      fields: payload.root_gb
    ephemeral_gb:
      type: int
      fields: payload.ephemeral_gb
    vcpus:
      type: int
      fields: payload.vcpus
    instance_type_id:
      type: int
      fields: payload.instance_type_id

As U can see - there is a bunch of useful info.

For other traits available in Juno release check /etc/ceilometer/event_definitions.yaml

And definitely - http://docs.openstack.org/developer/c...

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

1 follower

Stats

Asked: 2016-08-10 01:07:35 -0500

Seen: 87 times

Last updated: Aug 10 '16