Bug 1262065
| Summary: | [RFE] Collect IOPS data to generate alerts for users | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Neil Levine <nlevine> |
| Component: | openstack-ceilometer | Assignee: | Eoghan Glynn <eglynn> |
| Status: | CLOSED NOTABUG | QA Contact: | Yurii Prokulevych <yprokule> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 10.0 (Newton) | CC: | achernet, augol, eglynn, fbaudin, jdanjou, jruzicka, mgandolf, nbarcet, srevivo |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | 10.0 (Newton) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-07-22 13:10:53 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1392311 | ||
|
Description
Neil Levine
2015-09-10 18:35:32 UTC
Release version is 9 ? Re-reading the question and my comment, I actually think this is possible with this:
$ aodh alarm create --type gnocchi_aggregation_by_resources_threshold --name iops-test-1 --metric disk.read.requests.rate --threshold 42000 --aggregation-method sum --resource-type instance --query '{"=": {"project_id": "cdf80e24-0644-4869-aab2-189d444ea906"}}'
+---------------------------+---------------------------------------------------------------+
| Field | Value |
+---------------------------+---------------------------------------------------------------+
| aggregation_method | sum |
| alarm_actions | [] |
| alarm_id | 687f44e3-8db7-4181-8f51-80267ca6492c |
| comparison_operator | eq |
| description | gnocchi_aggregation_by_resources_threshold alarm rule |
| enabled | True |
| evaluation_periods | 1 |
| granularity | 60 |
| insufficient_data_actions | [] |
| metric | disk.read.requests.rate |
| name | iops-test-1 |
| ok_actions | [] |
| project_id | admin |
| query | {"=": {"project_id": "cdf80e24-0644-4869-aab2-189d444ea906"}} |
| repeat_actions | False |
| resource_type | instance |
| severity | low |
| state | insufficient data |
| state_timestamp | 2016-05-17T13:07:47.691720 |
| threshold | 42000.0 |
| time_constraints | [] |
| timestamp | 2016-05-17T13:07:47.691720 |
| type | gnocchi_aggregation_by_resources_threshold |
| user_id | admin |
+---------------------------+---------------------------------------------------------------+
This will create a new alarm that will analyse the sum() of all read requests for all instance of a particular tenant (the query can be restrained even more with the --query parameter). That should cover the initial request.
Since I did not get any update on this bug for a while and the features should be already there, I'm closing it. Feel free to reopen or get in touch if you need more info! The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |