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 = {{ server.reporting_disabled | lower }}
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.
24 {%- if server.meta.enabled %}
26 # Where the metadata/raft database is stored
27 dir = "{{ server.meta.dir }}"
29 retention-autocreate = true
31 # If log messages are printed for the meta service
32 logging-enabled = true
35 # The default duration for leases.
36 lease-duration = "1m0s"
41 {%- if server.get('meta', {}).bind is defined %}
42 bind-address = "{{ server.meta.bind.address }}:{{ server.admin.bind.port }}"
43 http-bind-address = "{{ server.meta.bind.http_address }}:{{ server.admin.bind.http_port }}"
49 ### Controls where the actual shard data for InfluxDB lives and how it is
50 ### flushed from the WAL. "dir" may need to be changed to a suitable place
51 ### for your system, but the WAL settings are an advanced configuration. The
52 ### defaults should work for most systems.
55 {%- if server.data.enabled %}
57 # Controls if this node holds time series data shards in the cluster
60 dir = "{{ server.data.dir }}"
62 # These are the WAL settings for the storage engine >= 0.9.3
63 wal-dir = "{{ server.data.wal_dir }}"
64 wal-logging-enabled = true
65 data-logging-enabled = true
67 # Whether queries should be logged before execution. Very useful for troubleshooting, but will
68 # log any sensitive data contained within a query.
69 query-log-enabled = {{ server.data.query_log_enabled | lower }}
71 # Settings for the TSM engine
73 # CacheMaxMemorySize is the maximum size a shard's cache can
74 # reach before it starts rejecting writes.
75 # cache-max-memory-size = 524288000
77 # CacheSnapshotMemorySize is the size at which the engine will
78 # snapshot the cache and write it to a TSM file, freeing up memory
79 # cache-snapshot-memory-size = 26214400
81 # CacheSnapshotWriteColdDuration is the length of time at
82 # which the engine will snapshot the cache and write it to
83 # a new TSM file if the shard hasn't received writes or deletes
84 # cache-snapshot-write-cold-duration = "1h"
86 # MinCompactionFileCount is the minimum number of TSM files
87 # that need to exist before a compaction cycle will run
88 # compact-min-file-count = 3
90 # CompactFullWriteColdDuration is the duration at which the engine
91 # will compact all TSM files in a shard if it hasn't received a
93 # compact-full-write-cold-duration = "24h"
95 # MaxPointsPerBlock is the maximum number of points in an encoded
96 # block in a TSM file. Larger numbers may yield better compression
97 # but could incur a performance penalty when querying
98 # max-points-per-block = 1000
100 max-series-per-database = {{ server.data.max_series_per_database|default(1000000) }}
109 ### Controls the clustering service configuration.
113 write-timeout = "10s"
114 max-concurrent-queries = 0
116 log-queries-after = "0"
118 max-select-series = 0
119 max-select-buckets = 0
124 ### Controls the enforcement of retention policies for evicting old data.
129 check-interval = "30m"
132 ### [shard-precreation]
134 ### Controls the precreation of shards, so they are available before data arrives.
135 ### Only shards that, after creation, will have both a start- and end-time in the
136 ### future, will ever be created. Shards are never precreated that would be wholly
137 ### or partially in the past.
141 check-interval = "10m"
142 advance-period = "30m"
145 ### Controls the system self-monitoring, statistics and diagnostics.
147 ### The internal database for monitoring data is created automatically if
148 ### if it does not already exist. The target retention within this database
149 ### is called 'monitor' and is also created with a retention period of 7 days
150 ### and a replication factor of 1, if it does not exist. In all cases the
151 ### this retention policy is configured as the default for the database.
154 store-enabled = true # Whether to record statistics internally.
155 store-database = "_internal" # The destination database for recorded statistics
156 store-interval = "10s" # The interval at which to record statistics
161 ### Controls the availability of the built-in, web-based admin interface. If HTTPS is
162 ### enabled for the admin interface, HTTPS must also be enabled on the [http] service.
165 {%- if server.admin.enabled %}
168 bind-address = "{{ server.admin.bind.address }}:{{ server.admin.bind.port }}"
169 {%- if server.admin.get('ssl', {}).get('enabled', False) %}
171 admins-certificate = "{{ server.admin.ssl.cert_file }}"
172 admins-private-key = "{{ server.admin.ssl.key_file }}"
174 https-enabled = false
184 ### Controls how the HTTP endpoints are configured. These are the primary
185 ### mechanism for getting data into and out of InfluxDB.
188 {%- if server.http.enabled %}
191 bind-address = "{{ server.http.bind.address }}:{{ server.http.bind.port }}"
192 {%- if server.admin.get('user', {}).get('enabled', False) %}
197 log-enabled = {{ server.http.log_enabled | lower }}
198 write-tracing = false
199 pprof-enabled = false
200 {%- if server.http.get('ssl', {}).get('enabled', False) %}
202 https-certificate = "{{ server.http.ssl.cert_file }}"
203 https-private-key = "{{ server.http.ssl.key_file }}"
205 https-enabled = false
207 max-row-limit = 10000
208 {%- if server.http.output is defined %}
210 {%- for name, output in server.http.output.iteritems() %}
211 { name="{{ name }}", location="{{ output.location }}", timeout="{{ output.timeout|default('10') }}s" },
223 ### Controls the subscriptions, which can be used to fork a copy of all data
224 ### received by the InfluxDB host.
229 # http-timeout = "30s"
230 # write-concurrency = 40
231 # write-buffer-size = 1000
236 ### Controls one or many listeners for Graphite data.
241 # database = "graphite"
242 # bind-address = ":2003"
244 # consistency-level = "one"
246 # These next lines control how batching works. You should have this enabled
247 # otherwise you could get dropped metrics or poor performance. Batching
248 # will buffer points in memory if you have many coming in.
250 # batch-size = 5000 # will flush if this many points get buffered
251 # batch-pending = 10 # number of batches that may be pending in memory
252 # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
253 # udp-read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
255 ### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
258 ### Default tags that will be added to all metrics. These can be overridden at the template level
259 ### or by tags extracted from metric
260 # tags = ["region=us-east", "zone=1c"]
262 ### Each template line requires a template pattern. It can have an optional
263 ### filter before the template and separated by spaces. It can also have optional extra
264 ### tags following the template. Multiple tags should be separated by commas and no spaces
265 ### similar to the line protocol format. There can be only one default template.
267 # "*.app env.service.resource.measurement",
275 ### Controls one or many listeners for collectd data.
284 # These next lines control how batching works. You should have this enabled
285 # otherwise you could get dropped metrics or poor performance. Batching
286 # will buffer points in memory if you have many coming in.
288 # batch-size = 1000 # will flush if this many points get buffered
289 # batch-pending = 5 # number of batches that may be pending in memory
290 # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
291 # read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
296 ### Controls one or many listeners for OpenTSDB data.
301 # bind-address = ":4242"
302 # database = "opentsdb"
303 # retention-policy = ""
304 # consistency-level = "one"
305 # tls-enabled = false
307 # log-point-errors = true # Log an error for every malformed point.
309 # These next lines control how batching works. You should have this enabled
310 # otherwise you could get dropped metrics or poor performance. Only points
311 # metrics received over the telnet protocol undergo batching.
313 # batch-size = 1000 # will flush if this many points get buffered
314 # batch-pending = 5 # number of batches that may be pending in memory
315 # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
320 ### Controls the listeners for InfluxDB line protocol data via UDP.
323 {%- if server.udp.enabled %}
326 bind-address = "{{ server.udp.bind.address }}:{{ server.udp.bind.port }}"
328 # retention-policy = ""
330 # These next lines control how batching works. You should have this enabled
331 # otherwise you could get dropped metrics or poor performance. Batching
332 # will buffer points in memory if you have many coming in.
334 # batch-size = 1000 # will flush if this many points get buffered
335 # batch-pending = 5 # number of batches that may be pending in memory
336 # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
337 # read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
339 # set the expected UDP payload size; lower values tend to yield better performance, default is max UDP size 65536
340 # udp-payload-size = 65536
341 {%- if server.udp.output is defined %}
343 {%- for name, output in server.udp.output.iteritems() %}
344 { name="{{ name }}", location="{{ output.location }}"{% if output.mtu is defined %}, mtu="{{ output.mtu }}"{% endif %} },
354 ### [continuous_queries]
356 ### Controls how continuous queries are run within InfluxDB.
362 # run-interval = "1s" # interval for how often continuous queries will be checked if they need to run