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. |
| 8 | In cluster mode, coordination is enabled via tooz with Redis backend. |
| 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 |
| 23 | cluster: true |
| 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 |
| 36 | host: 10.0.106.20 |
| 37 | port: 35357 |
| 38 | tenant: service |
| 39 | user: aodh |
| 40 | password: password |
| 41 | message_queue: |
| 42 | engine: rabbitmq |
| 43 | port: 5672 |
| 44 | user: openstack |
| 45 | password: password |
| 46 | virtual_host: '/openstack' |
Simon Pasquier | 418cacc | 2016-11-24 17:19:05 +0100 | [diff] [blame] | 47 | |
| 48 | |
| 49 | Development and testing |
| 50 | ======================= |
| 51 | |
| 52 | Development and test workflow with `Test Kitchen <http://kitchen.ci>`_ and |
| 53 | `kitchen-salt <https://github.com/simonmcc/kitchen-salt>`_ provisioner plugin. |
| 54 | |
| 55 | Test Kitchen is a test harness tool to execute your configured code on one or more platforms in isolation. |
| 56 | There is a ``.kitchen.yml`` in main directory that defines *platforms* to be tested and *suites* to execute on them. |
| 57 | |
| 58 | Kitchen CI can spin instances locally or remote, based on used *driver*. |
| 59 | For local development ``.kitchen.yml`` defines a `vagrant <https://github.com/test-kitchen/kitchen-vagrant>`_ or |
| 60 | `docker <https://github.com/test-kitchen/kitchen-docker>`_ driver. |
| 61 | |
| 62 | To use backend drivers or implement your CI follow the section `INTEGRATION.rst#Continuous Integration`__. |
| 63 | |
| 64 | The `Busser <https://github.com/test-kitchen/busser>`_ *Verifier* is used to setup and run tests |
| 65 | implementated in `<repo>/test/integration`. It installs the particular driver to tested instance |
| 66 | (`Serverspec <https://github.com/neillturner/kitchen-verifier-serverspec>`_, |
| 67 | `InSpec <https://github.com/chef/kitchen-inspec>`_, Shell, Bats, ...) prior the verification is executed. |
| 68 | |
| 69 | Usage: |
| 70 | |
| 71 | .. code-block:: shell |
| 72 | |
| 73 | # list instances and status |
| 74 | kitchen list |
| 75 | |
| 76 | # manually execute integration tests |
| 77 | kitchen [test || [create|converge|verify|exec|login|destroy|...]] [instance] -t tests/integration |
| 78 | |
| 79 | # use with provided Makefile (ie: within CI pipeline) |
| 80 | make kitchen |
| 81 | |
| 82 | |
| 83 | |
| 84 | Read more |
| 85 | ========= |
| 86 | |
Nadya Shakhat | 1014c4e | 2017-04-28 16:49:27 +0400 | [diff] [blame^] | 87 | * https://docs.openstack.org/cli-reference/aodh.html |
| 88 | * https://docs.openstack.org/developer/aodh/ |
Filip Pytloun | 744de4b | 2017-02-02 12:52:17 +0100 | [diff] [blame] | 89 | |
| 90 | Documentation and Bugs |
| 91 | ====================== |
| 92 | |
| 93 | To learn how to install and update salt-formulas, consult the documentation |
| 94 | available online at: |
| 95 | |
| 96 | http://salt-formulas.readthedocs.io/ |
| 97 | |
| 98 | In the unfortunate event that bugs are discovered, they should be reported to |
| 99 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 100 | formula: |
| 101 | |
| 102 | https://github.com/salt-formulas/salt-formula-aodh/issues |
| 103 | |
| 104 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 105 | use Launchpad salt-formulas project: |
| 106 | |
| 107 | https://launchpad.net/salt-formulas |
| 108 | |
| 109 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 110 | |
| 111 | https://launchpad.net/~salt-formulas-users |
| 112 | |
| 113 | Developers wishing to work on the salt-formulas projects should always base |
| 114 | their work on master branch and submit pull request against specific formula. |
| 115 | |
| 116 | https://github.com/salt-formulas/salt-formula-aodh |
| 117 | |
| 118 | Any questions or feedback is always welcome so feel free to join our IRC |
| 119 | channel: |
| 120 | |
| 121 | #salt-formulas @ irc.freenode.net |