blob: f5dc16d6eca9b857148b6b9d59f0207e620bd16c [file] [log] [blame]
Aleš Komárek59ee0a82017-04-11 13:49:58 +02001==================
2Ceilometer Formula
3==================
Filip Pytlouna87b4712015-10-06 16:28:31 +02004
Jakub Pavlikf1514c62016-05-20 11:04:39 +02005The ceilometer project aims to deliver a unique point of contact for billing
6systems to acquire all of the measurements they need to establish customer
Nadya Shakhat3c3ed672017-05-02 13:58:17 +04007billing, across all current OpenStack components with work underway to
Jakub Pavlikf1514c62016-05-20 11:04:39 +02008support future OpenStack components.
Nadya Shakhat3c3ed672017-05-02 13:58:17 +04009This formula provides different backends for Ceilometer data: MongoDB, InfluxDB. Also,
10Graphite and direct (to Elasticsearch) publishers are available. If InfluxDB is used
11as a backend, heka is configured to consume messages from RabbitMQ and write in to
12InfluxDB, i.e. ceilometer collector service is not used in this configuration.
Filip Pytlouna87b4712015-10-06 16:28:31 +020013
Aleš Komárek59ee0a82017-04-11 13:49:58 +020014Sample Pillars
Filip Pytlouna87b4712015-10-06 16:28:31 +020015==============
16
17Ceilometer API/controller node
Petr Jediný1c34abb2017-06-07 14:34:13 +020018------------------------------
Filip Pytlouna87b4712015-10-06 16:28:31 +020019
20.. code-block:: yaml
21
22 ceilometer:
23 server:
24 enabled: true
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040025 version: mitaka
Filip Pytlouna87b4712015-10-06 16:28:31 +020026 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 Shakhat3c3ed672017-05-02 13:58:17 +040045
Dmitry Ukov2bb7cac2017-05-15 14:04:03 +040046Configuration of policy.json file
Petr Jediný1c34abb2017-06-07 14:34:13 +020047---------------------------------
Dmitry Ukov2bb7cac2017-05-15 14:04:03 +040048
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 Shakhat3c3ed672017-05-02 13:58:17 +040059Databases configuration
Petr Jediný1c34abb2017-06-07 14:34:13 +020060-----------------------
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040061
62MongoDB example:
Petr Jediný1c34abb2017-06-07 14:34:13 +020063~~~~~~~~~~~~~~~~
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040064
65.. code-block:: yaml
66
67 ceilometer:
68 server:
Filip Pytlouna87b4712015-10-06 16:28:31 +020069 database:
70 engine: mongodb
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040071 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 Pytlouna87b4712015-10-06 16:28:31 +020078 name: ceilometer
79 user: ceilometer
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040080 password: password
81
82InfluxDB/Elasticsearch example:
Petr Jediný1c34abb2017-06-07 14:34:13 +020083~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040084
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 Pytlouna87b4712015-10-06 16:28:31 +0200100
smolaond0d14d22016-05-31 10:30:15 +0200101Client-side RabbitMQ HA setup
Petr Jediný1c34abb2017-06-07 14:34:13 +0200102-----------------------------
smolaond0d14d22016-05-31 10:30:15 +0200103
104.. code-block:: yaml
105
106 ceilometer:
107 server:
108 ....
109 message_queue:
110 engine: rabbitmq
111 members:
Nadya Shakhat3c3ed672017-05-02 13:58:17 +0400112 - host: 10.0.106.10
113 - host: 10.0.106.20
114 - host: 10.0.106.30
smolaond0d14d22016-05-31 10:30:15 +0200115 user: openstack
116 password: pwd
117 virtual_host: '/openstack'
118 ....
119
120
Filip Pytlouna87b4712015-10-06 16:28:31 +0200121Ceilometer Graphite publisher
Petr Jediný1c34abb2017-06-07 14:34:13 +0200122-----------------------------
Filip Pytlouna87b4712015-10-06 16:28:31 +0200123
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
135Ceilometer compute agent
Petr Jediný1c34abb2017-06-07 14:34:13 +0200136------------------------
Filip Pytlouna87b4712015-10-06 16:28:31 +0200137
138.. code-block:: yaml
139
140 ceilometer:
141 agent:
142 enabled: true
Nadya Shakhat3c3ed672017-05-02 13:58:17 +0400143 version: mitaka
Filip Pytlouna87b4712015-10-06 16:28:31 +0200144 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ý1c34abb2017-06-07 14:34:13 +0200161
162Ceilometer instance discovery method
163------------------------------------
164
165.. code-block:: yaml
166
167 ceilometer:
168 agent:
169 ...
170 discovery_method: naive
171
172
173Keystone 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árek59ee0a82017-04-11 13:49:58 +0200201More Information
202================
Filip Pytlouna87b4712015-10-06 16:28:31 +0200203
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 Pytloun23f63e12017-02-02 13:02:03 +0100211
212Documentation and Bugs
213======================
214
215To learn how to install and update salt-formulas, consult the documentation
216available online at:
217
218 http://salt-formulas.readthedocs.io/
219
220In the unfortunate event that bugs are discovered, they should be reported to
221the appropriate issue tracker. Use Github issue tracker for specific salt
222formula:
223
224 https://github.com/salt-formulas/salt-formula-ceilometer/issues
225
226For feature requests, bug reports or blueprints affecting entire ecosystem,
227use Launchpad salt-formulas project:
228
229 https://launchpad.net/salt-formulas
230
231You can also join salt-formulas-users team and subscribe to mailing list:
232
233 https://launchpad.net/~salt-formulas-users
234
235Developers wishing to work on the salt-formulas projects should always base
236their work on master branch and submit pull request against specific formula.
237
238 https://github.com/salt-formulas/salt-formula-ceilometer
239
240Any questions or feedback is always welcome so feel free to join our IRC
241channel:
242
243 #salt-formulas @ irc.freenode.net