Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_influxdb_influxdb.j2 20KB

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