Bug 1559975 - RFE: Use aodh alarm to track user and project creation in Ceilometer/gnocchi
Summary: RFE: Use aodh alarm to track user and project creation in Ceilometer/gnocchi
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ceilometer
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Mehdi ABAAKOUK
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-23 16:12 UTC by Stan Toporek
Modified: 2018-04-16 08:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-16 08:59:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Stan Toporek 2018-03-23 16:12:18 UTC
Description of problem:

Currently aodh cannot create a alarm when a user or project is created, so event cannot be tracked with Ceilomenter/gnocchi.

Looks like there is a metric resource but it is not defined:

(openstack) metric resource show identity
Resource 6a693fd6-47bb-5c4d-8b74-d9c57b34636d does not exist (HTTP 404)


Customer is requesting the ability to monitor the event of user and project creation.


Version-Release number of selected component (if applicable):


How reproducible:

Always


Steps to Reproduce:
1.(openstack) metric resource show identity



Actual results:

Resource 6a693fd6-47bb-5c4d-8b74-d9c57b34636d does not exist (HTTP 404)

Expected results:

identity resource exists and an aodh alarm can be created that monitors user and project creation

Additional info:

Customer indicated the following lines in events_defitions.yaml:

- event_type: ['identity.user.*', 'identity.project.*', 'identity.group.*', 'identity.role.*', 'identity.OS-TRUST:trust.*',
               'identity.region.*', 'identity.service.*', 'identity.endpoint.*', 'identity.policy.*']
  traits: &identity_crud
    resource_id:
      fields: payload.resource_info
    initiator_id:
      fields: payload.initiator.id
    project_id:
      fields: payload.initiator.project_id
    domain_id:
      fields: payload.initiator.domain_id

Comment 1 Mehdi ABAAKOUK 2018-04-03 14:31:35 UTC
I don't really get how you want to use Aodh, but:

The command "openstack metric resource show identity" is wrong, it looks for a 'generic' resource with 'identify' as resource_id, that's obviously not exists.

I think you're are looking for "openstack metric resource list -r identity" to list identity metrics.

Also Gnocchi does not record events but metrics/measures and events_definitions.yaml is related to events, not metrics.

Can you explain what you are trying to achieve ?
(Then we will see if Aodh/Gnocchi/Ceilometer fit the use-case)

Note that RFE for OSP10 will not be accepted at this point, new future are currently targeted for OSP14/OSP15.

Comment 2 Mehdi ABAAKOUK 2018-04-16 08:59:55 UTC
We don't have any answer since two weeks, so I'm closing this. Feel free to reopen with the answers of the questions.


Note You need to log in before you can comment on or make changes to this bug.