influxdb.conf.j2 9.05 KB
Newer Older
1
2
3
4
5
6
7
8
### Welcome to the InfluxDB configuration file.

# Once every 24 hours InfluxDB will report anonymous data to m.influxdb.com
# The data includes raft id (random 8 bytes), os, arch, version, and metadata.
# We don't track ip addresses of servers reporting. This is only used
# to track the number of instances running and the versions, which
# is very helpful for us.
# Change this option to true to disable reporting.
9
reporting-disabled = {{ influxdb_disable_reporting }}
10
11
12
13
14
15
16
17
18

###
### [meta]
###
### Controls the parameters for the Raft consensus group that stores metadata
### about the InfluxDB cluster.
###

[meta]
19
  dir = "{{ influxdb_meta_dir }}"
20
  hostname = "localhost"
21
22
23
24
25
26
27
  bind-address = ":{{ influxdb_meta_port }}"
  retention-autocreate = {{ influxdb_meta_retention_autocreate }}
  election-timeout = "{{ influxdb_meta_election_timeout }}"
  heartbeat-timeout = "{{ influxdb_meta_heartbeat_timeout }}"
  leader-lease-timeout = "{{ influxdb_meta_leader_lease_timeout }}"
  commit-timeout = "{{ influxdb_meta_commit_timeout }}"
  cluster-tracing = {{ influxdb_meta_cluster_tracing }}
28
29
30
31
32
33
34
35

###
### [data]
###
### Controls where the actual shard data for InfluxDB lives.
###

[data]
36
37
  dir = "{{ influxdb_data_dir }}"
  # engine = "{{ influxdb_data_engine }}"
38
39
40

  # The following WAL settings are for the b1 storage engine used in 0.9.2. They won't
  # apply to any new shards created after upgrading to a version > 0.9.3.
41
42
43
  max-wal-size = {{ influxdb_data_max_wal_size }}
  wal-flush-interval = "{{ influxdb_data_wal_flush_interval }}"
  wal-partition-flush-delay = "{{ influxdb_data_wal_partition_flush_delay }}"
44
45

  # These are the WAL settings for the storage engine >= 0.9.3
46
47
  wal-dir = "{{ influxdb_data_wal_dir }}"
  wal-logging-enabled = {{ influxdb_data_wal_logging_enabled }}
48
49
50

  # When a series in the WAL in-memory cache reaches this size in bytes it is marked as ready to
  # flush to the index
51
  # wal-ready-series-size = {{ influxdb_data_wal_ready_series_size }}
52
53

  # Flush and compact a partition once this ratio of series are over the ready size
54
  # wal-compaction-threshold = {{ influxdb_data_wal_compaction_threshold }}
55
56

  # Force a flush and compaction if any series in a partition gets above this size in bytes
57
  # wal-max-series-size = {{ influxdb_data_wal_max_series_size }}
58
59
60
61

  # Force a flush of all series and full compaction if there have been no writes in this
  # amount of time. This is useful for ensuring that shards that are cold for writes don't
  # keep a bunch of data cached in memory and in the WAL.
62
  # wal-flush-cold-interval = "{{ influxdb_data_wal_flush_cold_interval }}"
63
64
65
66

  # Force a partition to flush its largest series if it reaches this approximate size in
  # bytes. Remember there are 5 partitions so you'll need at least 5x this amount of memory.
  # The more memory you have, the bigger this can be.
67
  # wal-partition-size-threshold = {{ influxdb_data_wal_partition_size_threshold }}
68
69
70
71
72
73
74
75
76
  
###
### [cluster]
###
### Controls non-Raft cluster behavior, which generally includes how data is
### shared across shards.
###

[cluster]
77
78
79
80
  shard-writer-timeout = "{{ influxdb_cluster_shard_writer_timeout }}"
  force-remote-mapping = {{ influxdb_cluster_force_remote_mapping }}
  write-timeout = "{{ influxdb_cluster_write_timeout }}"
  shard-mapper-timeout = "{{ influxdb_cluster_shard_mapper_timeout }}"
81
82
83
84
85
86
87
88

###
### [retention]
###
### Controls the enforcement of retention policies for evicting old data.
###

[retention]
89
90
  enabled = {{ influxdb_retention_enabled }}
  check-interval = "{{ influxdb_retention_check_interval }}"
91
92

[shard-precreation]
93
94
95
  enabled = {{ influxdb_shard_pre_enabled }}
  check-interval = "{{ influxdb_shard_pre_check_interval }}"
  advance-period = "{{ influxdb_shard_pre_advance_period }}"
96
97
98
99
100
101
102
103

###
### [admin]
###
### Controls the availability of the built-in, web-based admin interface.
###

[admin]
104
105
106
107
  enabled = {{ influxdb_admin_enabled }}
  bind-address = ":{{ influxdb_admin_port }}"
  https-enabled = {{ influxdb_admin_https_enabled }}
  https-certificate = "{{ influxdb_admin_https_certificate }}"
108
109

[monitor]
110
111
112
  store-enabled = {{ influxdb_monitor_store_enabled }}
  store-database = "{{ influxdb_monitor_store_database }}"
  store-interval = "{{ influxdb_monitor_store_interval }}"
113
114
115
116
117
118
119
120
121

###
### [http]
###
### Controls how the HTTP endpoints are configured. These are the primary
### mechanism for getting data into and out of InfluxDB.
###

[http]
122
123
124
125
126
127
128
129
  enabled = {{ influxdb_http_enabled }}
  bind-address = ":{{ influxdb_http_port }}"
  auth-enabled = {{ influxdb_http_auth_enabled }}
  log-enabled = {{ influxdb_http_log_enabled }}
  write-tracing = {{ influxdb_http_write_tracing }}
  pprof-enabled = {{ influxdb_http_pprof_enabled }}
  https-enabled = {{ influxdb_http_https_enabled }}
  https-certificate = "{{ influxdb_http_https_certificate }}"
130
131
132
133
134
135
136
137
  
###
### [[graphite]]
###
### Controls one or many listeners for Graphite data.
###

[[graphite]]
138
139
140
141
142
143
  enabled = {{ influxdb_graphite_enabled }}
  # bind-address = ":{{ influxdb_graphite_port }}"
  # protocol = "{{ influxdb_graphite_protocol }}"
  # consistency-level = "{{ influxdb_graphite_consistency_level }}"
  # name-separator = "{{ influxdb_graphite_name_separator }}"
  # name-position = "{{ influxdb_graphite_name_position }}"
144
145
146
147
148

  # These next lines control how batching works. You should have this enabled
  # otherwise you could get dropped metrics or poor performance. Batching
  # will buffer points in memory if you have many coming in.

149
150
151
  # batch-size = {{ influxdb_graphite_batch_size }} # will flush if this many points get buffered
  # batch-pending = {{ influxdb_graphite_batch_pending }} # number of batches that may be pending in memory
  # batch-timeout = "{{ influxdb_graphite_batch_timeout }}" # will flush at least this often even if we haven't hit buffer limit
152
153
154
155
156
157
158
159
160
161
162
163
164
165

  ## "name-schema" configures tag names for parsing the metric name from graphite protocol;
  ## separated by `name-separator`.
  ## The "measurement" tag is special and the corresponding field will become
  ## the name of the metric.
  ## e.g. "type.host.measurement.device" will parse "server.localhost.cpu.cpu0" as
  ## {
  ##     measurement: "cpu",
  ##     tags: {
  ##         "type": "server",
  ##         "host": "localhost,
  ##         "device": "cpu0"
  ##     }
  ## }
166
  # name-schema = "{{ influxdb_graphite_name_schema }}"
167
168
169
170

  ## If set to true, when the input metric name has more fields than `name-schema` specified,
  ## the extra fields will be ignored.
  ## Otherwise an error will be logged and the metric rejected.
171
  # ignore-unnamed = {{ influxdb_graphite_ignore_unnamed }}
172
173
174
175
176
177
178
179

###
### [collectd]
###
### Controls the listener for collectd data.
###

[collectd]
180
181
182
183
184
185
186
187
  enabled = {{ influxdb_collectd_enabled }}
  bind-address = ":{{ influxdb_collectd_port }}"
  database = "{{ influxdb_collectd_database }}"
  retention-policy = "{{ influxdb_collectd_retention_policy }}"
  batch-size = {{ influxdb_collectd_batch_size }}
  batch-pending = {{ influxdb_collectd_batch_pending }}
  batch-timeout = "{{ influxdb_collectd_batch_timeout }}"
  typesdb = "{{ influxdb_collectd_typesdb }}"
188
189
190
191
192
193
194
195

###
### [opentsdb]
###
### Controls the listener for OpenTSDB data.
###

[opentsdb]
196
197
198
199
200
201
202
203
204
205
  enabled = {{ influxdb_opentsdb_enabled }}
  # bind-address = ":{{ influxdb_opentsdb_port }}"
  # database = "{{ influxdb_opentsdb_database }}"
  # retention-policy = "{{ influxdb_opentsdb_retention_policy }}"
  # consistency-level = "{{ influxdb_opentsdb_consistency_level }}"
  # tls-enabled = {{ influxdb_opentsdb_tls_enabled }}
  # certificate = "{{ influxdb_opentsdb_certificate }}"
  # batch-size = {{ influxdb_opentsdb_batch_size }}
  # batch-pending = {{ influxdb_opentsdb_batch_pending }}
  # batch-timeout = "{{ influxdb_opentsdb_batch_timeout }}"
206
207
208
209
210
211
212

###
### [udp]
###
### Controls the listener for InfluxDB line protocol data via UDP.
###

213
214
  # TODO: Including the udp table prevents service from starting (even if disabled)
  # [udp]
215
216
217
218
219
  #   enabled = {{ influxdb_udp_enabled }}
  # bind-address = "{{ influxdb_udp_bind_address }}"
  # database = "{{ influxdb_udp_database }}"
  # batch-size = {{ influxdb_udp_batch_size }}
  # batch-timeout = "{{ influxdb_udp_batch_timeout }}"
220
221
222
223
224
225

###
### [monitoring]
###

[monitoring]
226
227
  enabled = {{ influxdb_monitoring_enabled }}
  write-interval = "{{ influxdb_monitoring_write_interval }}"
228
229
230
231
232
233
234
235

###
### [continuous_queries]
###
### Controls how continuous queries are run within InfluxDB.
###

[continuous_queries]
236
237
238
239
240
241
  log-enabled = {{ influxdb_cq_log_enabled }}
  enabled = {{ influxdb_cq_enabled }}
  recompute-previous-n = {{ influxdb_cq_recompute_previous_n }}
  recompute-no-older-than = "{{ influxdb_cq_recompute_no_older_than }}"
  compute-runs-per-interval = {{ influxdb_cq_compute_runs_per_interval }}
  compute-no-more-than = "{{ influxdb_cq_compute_no_more_than }}"
242
243
244
245
246
247
248
249
250
251

###
### [hinted-handoff]
###
### Controls the hinted handoff feature, which allows nodes to temporarily
### store queued data when one node of a cluster is down for a short period
### of time.
###

[hinted-handoff]
252
253
254
255
256
257
  enabled = {{ influxdb_hh_enabled }}
  dir = "{{ influxdb_hh_dir }}"
  max-size = {{ influxdb_hh_max_size }}
  max-age = "{{ influxdb_hh_max_age }}"
  retry-rate-limit = {{ influxdb_hh_retry_rate_limit }}
  retry-interval = "{{ influxdb_hh_retry_interval }}"