blob: cd83a5e0fd6fa7165f94f7de843d3b24e4018fa6 [file] [log] [blame]
Filip Pytlouna87b4712015-10-06 16:28:31 +02001
Aleš Komárek59ee0a82017-04-11 13:49:58 +02002==================
3Ceilometer Formula
4==================
Filip Pytlouna87b4712015-10-06 16:28:31 +02005
Jakub Pavlikf1514c62016-05-20 11:04:39 +02006The ceilometer project aims to deliver a unique point of contact for billing
7systems to acquire all of the measurements they need to establish customer
Nadya Shakhat3c3ed672017-05-02 13:58:17 +04008billing, across all current OpenStack components with work underway to
Jakub Pavlikf1514c62016-05-20 11:04:39 +02009support future OpenStack components.
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040010This formula provides different backends for Ceilometer data: MongoDB, InfluxDB. Also,
11Graphite and direct (to Elasticsearch) publishers are available. If InfluxDB is used
12as a backend, heka is configured to consume messages from RabbitMQ and write in to
13InfluxDB, i.e. ceilometer collector service is not used in this configuration.
Filip Pytlouna87b4712015-10-06 16:28:31 +020014
Aleš Komárek59ee0a82017-04-11 13:49:58 +020015Sample Pillars
Filip Pytlouna87b4712015-10-06 16:28:31 +020016==============
17
18Ceilometer API/controller node
19
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
47
48.. code-block:: yaml
49
50 ceilometer:
51 server:
52 ....
53 policy:
54 segregation: 'rule:context_is_admin'
55 # Add key without value to remove line from policy.json
56 'telemetry:get_resource':
57
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040058Databases configuration
59
60MongoDB example:
61
62.. code-block:: yaml
63
64 ceilometer:
65 server:
Filip Pytlouna87b4712015-10-06 16:28:31 +020066 database:
67 engine: mongodb
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040068 members:
69 - host: 10.0.106.10
70 port: 27017
71 - host: 10.0.106.20
72 port: 27017
73 - host: 10.0.106.30
74 port: 27017
Filip Pytlouna87b4712015-10-06 16:28:31 +020075 name: ceilometer
76 user: ceilometer
Nadya Shakhat3c3ed672017-05-02 13:58:17 +040077 password: password
78
79InfluxDB/Elasticsearch example:
80
81.. code-block:: yaml
82
83 ceilometer:
84 server:
85 database:
86 influxdb:
87 host: 10.0.106.10
88 port: 8086
89 user: ceilometer
90 password: password
91 database: ceilometer
92 elasticsearch:
93 enabled: true
94 host: 10.0.106.10
95 port: 9200
Filip Pytlouna87b4712015-10-06 16:28:31 +020096
smolaond0d14d22016-05-31 10:30:15 +020097Client-side RabbitMQ HA setup
98
99.. code-block:: yaml
100
101 ceilometer:
102 server:
103 ....
104 message_queue:
105 engine: rabbitmq
106 members:
Nadya Shakhat3c3ed672017-05-02 13:58:17 +0400107 - host: 10.0.106.10
108 - host: 10.0.106.20
109 - host: 10.0.106.30
smolaond0d14d22016-05-31 10:30:15 +0200110 user: openstack
111 password: pwd
112 virtual_host: '/openstack'
113 ....
114
115
Filip Pytlouna87b4712015-10-06 16:28:31 +0200116Ceilometer Graphite publisher
117
118.. code-block:: yaml
119
120 ceilometer:
121 server:
122 enabled: true
123 publisher:
124 graphite:
125 enabled: true
126 host: 10.0.0.1
127 port: 2003
128
129Ceilometer compute agent
130
131.. code-block:: yaml
132
133 ceilometer:
134 agent:
135 enabled: true
Nadya Shakhat3c3ed672017-05-02 13:58:17 +0400136 version: mitaka
Filip Pytlouna87b4712015-10-06 16:28:31 +0200137 secret: pwd
138 identity:
139 engine: keystone
140 host: 127.0.0.1
141 port: 35357
142 tenant: service
143 user: ceilometer
144 password: pwd
145 message_queue:
146 engine: rabbitmq
147 host: 127.0.0.1
148 port: 5672
149 user: openstack
150 password: pwd
151 virtual_host: '/openstack'
152 rabbit_ha_queues: true
153
Aleš Komárek59ee0a82017-04-11 13:49:58 +0200154More Information
155================
Filip Pytlouna87b4712015-10-06 16:28:31 +0200156
157* https://wiki.openstack.org/wiki/Ceilometer
158* http://docs.openstack.org/developer/ceilometer/install/manual.html
159* http://docs.openstack.org/developer/ceilometer/
160* https://fedoraproject.org/wiki/QA:Testcase_OpenStack_ceilometer_install
161* https://github.com/spilgames/ceilometer_graphite_publisher
162* http://engineering.spilgames.com/using-ceilometer-graphite/
163
Filip Pytloun23f63e12017-02-02 13:02:03 +0100164
165Documentation and Bugs
166======================
167
168To learn how to install and update salt-formulas, consult the documentation
169available online at:
170
171 http://salt-formulas.readthedocs.io/
172
173In the unfortunate event that bugs are discovered, they should be reported to
174the appropriate issue tracker. Use Github issue tracker for specific salt
175formula:
176
177 https://github.com/salt-formulas/salt-formula-ceilometer/issues
178
179For feature requests, bug reports or blueprints affecting entire ecosystem,
180use Launchpad salt-formulas project:
181
182 https://launchpad.net/salt-formulas
183
184You can also join salt-formulas-users team and subscribe to mailing list:
185
186 https://launchpad.net/~salt-formulas-users
187
188Developers wishing to work on the salt-formulas projects should always base
189their work on master branch and submit pull request against specific formula.
190
191 https://github.com/salt-formulas/salt-formula-ceilometer
192
193Any questions or feedback is always welcome so feel free to join our IRC
194channel:
195
196 #salt-formulas @ irc.freenode.net