Aleš Komárek | 59ee0a8 | 2017-04-11 13:49:58 +0200 | [diff] [blame] | 1 | ================== |
| 2 | Ceilometer Formula |
| 3 | ================== |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 4 | |
Jakub Pavlik | f1514c6 | 2016-05-20 11:04:39 +0200 | [diff] [blame] | 5 | The ceilometer project aims to deliver a unique point of contact for billing |
| 6 | systems to acquire all of the measurements they need to establish customer |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 7 | billing, across all current OpenStack components with work underway to |
Jakub Pavlik | f1514c6 | 2016-05-20 11:04:39 +0200 | [diff] [blame] | 8 | support future OpenStack components. |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 9 | This formula provides different backends for Ceilometer data: MongoDB, InfluxDB. Also, |
| 10 | Graphite and direct (to Elasticsearch) publishers are available. If InfluxDB is used |
| 11 | as a backend, heka is configured to consume messages from RabbitMQ and write in to |
| 12 | InfluxDB, i.e. ceilometer collector service is not used in this configuration. |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 13 | |
Aleš Komárek | 59ee0a8 | 2017-04-11 13:49:58 +0200 | [diff] [blame] | 14 | Sample Pillars |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 15 | ============== |
| 16 | |
| 17 | Ceilometer API/controller node |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 18 | ------------------------------ |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 19 | |
| 20 | .. code-block:: yaml |
| 21 | |
| 22 | ceilometer: |
| 23 | server: |
| 24 | enabled: true |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 25 | version: mitaka |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 26 | cluster: true |
| 27 | secret: pwd |
| 28 | bind: |
| 29 | host: 127.0.0.1 |
| 30 | port: 8777 |
| 31 | identity: |
| 32 | engine: keystone |
| 33 | host: 127.0.0.1 |
| 34 | port: 35357 |
| 35 | tenant: service |
| 36 | user: ceilometer |
| 37 | password: pwd |
| 38 | message_queue: |
| 39 | engine: rabbitmq |
| 40 | host: 127.0.0.1 |
| 41 | port: 5672 |
| 42 | user: openstack |
| 43 | password: pwd |
| 44 | virtual_host: '/openstack' |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 45 | |
Dmitry Ukov | 2bb7cac | 2017-05-15 14:04:03 +0400 | [diff] [blame] | 46 | Configuration of policy.json file |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 47 | --------------------------------- |
Dmitry Ukov | 2bb7cac | 2017-05-15 14:04:03 +0400 | [diff] [blame] | 48 | |
| 49 | .. code-block:: yaml |
| 50 | |
| 51 | ceilometer: |
| 52 | server: |
| 53 | .... |
| 54 | policy: |
| 55 | segregation: 'rule:context_is_admin' |
| 56 | # Add key without value to remove line from policy.json |
| 57 | 'telemetry:get_resource': |
| 58 | |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 59 | Databases configuration |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 60 | ----------------------- |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 61 | |
| 62 | MongoDB example: |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 63 | ~~~~~~~~~~~~~~~~ |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 64 | |
| 65 | .. code-block:: yaml |
| 66 | |
| 67 | ceilometer: |
| 68 | server: |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 69 | database: |
| 70 | engine: mongodb |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 71 | members: |
| 72 | - host: 10.0.106.10 |
| 73 | port: 27017 |
| 74 | - host: 10.0.106.20 |
| 75 | port: 27017 |
| 76 | - host: 10.0.106.30 |
| 77 | port: 27017 |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 78 | name: ceilometer |
| 79 | user: ceilometer |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 80 | password: password |
| 81 | |
| 82 | InfluxDB/Elasticsearch example: |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 83 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 84 | |
| 85 | .. code-block:: yaml |
| 86 | |
| 87 | ceilometer: |
| 88 | server: |
| 89 | database: |
| 90 | influxdb: |
| 91 | host: 10.0.106.10 |
| 92 | port: 8086 |
| 93 | user: ceilometer |
| 94 | password: password |
| 95 | database: ceilometer |
| 96 | elasticsearch: |
| 97 | enabled: true |
| 98 | host: 10.0.106.10 |
| 99 | port: 9200 |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 100 | |
smolaon | d0d14d2 | 2016-05-31 10:30:15 +0200 | [diff] [blame] | 101 | Client-side RabbitMQ HA setup |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 102 | ----------------------------- |
smolaon | d0d14d2 | 2016-05-31 10:30:15 +0200 | [diff] [blame] | 103 | |
| 104 | .. code-block:: yaml |
| 105 | |
| 106 | ceilometer: |
| 107 | server: |
| 108 | .... |
| 109 | message_queue: |
| 110 | engine: rabbitmq |
| 111 | members: |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 112 | - host: 10.0.106.10 |
| 113 | - host: 10.0.106.20 |
| 114 | - host: 10.0.106.30 |
smolaon | d0d14d2 | 2016-05-31 10:30:15 +0200 | [diff] [blame] | 115 | user: openstack |
| 116 | password: pwd |
| 117 | virtual_host: '/openstack' |
| 118 | .... |
| 119 | |
| 120 | |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 121 | Ceilometer Graphite publisher |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 122 | ----------------------------- |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 123 | |
| 124 | .. code-block:: yaml |
| 125 | |
| 126 | ceilometer: |
| 127 | server: |
| 128 | enabled: true |
| 129 | publisher: |
| 130 | graphite: |
| 131 | enabled: true |
| 132 | host: 10.0.0.1 |
| 133 | port: 2003 |
| 134 | |
| 135 | Ceilometer compute agent |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 136 | ------------------------ |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 137 | |
| 138 | .. code-block:: yaml |
| 139 | |
| 140 | ceilometer: |
| 141 | agent: |
| 142 | enabled: true |
Nadya Shakhat | 3c3ed67 | 2017-05-02 13:58:17 +0400 | [diff] [blame] | 143 | version: mitaka |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 144 | secret: pwd |
| 145 | identity: |
| 146 | engine: keystone |
| 147 | host: 127.0.0.1 |
| 148 | port: 35357 |
| 149 | tenant: service |
| 150 | user: ceilometer |
| 151 | password: pwd |
| 152 | message_queue: |
| 153 | engine: rabbitmq |
| 154 | host: 127.0.0.1 |
| 155 | port: 5672 |
| 156 | user: openstack |
| 157 | password: pwd |
| 158 | virtual_host: '/openstack' |
| 159 | rabbit_ha_queues: true |
| 160 | |
Petr Jediný | 1c34abb | 2017-06-07 14:34:13 +0200 | [diff] [blame] | 161 | |
| 162 | Ceilometer instance discovery method |
| 163 | ------------------------------------ |
| 164 | |
| 165 | .. code-block:: yaml |
| 166 | |
| 167 | ceilometer: |
| 168 | agent: |
| 169 | ... |
| 170 | discovery_method: naive |
| 171 | |
| 172 | |
| 173 | Keystone auth caching |
| 174 | --------------------- |
| 175 | |
| 176 | .. code-block:: yaml |
| 177 | |
| 178 | ceilometer: |
| 179 | server: |
| 180 | cache: |
| 181 | members: |
| 182 | - host: 10.10.10.10 |
| 183 | port: 11211 |
| 184 | - host: 10.10.10.11 |
| 185 | port: 11211 |
| 186 | - host: 10.10.10.12 |
| 187 | port: 11211 |
| 188 | agent: |
| 189 | cache: |
| 190 | members: |
| 191 | - host: 10.10.10.10 |
| 192 | port: 11211 |
| 193 | - host: 10.10.10.11 |
| 194 | port: 11211 |
| 195 | - host: 10.10.10.12 |
| 196 | port: 11211 |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
Aleš Komárek | 59ee0a8 | 2017-04-11 13:49:58 +0200 | [diff] [blame] | 201 | More Information |
| 202 | ================ |
Filip Pytloun | a87b471 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 203 | |
| 204 | * https://wiki.openstack.org/wiki/Ceilometer |
| 205 | * http://docs.openstack.org/developer/ceilometer/install/manual.html |
| 206 | * http://docs.openstack.org/developer/ceilometer/ |
| 207 | * https://fedoraproject.org/wiki/QA:Testcase_OpenStack_ceilometer_install |
| 208 | * https://github.com/spilgames/ceilometer_graphite_publisher |
| 209 | * http://engineering.spilgames.com/using-ceilometer-graphite/ |
| 210 | |
Filip Pytloun | 23f63e1 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 211 | |
| 212 | Documentation and Bugs |
| 213 | ====================== |
| 214 | |
| 215 | To learn how to install and update salt-formulas, consult the documentation |
| 216 | available online at: |
| 217 | |
| 218 | http://salt-formulas.readthedocs.io/ |
| 219 | |
| 220 | In the unfortunate event that bugs are discovered, they should be reported to |
| 221 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 222 | formula: |
| 223 | |
| 224 | https://github.com/salt-formulas/salt-formula-ceilometer/issues |
| 225 | |
| 226 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 227 | use Launchpad salt-formulas project: |
| 228 | |
| 229 | https://launchpad.net/salt-formulas |
| 230 | |
| 231 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 232 | |
| 233 | https://launchpad.net/~salt-formulas-users |
| 234 | |
| 235 | Developers wishing to work on the salt-formulas projects should always base |
| 236 | their work on master branch and submit pull request against specific formula. |
| 237 | |
| 238 | https://github.com/salt-formulas/salt-formula-ceilometer |
| 239 | |
| 240 | Any questions or feedback is always welcome so feel free to join our IRC |
| 241 | channel: |
| 242 | |
| 243 | #salt-formulas @ irc.freenode.net |