1 {%- from "influxdb/map.jinja" import server with context -%}
2 ### Welcome to the InfluxDB configuration file.
4 # Once every 24 hours InfluxDB will report anonymous data to m.influxdb.com
5 # The data includes raft id (random 8 bytes), os, arch, version, and metadata.
6 # We don't track ip addresses of servers reporting. This is only used
7 # to track the number of instances running and the versions, which
8 # is very helpful for us.
9 # Change this option to true to disable reporting.
10 reporting-disabled = false
12 # we'll try to get the hostname automatically, but if it the os returns something
13 # that isn't resolvable by other servers in the cluster, use this option to
14 # manually set the hostname
15 # hostname = "localhost"
20 ### Controls the parameters for the Raft consensus group that stores metadata
21 ### about the InfluxDB cluster.
25 # Where the metadata/raft database is stored
26 dir = "/var/lib/influxdb/meta"
28 retention-autocreate = true
30 # If log messages are printed for the meta service
31 logging-enabled = true
34 # The default duration for leases.
35 lease-duration = "1m0s"
40 ### Controls where the actual shard data for InfluxDB lives and how it is
41 ### flushed from the WAL. "dir" may need to be changed to a suitable place
42 ### for your system, but the WAL settings are an advanced configuration. The
43 ### defaults should work for most systems.
47 # Controls if this node holds time series data shards in the cluster
50 dir = "/var/lib/influxdb/data"
52 # These are the WAL settings for the storage engine >= 0.9.3
53 wal-dir = "/var/lib/influxdb/wal"
54 wal-logging-enabled = true
55 data-logging-enabled = true
57 # Whether queries should be logged before execution. Very useful for troubleshooting, but will
58 # log any sensitive data contained within a query.
59 # query-log-enabled = true
61 # Settings for the TSM engine
63 # CacheMaxMemorySize is the maximum size a shard's cache can
64 # reach before it starts rejecting writes.
65 # cache-max-memory-size = 524288000
67 # CacheSnapshotMemorySize is the size at which the engine will
68 # snapshot the cache and write it to a TSM file, freeing up memory
69 # cache-snapshot-memory-size = 26214400
71 # CacheSnapshotWriteColdDuration is the length of time at
72 # which the engine will snapshot the cache and write it to
73 # a new TSM file if the shard hasn't received writes or deletes
74 # cache-snapshot-write-cold-duration = "1h"
76 # MinCompactionFileCount is the minimum number of TSM files
77 # that need to exist before a compaction cycle will run
78 # compact-min-file-count = 3
80 # CompactFullWriteColdDuration is the duration at which the engine
81 # will compact all TSM files in a shard if it hasn't received a
83 # compact-full-write-cold-duration = "24h"
85 # MaxPointsPerBlock is the maximum number of points in an encoded
86 # block in a TSM file. Larger numbers may yield better compression
87 # but could incur a performance penalty when querying
88 # max-points-per-block = 1000
93 ### Controls non-Raft cluster behavior, which generally includes how data is
94 ### shared across shards.
98 shard-writer-timeout = "5s" # The time within which a remote shard must respond to a write request.
99 write-timeout = "10s" # The time within which a write request must complete on the cluster.
100 max-concurrent-queries = 0 # The maximum number of concurrent queries that can run. 0 to disable.
101 query-timeout = "0s" # The time within a query must complete before being killed automatically. 0s to disable.
102 max-select-point = 0 # The maximum number of points to scan in a query. 0 to disable.
103 max-select-series = 0 # The maximum number of series to select in a query. 0 to disable.
104 max-select-buckets = 0 # The maximum number of buckets to select in an aggregate query. 0 to disable.
109 ### Controls the enforcement of retention policies for evicting old data.
114 check-interval = "30m"
117 ### [shard-precreation]
119 ### Controls the precreation of shards, so they are available before data arrives.
120 ### Only shards that, after creation, will have both a start- and end-time in the
121 ### future, will ever be created. Shards are never precreated that would be wholly
122 ### or partially in the past.
126 check-interval = "10m"
127 advance-period = "30m"
130 ### Controls the system self-monitoring, statistics and diagnostics.
132 ### The internal database for monitoring data is created automatically if
133 ### if it does not already exist. The target retention within this database
134 ### is called 'monitor' and is also created with a retention period of 7 days
135 ### and a replication factor of 1, if it does not exist. In all cases the
136 ### this retention policy is configured as the default for the database.
139 store-enabled = true # Whether to record statistics internally.
140 store-database = "_internal" # The destination database for recorded statistics
141 store-interval = "10s" # The interval at which to record statistics
146 ### Controls the availability of the built-in, web-based admin interface. If HTTPS is
147 ### enabled for the admin interface, HTTPS must also be enabled on the [http] service.
150 {%- if server.admin.enabled %}
153 bind-address = "{{ server.admin.bind.address }}:{{ server.admin.bind.port }}"
154 {%- if server.admin.get('ssl', {}).get('enabled', False) %}
156 admins-certificate = "{{ server.admin.ssl.cert_file }}"
157 admins-private-key = "{{ server.admin.ssl.key_file }}"
159 https-enabled = false
169 ### Controls how the HTTP endpoints are configured. These are the primary
170 ### mechanism for getting data into and out of InfluxDB.
173 {%- if server.http.enabled %}
176 bind-address = "{{ server.http.bind.address }}:{{ server.http.bind.port }}"
179 write-tracing = false
180 pprof-enabled = false
181 {%- if server.http.get('ssl', {}).get('enabled', False) %}
183 https-certificate = "{{ server.http.ssl.cert_file }}"
184 https-private-key = "{{ server.http.ssl.key_file }}"
186 https-enabled = false
188 max-row-limit = 10000
189 {%- if server.http.output is defined %}
191 {%- for name, output in server.http.output.iteritems() %}
192 { name="{{ name }}", location="{{ output.location }}", timeout="{{ output.timeout|default('10') }}s" },
204 ### Controls one or many listeners for Graphite data.
209 # database = "graphite"
210 # bind-address = ":2003"
212 # consistency-level = "one"
214 # These next lines control how batching works. You should have this enabled
215 # otherwise you could get dropped metrics or poor performance. Batching
216 # will buffer points in memory if you have many coming in.
218 # batch-size = 5000 # will flush if this many points get buffered
219 # batch-pending = 10 # number of batches that may be pending in memory
220 # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
221 # udp-read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
223 ### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
226 ### Default tags that will be added to all metrics. These can be overridden at the template level
227 ### or by tags extracted from metric
228 # tags = ["region=us-east", "zone=1c"]
230 ### Each template line requires a template pattern. It can have an optional
231 ### filter before the template and separated by spaces. It can also have optional extra
232 ### tags following the template. Multiple tags should be separated by commas and no spaces
233 ### similar to the line protocol format. There can be only one default template.
235 # "*.app env.service.resource.measurement",
243 ### Controls one or many listeners for collectd data.
252 # These next lines control how batching works. You should have this enabled
253 # otherwise you could get dropped metrics or poor performance. Batching
254 # will buffer points in memory if you have many coming in.
256 # batch-size = 1000 # will flush if this many points get buffered
257 # batch-pending = 5 # number of batches that may be pending in memory
258 # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
259 # read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
264 ### Controls one or many listeners for OpenTSDB data.
269 # bind-address = ":4242"
270 # database = "opentsdb"
271 # retention-policy = ""
272 # consistency-level = "one"
273 # tls-enabled = false
275 # log-point-errors = true # Log an error for every malformed point.
277 # These next lines control how batching works. You should have this enabled
278 # otherwise you could get dropped metrics or poor performance. Only points
279 # metrics received over the telnet protocol undergo batching.
281 # batch-size = 1000 # will flush if this many points get buffered
282 # batch-pending = 5 # number of batches that may be pending in memory
283 # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
288 ### Controls the listeners for InfluxDB line protocol data via UDP.
291 {%- if server.udp.enabled %}
294 bind-address = "{{ server.udp.bind.address }}:{{ server.udp.bind.port }}"
296 # retention-policy = ""
298 # These next lines control how batching works. You should have this enabled
299 # otherwise you could get dropped metrics or poor performance. Batching
300 # will buffer points in memory if you have many coming in.
302 # batch-size = 1000 # will flush if this many points get buffered
303 # batch-pending = 5 # number of batches that may be pending in memory
304 # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
305 # read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
307 # set the expected UDP payload size; lower values tend to yield better performance, default is max UDP size 65536
308 # udp-payload-size = 65536
309 {%- if server.udp.output is defined %}
311 {%- for name, output in server.udp.output.iteritems() %}
312 { name="{{ name }}", location="{{ output.location }}"{% if output.mtu is defined %}, mtu="{{ output.mtu }}"{% endif %} },
322 ### [continuous_queries]
324 ### Controls how continuous queries are run within InfluxDB.
330 # run-interval = "1s" # interval for how often continuous queries will be checked if they need to run