blob: 544a8e8ae597b6ca8716e6df284a3c9469a6eab8 [file] [log] [blame]
Helena McGough758adf82017-10-10 13:17:22 +01001..
2 # Copyright 2017 Intel Research and Development Ireland Limited
3 # *************************************************************
4 # This file is part of OSM Monitoring module
5 # All Rights Reserved to Intel Corporation
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License"); you
8 # may not use this file except in compliance with the License. You may
9 # obtain a copy of the License at
10 #
11 # http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16 # implied. See the License for the specific language governing
17 # permissions and limitations under the License.
18 #
19 # For those usages not covered by the Apache License, Version 2.0 please
20 # contact: helena.mcgough@intel.com or adrian.hoban@intel.com
21
22Aodh Plugin Guide for OSM MON
23*****************************
24The Aodh plugin for the MON module allows an OSM user to utilise the OpenStack
25alarming functionality.
26
27This plugin allows you to create, list, delete and update alarms. These alarms
28are based on metrics generated by the OpenStack Gnocchi plugin.
29
30Supported Alarms
31----------------
32Currently the plugin only supports the following alarms for their corresponding
33metrics:
34
35 +-----------------------------+---------------------------------+
36 | Gnocchi Metric | Aodh Alarm |
37 +-----------------------------+---------------------------------+
38 | AVERAGE_MEMORY_UTILIZATION | AVERAGE_MEMORY_UTILIZATION |
Helena McGough375f07c2017-10-13 16:14:16 +010039 | | |
Helena McGough758adf82017-10-10 13:17:22 +010040 | DISK_READ_OPS | DISK_READ_OPS |
Helena McGough375f07c2017-10-13 16:14:16 +010041 | | |
Helena McGough758adf82017-10-10 13:17:22 +010042 | DISK_WRITE_OPS | DISK_WRITE_OPS |
Helena McGough375f07c2017-10-13 16:14:16 +010043 | | |
Helena McGough758adf82017-10-10 13:17:22 +010044 | DISK_READ_BYTES | DISK_READ_BYTES |
Helena McGough375f07c2017-10-13 16:14:16 +010045 | | |
Helena McGough758adf82017-10-10 13:17:22 +010046 | DISK_WRITE_BYTES | DISK_WRITE_BYTES |
Helena McGough375f07c2017-10-13 16:14:16 +010047 | | |
Helena McGough758adf82017-10-10 13:17:22 +010048 | PACKETS_DROPPED | NET_PACKETS_DROPPED |
Helena McGough375f07c2017-10-13 16:14:16 +010049 | | |
Helena McGough758adf82017-10-10 13:17:22 +010050 | PACKETS_RECEIVED | PACKETS_IN_ABOVE_THRESHOLD |
Helena McGough375f07c2017-10-13 16:14:16 +010051 | | |
Helena McGough758adf82017-10-10 13:17:22 +010052 | PACKETS_SENT | PACKETS_OUT_ABOVE_THRESHOLD |
Helena McGough375f07c2017-10-13 16:14:16 +010053 | | |
Helena McGough758adf82017-10-10 13:17:22 +010054 | CPU_UTILIZATION | CPU_UTILIZATION_ABOVE_THRESHOLD |
55 +-----------------------------+---------------------------------+
56
57Creating an Alarm
58-----------------
59To create an alarm for one of the supported metrics a no. of configuration
60parameters must be set:
61
62* alarm_name: Defines the name of the alarm and must correspond to the desired
63 metric.
64* metric_name: Defines the name of the metric for which the alarm is to be
65 created.
66* resource_uuid: Defines the resource that the chosen metric will monitor.
67* severity: defines the significance of the alarm if it is triggered. Options
68 for this parameter include:
69
70 - WARNING
71 - MINOR
72 - MAJOR
73 - CRITICAL
74 - INDETERMINATE
75
76* operation: Defines how the metric data is to be evaluated when determining if
77 the alarm has been triggered. Valid inputs for this parameter include:
78
79 - GE (greater than or equal to)
80 - LE (less that or equal to)
81 - GT (greater than)
82 - LT (less than)
83 - EQ (equal to)
84
85* threshold_value: Defines a threshold that the metric values will be compared
86 against to determine if the alarm should be triggered.
87* statistic: Defines the way in which the metric data should be evaluated.
88 Valid options for this parameter include:
89
90 - AVERAGE
91 - MINIMUM
92 - MAXIMUM
93 - COUNT
94 - SUM
95
96 .. note::
97
98 - To create a valid alarm the metric that you request must exist as a
99 Gnocchi metric and it must exist for the resource requested.
100 - Multiple alarms can be created for the same metric as you can define
101 different thresholds, operations, etc. for each alarm.
102
103Deleting an Alarm
104-----------------
105To delete an alarm just before a delete request with the alarm_id of the alarm
106you wish to delete.
107
108Listing Alarms
109--------------
110A full list of alarms will be generated if a list request is performed and no
111configuration parameters are set.
112
113To generate a more specified list you can define one or both of the following
114configuration parameters:
115
116* alarm_name
117* severity
118
119 .. note::
120
121 For now resource_uuid must be defined when generating a list of alarms.
122 This will be removed in a future release.
123
124Updating an alarm
125-----------------
126Certain parameters of an alarm can be updated after the alarm has been created.
127These include:
128
129* threshold_value
130* operation
131* statistic
132* severity