Last active
June 10, 2016 10:28
-
-
Save jd/6c53a9877cad50352fff31aecbd29410 to your computer and use it in GitHub Desktop.
Gnocchi + Aodh alarm triggering test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➔ gnocchi metric create -a high | |
+------------------------------------+-------------------------------------------------------------------+ | |
| Field | Value | | |
+------------------------------------+-------------------------------------------------------------------+ | |
| archive_policy/aggregation_methods | std, count, 95pct, min, max, sum, median, mean | | |
| archive_policy/back_window | 0 | | |
| archive_policy/definition | - points: 3600, granularity: 0:00:01, timespan: 1:00:00 | | |
| | - points: 10080, granularity: 0:01:00, timespan: 7 days, 0:00:00 | | |
| | - points: 8760, granularity: 1:00:00, timespan: 365 days, 0:00:00 | | |
| archive_policy/name | high | | |
| created_by_project_id | admin | | |
| created_by_user_id | admin | | |
| id | e07b0666-6309-4b93-9293-757ab3c0d5cd | | |
| name | None | | |
| resource/id | None | | |
| unit | None | | |
+------------------------------------+-------------------------------------------------------------------+---+ | |
➔ aodh alarm create --name therve --type gnocchi_aggregation_by_metrics_threshold --metrics e07b0666-6309-4b93-9293-757ab3c0d5cd --threshold 100 --aggregation-method mean --comparison-operator gt | |
+---------------------------+-----------------------------------------------------+ | |
| Field | Value | | |
+---------------------------+-----------------------------------------------------+ | |
| aggregation_method | mean | | |
| alarm_actions | [] | | |
| alarm_id | 6435049a-938f-481f-99da-0a0b42136e99 | | |
| comparison_operator | gt | | |
| description | gnocchi_aggregation_by_metrics_threshold alarm rule | | |
| enabled | True | | |
| evaluation_periods | 1 | | |
| granularity | 60 | | |
| insufficient_data_actions | [] | | |
| metrics | [u'e07b0666-6309-4b93-9293-757ab3c0d5cd'] | | |
| name | therve | | |
| ok_actions | [] | | |
| project_id | admin | | |
| repeat_actions | False | | |
| severity | low | | |
| state | insufficient data | | |
| state_timestamp | 2016-06-10T10:00:24.361635 | | |
| threshold | 100.0 | | |
| time_constraints | [] | | |
| timestamp | 2016-06-10T10:00:24.361635 | | |
| type | gnocchi_aggregation_by_metrics_threshold | | |
| user_id | admin | | |
+---------------------------+-----------------------------------------------------+ | |
➔ gnocchi measures add cde5ebf2-76d3-4712-93e1-5d1b5a6622c4 -m 2016-06-10T12:00:00@130 -m 2016-06-10T12:01:00@130 -m 2016-06-10T12:03:00@142 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment