Bug 1559975
| Summary: | RFE: Use aodh alarm to track user and project creation in Ceilometer/gnocchi | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Stan Toporek <stoporek> |
| Component: | openstack-ceilometer | Assignee: | Mehdi ABAAKOUK <mabaakou> |
| Status: | CLOSED NOTABUG | QA Contact: | Sasha Smolyak <ssmolyak> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 10.0 (Newton) | CC: | jruzicka, mabaakou, srevivo, stoporek |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-16 08:59:55 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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. We don't have any answer since two weeks, so I'm closing this. Feel free to reopen with the answers of the questions. |
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