| Simon Pasquier | 418cacc | 2016-11-24 17:19:05 +0100 | [diff] [blame] | 1 |  | 
 | 2 | ================================== | 
 | 3 | aodh | 
 | 4 | ================================== | 
 | 5 |  | 
| Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame] | 6 | Aodh is an alarming service for OpenStack. It used to be a part of Ceilometer, but starting from Mitaka it | 
 | 7 | is a separate project. Aodh supports several types of alarms like threshold, event, composite and gnocchi-specific. | 
| Dmitry Kalashnik | 69f4955 | 2017-12-07 15:56:43 +0400 | [diff] [blame] | 8 | In cluster mode, coordination is enabled via tooz with Redis backend. | 
| Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame] | 9 | MySQL is used as a data backend for alarms and alarm history. | 
| Simon Pasquier | 418cacc | 2016-11-24 17:19:05 +0100 | [diff] [blame] | 10 |  | 
 | 11 | Sample pillars | 
 | 12 | ============== | 
 | 13 |  | 
| Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame] | 14 | Cluster aodh service | 
| Simon Pasquier | 418cacc | 2016-11-24 17:19:05 +0100 | [diff] [blame] | 15 |  | 
 | 16 | .. code-block:: yaml | 
 | 17 |  | 
 | 18 |     aodh: | 
 | 19 |       server: | 
 | 20 |         enabled: true | 
| Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame] | 21 |         version: mitaka | 
 | 22 |         ttl: 86400 | 
| Dmitry Kalashnik | 69f4955 | 2017-12-07 15:56:43 +0400 | [diff] [blame] | 23 |         cluster: true | 
| Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame] | 24 |       database: | 
 | 25 |         engine: "mysql+pymysql" | 
 | 26 |         host: 10.0.106.20 | 
 | 27 |         port: 3306 | 
 | 28 |         name: aodh | 
 | 29 |         user: aodh | 
 | 30 |         password: password | 
 | 31 |       bind: | 
 | 32 |         host: 10.0.106.20 | 
 | 33 |         port: 8042 | 
 | 34 |       identity: | 
 | 35 |         engine: keystone | 
| Dmitry Kalashnik | 69f4955 | 2017-12-07 15:56:43 +0400 | [diff] [blame] | 36 |         host: 10.0.106.20 | 
| Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame] | 37 |         port: 35357 | 
 | 38 |         tenant: service | 
 | 39 |         user: aodh | 
| Dmitry Kalashnik | 69f4955 | 2017-12-07 15:56:43 +0400 | [diff] [blame] | 40 |         password: password | 
| Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame] | 41 |       message_queue: | 
 | 42 |         engine: rabbitmq | 
 | 43 |         port: 5672 | 
 | 44 |         user: openstack | 
 | 45 |         password: password | 
 | 46 |         virtual_host: '/openstack' | 
| Petr Jediný | f643325 | 2017-06-08 18:02:41 +0200 | [diff] [blame] | 47 |       cache: | 
 | 48 |         members: | 
 | 49 |         - host: 10.10.10.10 | 
 | 50 |             port: 11211 | 
 | 51 |         - host: 10.10.10.11 | 
 | 52 |             port: 11211 | 
 | 53 |         - host: 10.10.10.12 | 
 | 54 |             port: 11211 | 
| Simon Pasquier | 418cacc | 2016-11-24 17:19:05 +0100 | [diff] [blame] | 55 |  | 
 | 56 |  | 
| Dmitry Kalashnik | 69f4955 | 2017-12-07 15:56:43 +0400 | [diff] [blame] | 57 | Enhanced logging with logging.conf | 
 | 58 | ---------------------------------- | 
 | 59 |  | 
 | 60 | By default logging.conf is disabled. | 
 | 61 |  | 
 | 62 | That is possible to enable per-binary logging.conf with new variables: | 
 | 63 |   * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services; | 
 | 64 |   * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services. | 
| Oleksii Chupryn | 2ac6700 | 2018-05-04 14:06:32 +0300 | [diff] [blame] | 65 |   * openstack_ossyslog_handler_enabled - set to true to enable OSSysLogHandler for all Openstack services. | 
| Dmitry Kalashnik | 69f4955 | 2017-12-07 15:56:43 +0400 | [diff] [blame] | 66 |  | 
| Oleksii Chupryn | 2ac6700 | 2018-05-04 14:06:32 +0300 | [diff] [blame] | 67 | Only WatchedFileHandler, OSSysLogHandler and FluentHandler are available. | 
| Dmitry Kalashnik | 69f4955 | 2017-12-07 15:56:43 +0400 | [diff] [blame] | 68 |  | 
 | 69 | Also it is possible to configure this with pillar: | 
 | 70 |  | 
 | 71 | .. code-block:: yaml | 
 | 72 |  | 
 | 73 |   aodh: | 
 | 74 |     server: | 
 | 75 |       logging: | 
 | 76 |         log_appender: true | 
 | 77 |         log_handlers: | 
 | 78 |           watchedfile: | 
 | 79 |             enabled: true | 
 | 80 |           fluentd: | 
 | 81 |             enabled: true | 
| Oleksii Chupryn | 2ac6700 | 2018-05-04 14:06:32 +0300 | [diff] [blame] | 82 |           ossyslog: | 
 | 83 |             enabled: true | 
| Dmitry Kalashnik | 69f4955 | 2017-12-07 15:56:43 +0400 | [diff] [blame] | 84 |  | 
| Simon Pasquier | 418cacc | 2016-11-24 17:19:05 +0100 | [diff] [blame] | 85 | Development and testing | 
 | 86 | ======================= | 
 | 87 |  | 
 | 88 | Development and test workflow with `Test Kitchen <http://kitchen.ci>`_ and | 
 | 89 | `kitchen-salt <https://github.com/simonmcc/kitchen-salt>`_ provisioner plugin. | 
 | 90 |  | 
 | 91 | Test Kitchen is a test harness tool to execute your configured code on one or more platforms in isolation. | 
 | 92 | There is a ``.kitchen.yml`` in main directory that defines *platforms* to be tested and *suites* to execute on them. | 
 | 93 |  | 
 | 94 | Kitchen CI can spin instances locally or remote, based on used *driver*. | 
 | 95 | For local development ``.kitchen.yml`` defines a `vagrant <https://github.com/test-kitchen/kitchen-vagrant>`_ or | 
 | 96 | `docker  <https://github.com/test-kitchen/kitchen-docker>`_ driver. | 
 | 97 |  | 
 | 98 | To use backend drivers or implement your CI follow the section `INTEGRATION.rst#Continuous Integration`__. | 
 | 99 |  | 
 | 100 | The `Busser <https://github.com/test-kitchen/busser>`_ *Verifier* is used to setup and run tests | 
 | 101 | implementated in `<repo>/test/integration`. It installs the particular driver to tested instance | 
 | 102 | (`Serverspec <https://github.com/neillturner/kitchen-verifier-serverspec>`_, | 
 | 103 | `InSpec <https://github.com/chef/kitchen-inspec>`_, Shell, Bats, ...) prior the verification is executed. | 
 | 104 |  | 
 | 105 | Usage: | 
 | 106 |  | 
 | 107 | .. code-block:: shell | 
 | 108 |  | 
 | 109 |   # list instances and status | 
 | 110 |   kitchen list | 
 | 111 |  | 
 | 112 |   # manually execute integration tests | 
 | 113 |   kitchen [test || [create|converge|verify|exec|login|destroy|...]] [instance] -t tests/integration | 
 | 114 |  | 
 | 115 |   # use with provided Makefile (ie: within CI pipeline) | 
 | 116 |   make kitchen | 
 | 117 |  | 
 | 118 |  | 
 | 119 |  | 
 | 120 | Read more | 
 | 121 | ========= | 
 | 122 |  | 
| Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame] | 123 | * https://docs.openstack.org/cli-reference/aodh.html | 
 | 124 | * https://docs.openstack.org/developer/aodh/ | 
| Filip Pytloun | 744de4b | 2017-02-02 12:52:17 +0100 | [diff] [blame] | 125 |  | 
 | 126 | Documentation and Bugs | 
 | 127 | ====================== | 
 | 128 |  | 
 | 129 | To learn how to install and update salt-formulas, consult the documentation | 
 | 130 | available online at: | 
 | 131 |  | 
 | 132 |     http://salt-formulas.readthedocs.io/ | 
 | 133 |  | 
 | 134 | In the unfortunate event that bugs are discovered, they should be reported to | 
 | 135 | the appropriate issue tracker. Use Github issue tracker for specific salt | 
 | 136 | formula: | 
 | 137 |  | 
 | 138 |     https://github.com/salt-formulas/salt-formula-aodh/issues | 
 | 139 |  | 
 | 140 | For feature requests, bug reports or blueprints affecting entire ecosystem, | 
 | 141 | use Launchpad salt-formulas project: | 
 | 142 |  | 
 | 143 |     https://launchpad.net/salt-formulas | 
 | 144 |  | 
 | 145 | You can also join salt-formulas-users team and subscribe to mailing list: | 
 | 146 |  | 
 | 147 |     https://launchpad.net/~salt-formulas-users | 
 | 148 |  | 
 | 149 | Developers wishing to work on the salt-formulas projects should always base | 
 | 150 | their work on master branch and submit pull request against specific formula. | 
 | 151 |  | 
 | 152 |     https://github.com/salt-formulas/salt-formula-aodh | 
 | 153 |  | 
 | 154 | Any questions or feedback is always welcome so feel free to join our IRC | 
 | 155 | channel: | 
 | 156 |  | 
 | 157 |     #salt-formulas @ irc.freenode.net |