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