blob: 48a494f257be783b6525c03abe358214075c9354 [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 Thouvenin071a93e2016-10-24 17:22:23 +020043Single-node influxdb with an admin user:
44
45.. code-block:: yaml
46
47 influxdb:
48 server:
49 enabled: true
50 http:
51 enabled: true
52 bind:
53 address: 0.0.0.0
54 port: 8086
55 admin:
56 enabled: true
57 bind:
58 address: 0.0.0.0
59 port: 8083
60 user:
61 enabled: true
62 name: root
63 password: secret
64
65Single-node influxdb with new users:
66
67.. code-block:: yaml
68
69 influxdb:
70 server:
71 user:
72 user1:
73 enabled: true
74 admin: true
75 name: username1
76 password: keepsecret1
77 user2:
78 enabled: true
79 admin: false
80 name: username2
81 password: keepsecret2
82
83Single-node influxdb with new databases:
84
85.. code-block:: yaml
86
87 influxdb:
88 server:
89 database:
90 mydb1:
91 enabled: true
92 name: mydb1
93 mydb2:
94 enabled: true
95 name: mydb2
96
97Here is how to manage grants on database:
98
99.. code-block:: yaml
100
101 influxdb:
102 server:
103 grant:
104 username1_mydb1:
105 enabled: true
106 user: username1
107 database: mydb1
108 privilege: all
109 username2_mydb1:
110 enabled: true
111 user: username2
112 database: mydb1
113 privilege: read
114 username2_mydb2:
115 enabled: true
116 user: username2
117 database: mydb2
118 privilege: write
119
Filip Pytlound6fa6ab2016-08-03 15:59:49 +0200120InfluxDB relay:
121
122.. code-block:: yaml
123
124 influxdb:
125 server:
126 enabled: true
127 http:
128 enabled: true
129 output:
130 idb01:
131 location: http://idb01.local:8086/write
132 timeout: 10
133 idb02:
134 location: http://idb02.local:8086/write
135 timeout: 10
136 udp:
137 enabled: true
138 output:
139 idb01:
140 location: idb01.local:9096
141 idb02:
142 location: idb02.local:9096
143
Filip Pytloune93852a2016-08-03 16:42:42 +0200144InfluxDB cluster:
145
146.. code-block:: yaml
147
148 influxdb:
149 server:
150 enabled: true
151 meta:
152 bind:
153 address: 0.0.0.0
154 port: 8088
155 http_address: 0.0.0.0
156 http_port: 8091
157 cluster:
158 members:
159 - host: idb01.local
160 port: 8091
161 - host: idb02.local
162 port: 8091
163 - host: idb03.local
164 port: 8091
165
Filip Pytlound6fa6ab2016-08-03 15:59:49 +0200166Deploy influxdb apt repository (using linux formula):
167
168.. code-block:: yaml
169
170 linux:
171 system:
172 os: ubuntu
173 dist: xenial
Guillaume Thouveninfa42e982016-10-21 12:23:23 +0200174 repo:
175 influxdb:
176 enabled: true
177 source: 'deb https://repos.influxdata.com/${linux:system:os} ${linux:system:dist} stable'
178 key_url: 'https://repos.influxdata.com/influxdb.key'
Filip Pytlound6fa6ab2016-08-03 15:59:49 +0200179
180Read more
181=========
182
183* https://influxdata.com/time-series-platform/influxdb/