influxdb.conf.tmpl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  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 the configuration
  4. # field and the default value used. Uncommentting 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. # we'll try to get the hostname automatically, but if it the os returns something
  12. # that isn't resolvable by other servers in the cluster, use this option to
  13. # manually set the hostname
  14. # hostname = "localhost"
  15. ###
  16. ### [meta]
  17. ###
  18. ### Controls the parameters for the Raft consensus group that stores metadata
  19. ### about the InfluxDB cluster.
  20. ###
  21. [meta]
  22. # Where the metadata/raft database is stored
  23. dir = "/var/lib/influxdb/meta"
  24. # Automatically create a default retention policy when creating a database.
  25. # retention-autocreate = true
  26. # If log messages are printed for the meta service
  27. # logging-enabled = true
  28. ###
  29. ### [data]
  30. ###
  31. ### Controls where the actual shard data for InfluxDB lives and how it is
  32. ### flushed from the WAL. "dir" may need to be changed to a suitable place
  33. ### for your system, but the WAL settings are an advanced configuration. The
  34. ### defaults should work for most systems.
  35. ###
  36. [data]
  37. # The directory where the TSM storage engine stores TSM files.
  38. dir = "/var/lib/influxdb/data"
  39. # The directory where the TSM storage engine stores WAL files.
  40. wal-dir = "/var/lib/influxdb/wal"
  41. # Trace logging provides more verbose output around the tsm engine. Turning
  42. # this on can provide more useful output for debugging tsm engine issues.
  43. # trace-logging-enabled = false
  44. # Whether queries should be logged before execution. Very useful for troubleshooting, but will
  45. # log any sensitive data contained within a query.
  46. # query-log-enabled = true
  47. # Settings for the TSM engine
  48. # CacheMaxMemorySize is the maximum size a shard's cache can
  49. # reach before it starts rejecting writes.
  50. # cache-max-memory-size = 1048576000
  51. # CacheSnapshotMemorySize is the size at which the engine will
  52. # snapshot the cache and write it to a TSM file, freeing up memory
  53. # cache-snapshot-memory-size = 26214400
  54. # CacheSnapshotWriteColdDuration is the length of time at
  55. # which the engine will snapshot the cache and write it to
  56. # a new TSM file if the shard hasn't received writes or deletes
  57. # cache-snapshot-write-cold-duration = "10m"
  58. # CompactFullWriteColdDuration is the duration at which the engine
  59. # will compact all TSM files in a shard if it hasn't received a
  60. # write or delete
  61. # compact-full-write-cold-duration = "4h"
  62. # The maximum series allowed per database before writes are dropped. This limit can prevent
  63. # high cardinality issues at the database level. This limit can be disabled by setting it to
  64. # 0.
  65. # max-series-per-database = 1000000
  66. # The maximum number of tag values per tag that are allowed before writes are dropped. This limit
  67. # can prevent high cardinality tag values from being written to a measurement. This limit can be
  68. # disabled by setting it to 0.
  69. # max-values-per-tag = 100000
  70. ###
  71. ### [coordinator]
  72. ###
  73. ### Controls the clustering service configuration.
  74. ###
  75. [coordinator]
  76. # The default time a write request will wait until a "timeout" error is returned to the caller.
  77. # write-timeout = "10s"
  78. # The maximum number of concurrent queries allowed to be executing at one time. If a query is
  79. # executed and exceeds this limit, an error is returned to the caller. This limit can be disabled
  80. # by setting it to 0.
  81. # max-concurrent-queries = 0
  82. # The maximum time a query will is allowed to execute before being killed by the system. This limit
  83. # can help prevent run away queries. Setting the value to 0 disables the limit.
  84. # query-timeout = "0s"
  85. # The the time threshold when a query will be logged as a slow query. This limit can be set to help
  86. # discover slow or resource intensive queries. Setting the value to 0 disables the slow query logging.
  87. # log-queries-after = "0s"
  88. # The maximum number of points a SELECT can process. A value of 0 will make the maximum
  89. # point count unlimited.
  90. # max-select-point = 0
  91. # The maximum number of series a SELECT can run. A value of 0 will make the maximum series
  92. # count unlimited.
  93. # max-select-series = 0
  94. # The maxium number of group by time bucket a SELECt can create. A value of zero will max the maximum
  95. # number of buckets unlimited.
  96. # max-select-buckets = 0
  97. ###
  98. ### [retention]
  99. ###
  100. ### Controls the enforcement of retention policies for evicting old data.
  101. ###
  102. [retention]
  103. # Determines whether retention policy enforcment enabled.
  104. # enabled = true
  105. # The interval of time when retention policy enforcement checks run.
  106. # check-interval = "30m"
  107. ###
  108. ### [shard-precreation]
  109. ###
  110. ### Controls the precreation of shards, so they are available before data arrives.
  111. ### Only shards that, after creation, will have both a start- and end-time in the
  112. ### future, will ever be created. Shards are never precreated that would be wholly
  113. ### or partially in the past.
  114. [shard-precreation]
  115. # Determines whether shard pre-creation service is enabled.
  116. # enabled = true
  117. # The interval of time when the check to pre-create new shards runs.
  118. # check-interval = "10m"
  119. # The default period ahead of the endtime of a shard group that its successor
  120. # group is created.
  121. # advance-period = "30m"
  122. ###
  123. ### Controls the system self-monitoring, statistics and diagnostics.
  124. ###
  125. ### The internal database for monitoring data is created automatically if
  126. ### if it does not already exist. The target retention within this database
  127. ### is called 'monitor' and is also created with a retention period of 7 days
  128. ### and a replication factor of 1, if it does not exist. In all cases the
  129. ### this retention policy is configured as the default for the database.
  130. [monitor]
  131. # Whether to record statistics internally.
  132. # store-enabled = true
  133. # The destination database for recorded statistics
  134. # store-database = "_internal"
  135. # The interval at which to record statistics
  136. # store-interval = "10s"
  137. ###
  138. ### [admin]
  139. ###
  140. ### Controls the availability of the built-in, web-based admin interface. If HTTPS is
  141. ### enabled for the admin interface, HTTPS must also be enabled on the [http] service.
  142. ###
  143. ### NOTE: This interface is deprecated as of 1.1.0 and will be removed in a future release.
  144. [admin]
  145. # Determines whether the admin service is enabled.
  146. # enabled = false
  147. # The default bind address used by the admin service.
  148. # bind-address = ":8083"
  149. # Whether the admin service should use HTTPS.
  150. # https-enabled = false
  151. # The SSL certificate used when HTTPS is enabled.
  152. # https-certificate = "/etc/ssl/influxdb.pem"
  153. ###
  154. ### [http]
  155. ###
  156. ### Controls how the HTTP endpoints are configured. These are the primary
  157. ### mechanism for getting data into and out of InfluxDB.
  158. ###
  159. [http]
  160. # Determines whether HTTP endpoint is enabled.
  161. enabled = true
  162. # The bind address used by the HTTP service.
  163. bind-address = ":8086"
  164. # Determines whether HTTP authentication is enabled.
  165. auth-enabled = true
  166. # The default realm sent back when issuing a basic auth challenge.
  167. # realm = "InfluxDB"
  168. # Determines whether HTTP request logging is enable.d
  169. # log-enabled = true
  170. # Determines whether detailed write logging is enabled.
  171. # write-tracing = false
  172. # Determines whether the pprof endpoint is enabled. This endpoint is used for
  173. # troubleshooting and monitoring.
  174. # pprof-enabled = true
  175. # Determines whether HTTPS is enabled.
  176. https-enabled = true
  177. # The SSL certificate to use when HTTPS is enabled.
  178. https-certificate = "/etc/ssl/certs/{{ grains['id'] }}.cert.pem"
  179. # Use a separate private key location.
  180. https-private-key = "/etc/ssl/private/{{ grains['id'] }}.key.pem"
  181. # The JWT auth shared secret to validate requests using JSON web tokens.
  182. # shared-sercret = ""
  183. # The default chunk size for result sets that should be chunked.
  184. # max-row-limit = 10000
  185. # The maximum number of HTTP connections that may be open at once. New connections that
  186. # would exceed this limit are dropped. Setting this value to 0 disables the limit.
  187. # max-connection-limit = 0
  188. # Enable http service over unix domain socket
  189. # unix-socket-enabled = false
  190. # The path of the unix domain socket.
  191. # bind-socket = "/var/run/influxdb.sock"
  192. ###
  193. ### [subscriber]
  194. ###
  195. ### Controls the subscriptions, which can be used to fork a copy of all data
  196. ### received by the InfluxDB host.
  197. ###
  198. [subscriber]
  199. # Determines whether the subscriber service is enabled.
  200. # enabled = true
  201. # The default timeout for HTTP writes to subscribers.
  202. # http-timeout = "30s"
  203. # Allows insecure HTTPS connections to subscribers. This is useful when testing with self-
  204. # signed certificates.
  205. # insecure-skip-verify = false
  206. # The path to the PEM encoded CA certs file. If the empty string, the default system certs will be used
  207. # ca-certs = ""
  208. # The number of writer goroutines processing the write channel.
  209. # write-concurrency = 40
  210. # The number of in-flight writes buffered in the write channel.
  211. # write-buffer-size = 1000
  212. ###
  213. ### [[graphite]]
  214. ###
  215. ### Controls one or many listeners for Graphite data.
  216. ###
  217. [[graphite]]
  218. # Determines whether the graphite endpoint is enabled.
  219. # enabled = false
  220. # database = "graphite"
  221. # retention-policy = ""
  222. # bind-address = ":2003"
  223. # protocol = "tcp"
  224. # consistency-level = "one"
  225. # These next lines control how batching works. You should have this enabled
  226. # otherwise you could get dropped metrics or poor performance. Batching
  227. # will buffer points in memory if you have many coming in.
  228. # Flush if this many points get buffered
  229. # batch-size = 5000
  230. # number of batches that may be pending in memory
  231. # batch-pending = 10
  232. # Flush at least this often even if we haven't hit buffer limit
  233. # batch-timeout = "1s"
  234. # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
  235. # udp-read-buffer = 0
  236. ### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
  237. # separator = "."
  238. ### Default tags that will be added to all metrics. These can be overridden at the template level
  239. ### or by tags extracted from metric
  240. # tags = ["region=us-east", "zone=1c"]
  241. ### Each template line requires a template pattern. It can have an optional
  242. ### filter before the template and separated by spaces. It can also have optional extra
  243. ### tags following the template. Multiple tags should be separated by commas and no spaces
  244. ### similar to the line protocol format. There can be only one default template.
  245. # templates = [
  246. # "*.app env.service.resource.measurement",
  247. # # Default template
  248. # "server.*",
  249. # ]
  250. ###
  251. ### [collectd]
  252. ###
  253. ### Controls one or many listeners for collectd data.
  254. ###
  255. [[collectd]]
  256. # enabled = false
  257. # bind-address = ":25826"
  258. # database = "collectd"
  259. # retention-policy = ""
  260. #
  261. # The collectd service supports either scanning a directory for multiple types
  262. # db files, or specifying a single db file.
  263. # typesdb = "/usr/local/share/collectd"
  264. #
  265. # security-level = "none"
  266. # auth-file = "/etc/collectd/auth_file"
  267. # These next lines control how batching works. You should have this enabled
  268. # otherwise you could get dropped metrics or poor performance. Batching
  269. # will buffer points in memory if you have many coming in.
  270. # Flush if this many points get buffered
  271. # batch-size = 5000
  272. # Number of batches that may be pending in memory
  273. # batch-pending = 10
  274. # Flush at least this often even if we haven't hit buffer limit
  275. # batch-timeout = "10s"
  276. # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
  277. # read-buffer = 0
  278. ###
  279. ### [opentsdb]
  280. ###
  281. ### Controls one or many listeners for OpenTSDB data.
  282. ###
  283. [[opentsdb]]
  284. # enabled = false
  285. # bind-address = ":4242"
  286. # database = "opentsdb"
  287. # retention-policy = ""
  288. # consistency-level = "one"
  289. # tls-enabled = false
  290. # certificate= "/etc/ssl/influxdb.pem"
  291. # Log an error for every malformed point.
  292. # log-point-errors = true
  293. # These next lines control how batching works. You should have this enabled
  294. # otherwise you could get dropped metrics or poor performance. Only points
  295. # metrics received over the telnet protocol undergo batching.
  296. # Flush if this many points get buffered
  297. # batch-size = 1000
  298. # Number of batches that may be pending in memory
  299. # batch-pending = 5
  300. # Flush at least this often even if we haven't hit buffer limit
  301. # batch-timeout = "1s"
  302. ###
  303. ### [[udp]]
  304. ###
  305. ### Controls the listeners for InfluxDB line protocol data via UDP.
  306. ###
  307. [[udp]]
  308. # enabled = false
  309. # bind-address = ":8089"
  310. # database = "udp"
  311. # retention-policy = ""
  312. # These next lines control how batching works. You should have this enabled
  313. # otherwise you could get dropped metrics or poor performance. Batching
  314. # will buffer points in memory if you have many coming in.
  315. # Flush if this many points get buffered
  316. # batch-size = 5000
  317. # Number of batches that may be pending in memory
  318. # batch-pending = 10
  319. # Will flush at least this often even if we haven't hit buffer limit
  320. # batch-timeout = "1s"
  321. # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
  322. # read-buffer = 0
  323. ###
  324. ### [continuous_queries]
  325. ###
  326. ### Controls how continuous queries are run within InfluxDB.
  327. ###
  328. [continuous_queries]
  329. # Determiens whether the continuous query service is enabled.
  330. # enabled = true
  331. # Controls whether queries are logged when executed by the CQ service.
  332. # log-enabled = true
  333. # interval for how often continuous queries will be checked if they need to run
  334. # run-interval = "1s"