Debian Codegraph @

docker/mqtt-composer/influxdb.conf

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