Debian Codegraph @

devstack/files/influxdb.conf

raw
1 ## Modified version of: https://github.com/influxdata/influxdb/blob/master/etc/config.sample.toml
2
3 ### Welcome to the InfluxDB configuration file.
4
5 # The values in this file override the default values used by the system if
6 # a config option is not specified. The commented out lines are the configuration
7 # field and the default value used. Uncommenting a line and changing the value
8 # will change the value used at runtime when the process is restarted.
9
10 # Once every 24 hours InfluxDB will report usage data to usage.influxdata.com
11 # The data includes a random ID, os, arch, version, the number of series and other
12 # usage data. No data from user databases is ever transmitted.
13 # Change this option to true to disable reporting.
14 # reporting-disabled = true
15
16 # Bind address to use for the RPC service for backup and restore.
17 # bind-address = "127.0.0.1:8088"
18
19 ###
20 ### [meta]
21 ###
22 ### Controls the parameters for the Raft consensus group that stores metadata
23 ### about the InfluxDB cluster.
24 ###
25
26 [meta]
27 # Where the metadata/raft database is stored
28 dir = "/var/lib/influxdb/meta"
29
30 # Automatically create a default retention policy when creating a database.
31 # retention-autocreate = true
32
33 # If log messages are printed for the meta service
34 # logging-enabled = true
35
36 ###
37 ### [data]
38 ###
39 ### Controls where the actual shard data for InfluxDB lives and how it is
40 ### flushed from the WAL. "dir" may need to be changed to a suitable place
41 ### for your system, but the WAL settings are an advanced configuration. The
42 ### defaults should work for most systems.
43 ###
44
45 [data]
46 # The directory where the TSM storage engine stores TSM files.
47 dir = "/var/lib/influxdb/data"
48
49 # The directory where the TSM storage engine stores WAL files.
50 wal-dir = "/var/lib/influxdb/wal"
51
52 # The amount of time that a write will wait before fsyncing. A duration
53 # greater than 0 can be used to batch up multiple fsync calls. This is useful for slower
54 # disks or when WAL write contention is seen. A value of 0s fsyncs every write to the WAL.
55 # Values in the range of 0-100ms are recommended for non-SSD disks.
56 # wal-fsync-delay = "0s"
57
58
59 # The type of shard index to use for new shards. The default is an in-memory index that is
60 # recreated at startup. A value of "tsi1" will use a disk based index that supports higher
61 # cardinality datasets.
62 # index-version = "inmem"
63
64 # Trace logging provides more verbose output around the tsm engine. Turning
65 # this on can provide more useful output for debugging tsm engine issues.
66 # trace-logging-enabled = false
67
68 # Whether queries should be logged before execution. Very useful for troubleshooting, but will
69 # log any sensitive data contained within a query.
70 # query-log-enabled = true
71
72 # Validates incoming writes to ensure keys only have valid unicode characters.
73 # This setting will incur a small overhead because every key must be checked.
74 # validate-keys = false
75
76 # Settings for the TSM engine
77
78 # CacheMaxMemorySize is the maximum size a shard's cache can
79 # reach before it starts rejecting writes.
80 # Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
81 # Values without a size suffix are in bytes.
82 # cache-max-memory-size = "1g"
83
84 # CacheSnapshotMemorySize is the size at which the engine will
85 # snapshot the cache and write it to a TSM file, freeing up memory
86 # Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
87 # Values without a size suffix are in bytes.
88 # cache-snapshot-memory-size = "25m"
89
90 # CacheSnapshotWriteColdDuration is the length of time at
91 # which the engine will snapshot the cache and write it to
92 # a new TSM file if the shard hasn't received writes or deletes
93 # cache-snapshot-write-cold-duration = "10m"
94
95 # CompactFullWriteColdDuration is the duration at which the engine
96 # will compact all TSM files in a shard if it hasn't received a
97 # write or delete
98 # compact-full-write-cold-duration = "4h"
99
100 # The maximum number of concurrent full and level compactions that can run at one time. A
101 # value of 0 results in 50% of runtime.GOMAXPROCS(0) used at runtime. Any number greater
102 # than 0 limits compactions to that value. This setting does not apply
103 # to cache snapshotting.
104 # max-concurrent-compactions = 0
105
106 # CompactThroughput is the rate limit in bytes per second that we
107 # will allow TSM compactions to write to disk. Note that short bursts are allowed
108 # to happen at a possibly larger value, set by CompactThroughputBurst
109 # compact-throughput = "48m"
110
111 # CompactThroughputBurst is the rate limit in bytes per second that we
112 # will allow TSM compactions to write to disk.
113 # compact-throughput-burst = "48m"
114
115 # The threshold, in bytes, when an index write-ahead log file will compact
116 # into an index file. Lower sizes will cause log files to be compacted more
117 # quickly and result in lower heap usage at the expense of write throughput.
118 # Higher sizes will be compacted less frequently, store more series in-memory,
119 # and provide higher write throughput.
120 # Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
121 # Values without a size suffix are in bytes.
122 # max-index-log-file-size = "1m"
123
124 # The maximum series allowed per database before writes are dropped. This limit can prevent
125 # high cardinality issues at the database level. This limit can be disabled by setting it to
126 # 0.
127 # max-series-per-database = 1000000
128
129 # The maximum number of tag values per tag that are allowed before writes are dropped. This limit
130 # can prevent high cardinality tag values from being written to a measurement. This limit can be
131 # disabled by setting it to 0.
132 # max-values-per-tag = 100000
133
134 # If true, then the mmap advise value MADV_WILLNEED will be provided to the kernel with respect to
135 # TSM files. This setting has been found to be problematic on some kernels, and defaults to off.
136 # It might help users who have slow disks in some cases.
137 # tsm-use-madv-willneed = false
138
139 ###
140 ### [coordinator]
141 ###
142 ### Controls the clustering service configuration.
143 ###
144
145 [coordinator]
146 # The default time a write request will wait until a "timeout" error is returned to the caller.
147 # write-timeout = "10s"
148
149 # The maximum number of concurrent queries allowed to be executing at one time. If a query is
150 # executed and exceeds this limit, an error is returned to the caller. This limit can be disabled
151 # by setting it to 0.
152 # max-concurrent-queries = 0
153
154 # The maximum time a query will is allowed to execute before being killed by the system. This limit
155 # can help prevent run away queries. Setting the value to 0 disables the limit.
156 # query-timeout = "0s"
157
158 # The time threshold when a query will be logged as a slow query. This limit can be set to help
159 # discover slow or resource intensive queries. Setting the value to 0 disables the slow query logging.
160 # log-queries-after = "0s"
161
162 # The maximum number of points a SELECT can process. A value of 0 will make
163 # the maximum point count unlimited. This will only be checked every second so queries will not
164 # be aborted immediately when hitting the limit.
165 # max-select-point = 0
166
167 # The maximum number of series a SELECT can run. A value of 0 will make the maximum series
168 # count unlimited.
169 # max-select-series = 0
170
171 # The maxium number of group by time bucket a SELECT can create. A value of zero will max the maximum
172 # number of buckets unlimited.
173 # max-select-buckets = 0
174
175 ###
176 ### [retention]
177 ###
178 ### Controls the enforcement of retention policies for evicting old data.
179 ###
180
181 [retention]
182 # Determines whether retention policy enforcement enabled.
183 # enabled = true
184
185 # The interval of time when retention policy enforcement checks run.
186 # check-interval = "30m"
187
188 ###
189 ### [shard-precreation]
190 ###
191 ### Controls the precreation of shards, so they are available before data arrives.
192 ### Only shards that, after creation, will have both a start- and end-time in the
193 ### future, will ever be created. Shards are never precreated that would be wholly
194 ### or partially in the past.
195
196 [shard-precreation]
197 # Determines whether shard pre-creation service is enabled.
198 # enabled = true
199
200 # The interval of time when the check to pre-create new shards runs.
201 # check-interval = "10m"
202
203 # The default period ahead of the endtime of a shard group that its successor
204 # group is created.
205 # advance-period = "30m"
206
207 ###
208 ### Controls the system self-monitoring, statistics and diagnostics.
209 ###
210 ### The internal database for monitoring data is created automatically if
211 ### if it does not already exist. The target retention within this database
212 ### is called 'monitor' and is also created with a retention period of 7 days
213 ### and a replication factor of 1, if it does not exist. In all cases the
214 ### this retention policy is configured as the default for the database.
215
216 [monitor]
217 # Whether to record statistics internally.
218 # store-enabled = true
219
220 # The destination database for recorded statistics
221 # store-database = "_internal"
222
223 # The interval at which to record statistics
224 # store-interval = "10s"
225
226 ###
227 ### [http]
228 ###
229 ### Controls how the HTTP endpoints are configured. These are the primary
230 ### mechanism for getting data into and out of InfluxDB.
231 ###
232
233 [http]
234 # Determines whether HTTP endpoint is enabled.
235 enabled = true
236
237 # The bind address used by the HTTP service.
238 bind-address = ":8086"
239
240 # Determines whether user authentication is enabled over HTTP/HTTPS.
241 # auth-enabled = false
242
243 # The default realm sent back when issuing a basic auth challenge.
244 # realm = "InfluxDB"
245
246 # Determines whether HTTP request logging is enabled.
247 # log-enabled = true
248
249 # Determines whether the HTTP write request logs should be suppressed when the log is enabled.
250 # suppress-write-log = false
251
252 # When HTTP request logging is enabled, this option specifies the path where
253 # log entries should be written. If unspecified, the default is to write to stderr, which
254 # intermingles HTTP logs with internal InfluxDB logging.
255 #
256 # If influxd is unable to access the specified path, it will log an error and fall back to writing
257 # the request log to stderr.
258 # access-log-path = ""
259
260 # Determines whether detailed write logging is enabled.
261 # write-tracing = false
262
263 # Determines whether the pprof endpoint is enabled. This endpoint is used for
264 # troubleshooting and monitoring.
265 # pprof-enabled = true
266
267 # Enables a pprof endpoint that binds to localhost:6060 immediately on startup.
268 # This is only needed to debug startup issues.
269 # debug-pprof-enabled = false
270
271 # Determines whether HTTPS is enabled.
272 # https-enabled = false
273
274 # The SSL certificate to use when HTTPS is enabled.
275 # https-certificate = "/etc/ssl/influxdb.pem"
276
277 # Use a separate private key location.
278 # https-private-key = ""
279
280 # The JWT auth shared secret to validate requests using JSON web tokens.
281 # shared-secret = ""
282
283 # The default chunk size for result sets that should be chunked.
284 # max-row-limit = 0
285
286 # The maximum number of HTTP connections that may be open at once. New connections that
287 # would exceed this limit are dropped. Setting this value to 0 disables the limit.
288 # max-connection-limit = 0
289
290 # Enable http service over unix domain socket
291 # unix-socket-enabled = false
292
293 # The path of the unix domain socket.
294 # bind-socket = "/var/run/influxdb.sock"
295
296 # The maximum size of a client request body, in bytes. Setting this value to 0 disables the limit.
297 # max-body-size = 25000000
298
299 # The maximum number of writes processed concurrently.
300 # Setting this to 0 disables the limit.
301 # max-concurrent-write-limit = 0
302
303 # The maximum number of writes queued for processing.
304 # Setting this to 0 disables the limit.
305 # max-enqueued-write-limit = 0
306
307 # The maximum duration for a write to wait in the queue to be processed.
308 # Setting this to 0 or setting max-concurrent-write-limit to 0 disables the limit.
309 # enqueued-write-timeout = 0
310
311
312 ###
313 ### [ifql]
314 ###
315 ### Configures the ifql RPC API.
316 ###
317
318 [ifql]
319 # Determines whether the RPC service is enabled.
320 # enabled = true
321
322 # Determines whether additional logging is enabled.
323 # log-enabled = true
324
325 # The bind address used by the ifql RPC service.
326 # bind-address = ":8082"
327
328
329 ###
330 ### [logging]
331 ###
332 ### Controls how the logger emits logs to the output.
333 ###
334
335 [logging]
336 # Determines which log encoder to use for logs. Available options
337 # are auto, logfmt, and json. auto will use a more a more user-friendly
338 # output format if the output terminal is a TTY, but the format is not as
339 # easily machine-readable. When the output is a non-TTY, auto will use
340 # logfmt.
341 # format = "auto"
342
343 # Determines which level of logs will be emitted. The available levels
344 # are error, warn, info, and debug. Logs that are equal to or above the
345 # specified level will be emitted.
346 # level = "info"
347
348 # Suppresses the logo output that is printed when the program is started.
349 # The logo is always suppressed if STDOUT is not a TTY.
350 # suppress-logo = false
351
352 ###
353 ### [subscriber]
354 ###
355 ### Controls the subscriptions, which can be used to fork a copy of all data
356 ### received by the InfluxDB host.
357 ###
358
359 [subscriber]
360 # Determines whether the subscriber service is enabled.
361 # enabled = true
362
363 # The default timeout for HTTP writes to subscribers.
364 # http-timeout = "30s"
365
366 # Allows insecure HTTPS connections to subscribers. This is useful when testing with self-
367 # signed certificates.
368 # insecure-skip-verify = false
369
370 # The path to the PEM encoded CA certs file. If the empty string, the default system certs will be used
371 # ca-certs = ""
372
373 # The number of writer goroutines processing the write channel.
374 # write-concurrency = 40
375
376 # The number of in-flight writes buffered in the write channel.
377 # write-buffer-size = 1000
378
379
380 ###
381 ### [[graphite]]
382 ###
383 ### Controls one or many listeners for Graphite data.
384 ###
385
386 [[graphite]]
387 # Determines whether the graphite endpoint is enabled.
388 # enabled = false
389 # database = "graphite"
390 # retention-policy = ""
391 # bind-address = ":2003"
392 # protocol = "tcp"
393 # consistency-level = "one"
394
395 # These next lines control how batching works. You should have this enabled
396 # otherwise you could get dropped metrics or poor performance. Batching
397 # will buffer points in memory if you have many coming in.
398
399 # Flush if this many points get buffered
400 # batch-size = 5000
401
402 # number of batches that may be pending in memory
403 # batch-pending = 10
404
405 # Flush at least this often even if we haven't hit buffer limit
406 # batch-timeout = "1s"
407
408 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
409 # udp-read-buffer = 0
410
411 ### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
412 # separator = "."
413
414 ### Default tags that will be added to all metrics. These can be overridden at the template level
415 ### or by tags extracted from metric
416 # tags = ["region=us-east", "zone=1c"]
417
418 ### Each template line requires a template pattern. It can have an optional
419 ### filter before the template and separated by spaces. It can also have optional extra
420 ### tags following the template. Multiple tags should be separated by commas and no spaces
421 ### similar to the line protocol format. There can be only one default template.
422 # templates = [
423 # "*.app env.service.resource.measurement",
424 # # Default template
425 # "server.*",
426 # ]
427
428 ###
429 ### [collectd]
430 ###
431 ### Controls one or many listeners for collectd data.
432 ###
433
434 [[collectd]]
435 # enabled = false
436 # bind-address = ":25826"
437 # database = "collectd"
438 # retention-policy = ""
439 #
440 # The collectd service supports either scanning a directory for multiple types
441 # db files, or specifying a single db file.
442 # typesdb = "/usr/local/share/collectd"
443 #
444 # security-level = "none"
445 # auth-file = "/etc/collectd/auth_file"
446
447 # These next lines control how batching works. You should have this enabled
448 # otherwise you could get dropped metrics or poor performance. Batching
449 # will buffer points in memory if you have many coming in.
450
451 # Flush if this many points get buffered
452 # batch-size = 5000
453
454 # Number of batches that may be pending in memory
455 # batch-pending = 10
456
457 # Flush at least this often even if we haven't hit buffer limit
458 # batch-timeout = "10s"
459
460 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
461 # read-buffer = 0
462
463 # Multi-value plugins can be handled two ways.
464 # "split" will parse and store the multi-value plugin data into separate measurements
465 # "join" will parse and store the multi-value plugin as a single multi-value measurement.
466 # "split" is the default behavior for backward compatability with previous versions of influxdb.
467 # parse-multivalue-plugin = "split"
468 ###
469 ### [opentsdb]
470 ###
471 ### Controls one or many listeners for OpenTSDB data.
472 ###
473
474 [[opentsdb]]
475 # enabled = false
476 # bind-address = ":4242"
477 # database = "opentsdb"
478 # retention-policy = ""
479 # consistency-level = "one"
480 # tls-enabled = false
481 # certificate= "/etc/ssl/influxdb.pem"
482
483 # Log an error for every malformed point.
484 # log-point-errors = true
485
486 # These next lines control how batching works. You should have this enabled
487 # otherwise you could get dropped metrics or poor performance. Only points
488 # metrics received over the telnet protocol undergo batching.
489
490 # Flush if this many points get buffered
491 # batch-size = 1000
492
493 # Number of batches that may be pending in memory
494 # batch-pending = 5
495
496 # Flush at least this often even if we haven't hit buffer limit
497 # batch-timeout = "1s"
498
499 ###
500 ### [[udp]]
501 ###
502 ### Controls the listeners for InfluxDB line protocol data via UDP.
503 ###
504
505 [[udp]]
506 # enabled = false
507 # bind-address = ":8089"
508 # database = "udp"
509 # retention-policy = ""
510
511 # InfluxDB precision for timestamps on received points ("" or "n", "u", "ms", "s", "m", "h")
512 # precision = ""
513
514 # These next lines control how batching works. You should have this enabled
515 # otherwise you could get dropped metrics or poor performance. Batching
516 # will buffer points in memory if you have many coming in.
517
518 # Flush if this many points get buffered
519 # batch-size = 5000
520
521 # Number of batches that may be pending in memory
522 # batch-pending = 10
523
524 # Will flush at least this often even if we haven't hit buffer limit
525 # batch-timeout = "1s"
526
527 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
528 # read-buffer = 0
529
530 ###
531 ### [continuous_queries]
532 ###
533 ### Controls how continuous queries are run within InfluxDB.
534 ###
535
536 [continuous_queries]
537 # Determines whether the continuous query service is enabled.
538 # enabled = true
539
540 # Controls whether queries are logged when executed by the CQ service.
541 # log-enabled = true
542
543 # Controls whether queries are logged to the self-monitoring data store.
544 # query-stats-enabled = false
545
546 # interval for how often continuous queries will be checked if they need to run
547 # run-interval = "1s"
548
549 ###
550 ### [tls]
551 ###
552 ### Global configuration settings for TLS in InfluxDB.
553 ###
554
555 [tls]
556 # Determines the available set of cipher suites. See https://golang.org/pkg/crypto/tls/#pkg-constants
557 # for a list of available ciphers, which depends on the version of Go (use the query
558 # SHOW DIAGNOSTICS to see the version of Go used to build InfluxDB). If not specified, uses
559 # the default settings from Go's crypto/tls package.
560 # ciphers = [
561 # "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
562 # "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
563 # ]
564
565 # Minimum version of the tls protocol that will be negotiated. If not specified, uses the
566 # default settings from Go's crypto/tls package.
567 # min-version = "tls1.2"
568
569 # Maximum version of the tls protocol that will be negotiated. If not specified, uses the
570 # default settings from Go's crypto/tls package.
571 # max-version = "tls1.2"