blob: f401f741aedbd9e92bc47d5c1fddf18a32170c1e [file] [log] [blame]
Filip Pytlound6fa6ab2016-08-03 15:59:49 +02001
2========
3InfluxDB
4========
5
6InfluxData is based on the TICK stack, the first open source platform for managing IoT time-series data at scale.
7
8Sample pillars
9==============
10
11Single-node influxdb, enabled http frontend and admin web interface:
12
13.. code-block:: yaml
14
15 influxdb:
16 server:
17 enabled: true
18 http:
19 enabled: true
20 bind:
21 address: 0.0.0.0
22 port: 8086
23 admin:
24 enabled: true
25 bind:
26 address: 0.0.0.0
27 port: 8083
28
29Single-node influxdb, SSL for http frontend:
30
31.. code-block:: yaml
32
33 influxdb:
34 server:
35 enabled: true
36 http:
37 bind:
38 ssl:
39 enabled: true
40 key_file: /etc/influxdb/ssl/key.pem
41 cert_file: /etc/influxdb/ssl/cert.pem
42
Guillaume Thouvenin1091d462016-11-14 11:53:10 +010043Single-node influxdb where you specify paths for data and metastore directories. You
44need to ensure that directories exist:
45
46.. code-block:: yaml
47
48 influxdb:
49 server:
50 enabled: true
51 data:
52 dir: '/opt/influxdb/data'
53 wal_dir: '/opt/influxdb/wal'
54 meta:
55 dir: '/opt/influxdb/meta'
56
Simon Pasquier8fa8f712017-06-22 12:04:05 +020057InfluxDB server with customized parameters for the data service:
58
59.. code-block:: yaml
60
61 influxdb:
62 server:
63 enabled: true
64 data:
65 max_series_per_database: 20000000
66
Guillaume Thouvenin071a93e2016-10-24 17:22:23 +020067Single-node influxdb with an admin user:
68
69.. code-block:: yaml
70
71 influxdb:
72 server:
73 enabled: true
74 http:
75 enabled: true
76 bind:
77 address: 0.0.0.0
78 port: 8086
79 admin:
80 enabled: true
81 bind:
82 address: 0.0.0.0
83 port: 8083
84 user:
85 enabled: true
86 name: root
87 password: secret
88
89Single-node influxdb with new users:
90
91.. code-block:: yaml
92
93 influxdb:
94 server:
95 user:
96 user1:
97 enabled: true
98 admin: true
99 name: username1
100 password: keepsecret1
101 user2:
102 enabled: true
103 admin: false
104 name: username2
105 password: keepsecret2
106
107Single-node influxdb with new databases:
108
109.. code-block:: yaml
110
111 influxdb:
112 server:
113 database:
114 mydb1:
115 enabled: true
116 name: mydb1
117 mydb2:
118 enabled: true
119 name: mydb2
120
Swann Croiset1eaf3612016-12-02 14:42:48 +0100121Manage the retention policies for a database:
122
123.. code-block:: yaml
124
125 influxdb:
126 server:
127 database:
128 mydb1:
129 enabled: true
130 name: mydb1
131 retention_policy:
132 - name: rp_db1
133 duration: 30d
134 replication: 1
135 is_default: true
136
137Where default values are:
138
139* name = autogen
140* duration = INF
141* replication = 1
142* is_default: false
143
144
Guillaume Thouvenin071a93e2016-10-24 17:22:23 +0200145Here is how to manage grants on database:
146
147.. code-block:: yaml
148
149 influxdb:
150 server:
151 grant:
152 username1_mydb1:
153 enabled: true
154 user: username1
155 database: mydb1
156 privilege: all
157 username2_mydb1:
158 enabled: true
159 user: username2
160 database: mydb1
161 privilege: read
162 username2_mydb2:
163 enabled: true
164 user: username2
165 database: mydb2
166 privilege: write
167
Filip Pytlound6fa6ab2016-08-03 15:59:49 +0200168InfluxDB relay:
169
170.. code-block:: yaml
171
172 influxdb:
173 server:
174 enabled: true
175 http:
176 enabled: true
177 output:
178 idb01:
179 location: http://idb01.local:8086/write
180 timeout: 10
181 idb02:
182 location: http://idb02.local:8086/write
183 timeout: 10
184 udp:
185 enabled: true
186 output:
187 idb01:
188 location: idb01.local:9096
189 idb02:
190 location: idb02.local:9096
191
Filip Pytloune93852a2016-08-03 16:42:42 +0200192InfluxDB cluster:
193
194.. code-block:: yaml
195
196 influxdb:
197 server:
198 enabled: true
199 meta:
200 bind:
201 address: 0.0.0.0
202 port: 8088
203 http_address: 0.0.0.0
204 http_port: 8091
205 cluster:
206 members:
207 - host: idb01.local
208 port: 8091
209 - host: idb02.local
210 port: 8091
211 - host: idb03.local
212 port: 8091
213
Filip Pytlound6fa6ab2016-08-03 15:59:49 +0200214Deploy influxdb apt repository (using linux formula):
215
216.. code-block:: yaml
217
218 linux:
219 system:
220 os: ubuntu
221 dist: xenial
Guillaume Thouveninfa42e982016-10-21 12:23:23 +0200222 repo:
223 influxdb:
224 enabled: true
225 source: 'deb https://repos.influxdata.com/${linux:system:os} ${linux:system:dist} stable'
226 key_url: 'https://repos.influxdata.com/influxdb.key'
Filip Pytlound6fa6ab2016-08-03 15:59:49 +0200227
228Read more
229=========
230
231* https://influxdata.com/time-series-platform/influxdb/
Filip Pytloun1523e422017-02-02 13:02:03 +0100232
233Documentation and Bugs
234======================
235
236To learn how to install and update salt-formulas, consult the documentation
237available online at:
238
239 http://salt-formulas.readthedocs.io/
240
241In the unfortunate event that bugs are discovered, they should be reported to
242the appropriate issue tracker. Use Github issue tracker for specific salt
243formula:
244
245 https://github.com/salt-formulas/salt-formula-influxdb/issues
246
247For feature requests, bug reports or blueprints affecting entire ecosystem,
248use Launchpad salt-formulas project:
249
250 https://launchpad.net/salt-formulas
251
252You can also join salt-formulas-users team and subscribe to mailing list:
253
254 https://launchpad.net/~salt-formulas-users
255
256Developers wishing to work on the salt-formulas projects should always base
257their work on master branch and submit pull request against specific formula.
258
259 https://github.com/salt-formulas/salt-formula-influxdb
260
261Any questions or feedback is always welcome so feel free to join our IRC
262channel:
263
264 #salt-formulas @ irc.freenode.net