Advertisement
dandoeng

Untitled

Oct 14th, 2020
3,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 14.12 KB | None | 0 0
  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 the configuration
  5. # field and the default value used.  Uncommentting 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 enable reporting.
  12. reporting-enabled = false
  13.  
  14. # we'll try to get the hostname automatically, but if it the os returns something
  15. # that isn't resolvable by other servers in the cluster, use this option to
  16. # manually set the hostname
  17. # hostname = "localhost"
  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.   # Trace logging provides more verbose output around the tsm engine. Turning
  53.   # this on can provide more useful output for debugging tsm engine issues.
  54.   # trace-logging-enabled = false
  55. # Whether queries should be logged before execution. Very useful for troubleshooting, but will
  56.   # log any sensitive data contained within a query.
  57.   # query-log-enabled = true
  58.  
  59.   # Settings for the TSM engine
  60.  
  61.   # CacheMaxMemorySize is the maximum size a shard's cache can
  62.   # reach before it starts rejecting writes.
  63.   # cache-max-memory-size = 1048576000
  64.  
  65.   # CacheSnapshotMemorySize is the size at which the engine will
  66.   # snapshot the cache and write it to a TSM file, freeing up memory
  67.   # cache-snapshot-memory-size = 26214400
  68.  
  69.   # CacheSnapshotWriteColdDuration is the length of time at
  70.   # which the engine will snapshot the cache and write it to
  71.   # a new TSM file if the shard hasn't received writes or deletes
  72.   # cache-snapshot-write-cold-duration = "10m"
  73.  
  74.   # CompactFullWriteColdDuration is the duration at which the engine
  75.   # will compact all TSM files in a shard if it hasn't received a
  76.   # write or delete
  77.   # compact-full-write-cold-duration = "4h"
  78.  
  79.   # The maximum series allowed per database before writes are dropped.  This limit can prevent
  80.   # high cardinality issues at the database level.  This limit can be disabled by setting it to
  81.   # 0.
  82.   # max-series-per-database = 1000000
  83.  
  84.   # The maximum number of tag values per tag that are allowed before writes are dropped.  This limit
  85.   # can prevent high cardinality tag values from being written to a measurement.  This limit can be
  86.   # disabled by setting it to 0.
  87.   # max-values-per-tag = 100000
  88.  
  89. ###
  90. ### [coordinator]
  91. ###
  92. ### Controls the clustering service configuration.
  93. ###
  94.  
  95. # [coordinator]
  96.   # The default time a write request will wait until a "timeout" error is returned to the caller.
  97.   # write-timeout = "10s"
  98.  
  99.   # The maximum number of concurrent queries allowed to be executing at one time.  If a query is
  100.   # executed and exceeds this limit, an error is returned to the caller.  This limit can be disabled
  101.   # by setting it to 0.
  102.   # max-concurrent-queries = 0
  103.  
  104.   # The maximum time a query will is allowed to execute before being killed by the system.  This limit
  105.   # can help prevent run away queries.  Setting the value to 0 disables the limit.
  106.   # query-timeout = "0s"
  107.  
  108.   # The the time threshold when a query will be logged as a slow query.  This limit can be set to help
  109.   # discover slow or resource intensive queries.  Setting the value to 0 disables the slow query logging.
  110.   # log-queries-after = "0s"
  111. # The maximum number of points a SELECT can process.  A value of 0 will make the maximum
  112.   # point count unlimited.
  113.   # max-select-point = 0
  114.  
  115.   # The maximum number of series a SELECT can run.  A value of 0 will make the maximum series
  116.   # count unlimited.
  117.  
  118.   # The maximum number of series a SELECT can run. A value of zero will make the maximum series
  119.   # count unlimited.
  120.   # max-select-series = 0
  121.  
  122.   # The maxium number of group by time bucket a SELECt can create.  A value of zero will max the maximum
  123.   # number of buckets unlimited.
  124.   # max-select-buckets = 0
  125.  
  126. ###
  127. ### [retention]
  128. ###
  129. ### Controls the enforcement of retention policies for evicting old data.
  130. ###
  131.  
  132. # [retention]
  133.   # Determines whether retention policy enforcment enabled.
  134.   # enabled = true
  135.  
  136.   # The interval of time when retention policy enforcement checks run.
  137.   # check-interval = "30m"
  138.  
  139. ###
  140. ### [shard-precreation]
  141. ###
  142. ### Controls the precreation of shards, so they are available before data arrives.
  143. ### Only shards that, after creation, will have both a start- and end-time in the
  144. ### future, will ever be created. Shards are never precreated that would be wholly
  145. ### or partially in the past.
  146.  
  147. # [shard-precreation]
  148.   # Determines whether shard pre-creation service is enabled.
  149.   # enabled = true
  150.  
  151.   # The interval of time when the check to pre-create new shards runs.
  152.   # check-interval = "10m"
  153.  
  154.   # The default period ahead of the endtime of a shard group that its successor
  155.   # group is created.
  156.   # advance-period = "30m"
  157.  
  158. ###
  159. ### Controls the system self-monitoring, statistics and diagnostics.
  160. ###
  161. ### The internal database for monitoring data is created automatically if
  162. ### if it does not already exist. The target retention within this database
  163. ### is called 'monitor' and is also created with a retention period of 7 days
  164. ### and a replication factor of 1, if it does not exist. In all cases the
  165. ### this retention policy is configured as the default for the database.
  166. # [monitor]
  167.   # Whether to record statistics internally.
  168.   # store-enabled = true
  169.  
  170.   # The destination database for recorded statistics
  171.   # store-database = "_internal"
  172.  
  173.   # The interval at which to record statistics
  174.   # store-interval = "10s"
  175.  
  176. ###
  177. ### [admin]
  178. ###
  179. ### Controls the availability of the built-in, web-based admin interface. If HTTPS is
  180. ### enabled for the admin interface, HTTPS must also be enabled on the [http] service.
  181. ###
  182. ### NOTE: This interface is deprecated as of 1.1.0 and will be removed in a future release.
  183.  
  184. # [admin]
  185.   # Determines whether the admin service is enabled.
  186.   # enabled = true
  187.  
  188.   # The default bind address used by the admin service.
  189.   # bind-address = ":8083"
  190.  
  191.   # Whether the admin service should use HTTPS.
  192.   # https-enabled = false
  193.  
  194.   # The SSL certificate used when HTTPS is enabled.
  195.   # https-certificate = "/etc/ssl/influxdb.pem"
  196.  
  197. ###
  198. ### [http]
  199. ###
  200. ### Controls how the HTTP endpoints are configured. These are the primary
  201. ### mechanism for getting data into and out of InfluxDB.
  202. ###
  203.  
  204. [http]
  205.   # Determines whether HTTP endpoint is enabled.
  206.   enabled = true
  207.  
  208.   # The bind address used by the HTTP service.
  209.   bind-address = ":8086"
  210.  
  211.   # Determines whether HTTP authentication is enabled.
  212.   auth-enabled = false
  213.  
  214.   # The default realm sent back when issuing a basic auth challenge.
  215.   # realm = "InfluxDB"
  216.  
  217.   # Determines whether HTTP request logging is enable.d
  218.   # log-enabled = true
  219.  
  220.   # Determines whether detailed write logging is enabled.
  221.   # write-tracing = false
  222.  
  223. # Determines whether the pprof endpoint is enabled.  This endpoint is used for
  224.   # troubleshooting and monitoring.
  225.   # pprof-enabled = true
  226.  
  227.   # Determines whether HTTPS is enabled.
  228.   # https-enabled = false
  229.  
  230.   # The SSL certificate to use when HTTPS is enabled.
  231.   # https-certificate = "/etc/ssl/influxdb.pem"
  232.  
  233.   # Use a separate private key location.
  234.   # https-private-key = ""
  235.  
  236.   # The JWT auth shared secret to validate requests using JSON web tokens.
  237.   # shared-sercret = ""
  238.  
  239.   # The default chunk size for result sets that should be chunked.
  240.   # max-row-limit = 10000
  241.  
  242.   # The maximum number of HTTP connections that may be open at once.  New connections that
  243.   # would exceed this limit are dropped.  Setting this value to 0 disables the limit.
  244.   # max-connection-limit = 0
  245.  
  246.   # Enable http service over unix domain socket
  247.   # unix-socket-enabled = false
  248.  
  249.   # The path of the unix domain socket.
  250.   # bind-socket = "/var/run/influxdb.sock"
  251.  
  252. ###
  253. ### [subscriber]
  254. ###
  255. ### Controls the subscriptions, which can be used to fork a copy of all data
  256. ### received by the InfluxDB host.
  257. ###
  258.  
  259. # [subscriber]
  260.   # Determines whether the subscriber service is enabled.
  261.   # enabled = true
  262.  
  263.   # The default timeout for HTTP writes to subscribers.
  264.   # http-timeout = "30s"
  265.  
  266.   # Allows insecure HTTPS connections to subscribers.  This is useful when testing with self-
  267.   # signed certificates.
  268.   # insecure-skip-verify = false
  269.  
  270.   # The path to the PEM encoded CA certs file. If the empty string, the default system certs will be used
  271.   # ca-certs = ""
  272.  
  273.   # The number of writer goroutines processing the write channel.
  274.   # write-concurrency = 40
  275.  
  276.   # The number of in-flight writes buffered in the write channel.
  277.   # write-buffer-size = 1000
  278. ###
  279. ### [[graphite]]
  280. ###
  281. ### Controls one or many listeners for Graphite data.
  282. ###
  283.  
  284. # [[graphite]]
  285.   # Determines whether the graphite endpoint is enabled.
  286.   # enabled = true
  287.   # database = "graphite"
  288.   # retention-policy = ""
  289.   # bind-address = ":2003"
  290.   # protocol = "tcp"
  291.   # consistency-level = "one"
  292.  
  293.   # These next lines control how batching works. You should have this enabled
  294.   # otherwise you could get dropped metrics or poor performance. Batching
  295.   # will buffer points in memory if you have many coming in.
  296.  
  297.   # Flush if this many points get buffered
  298.   # batch-size = 5000
  299.  
  300.   # number of batches that may be pending in memory
  301.   # batch-pending = 10
  302.  
  303.   # Flush at least this often even if we haven't hit buffer limit
  304.   # batch-timeout = "1s"
  305.  
  306.   # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
  307.   # udp-read-buffer = 0
  308.  
  309.   ### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
  310.   # separator = "."
  311.  
  312.   ### Default tags that will be added to all metrics.  These can be overridden at the template level
  313.   ### or by tags extracted from metric
  314.   # tags = ["region=us-east", "zone=1c"]
  315.  
  316.   ### Each template line requires a template pattern.  It can have an optional
  317.   ### filter before the template and separated by spaces.  It can also have optional extra
  318.   ### tags following the template.  Multiple tags should be separated by commas and no spaces
  319.   ### similar to the line protocol format.  There can be only one default template.
  320.   # templates = [
  321.   #   "*.app env.service.resource.measurement",
  322.   #   # Default template
  323.   #   "server.*",
  324.   # ]
  325.  
  326. ###
  327. ### [collectd]
  328. ###
  329. ### Controls one or many listeners for collectd data.
  330. ###
  331. # [[collectd]]
  332.   # enabled = false
  333.   # bind-address = ":25826"
  334.   # database = "collectd"
  335.   # retention-policy = ""
  336.   # typesdb = "/usr/share/collectd/types.db"
  337.  
  338.   # These next lines control how batching works. You should have this enabled
  339.   # otherwise you could get dropped metrics or poor performance. Batching
  340.   # will buffer points in memory if you have many coming in.
  341.  
  342.   # Flush if this many points get buffered
  343.   # batch-size = 5000
  344.  
  345.   # Number of batches that may be pending in memory
  346.   # batch-pending = 10
  347.  
  348.   # Flush at least this often even if we haven't hit buffer limit
  349.   # batch-timeout = "10s"
  350.  
  351.   # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
  352.   # read-buffer = 0
  353.  
  354. ###
  355. ### [opentsdb]
  356. ###
  357. ### Controls one or many listeners for OpenTSDB data.
  358. ###
  359.  
  360. # [[opentsdb]]
  361.   # enabled = false
  362.   # bind-address = ":4242"
  363.   # database = "opentsdb"
  364.   # retention-policy = ""
  365.   # consistency-level = "one"
  366.   # tls-enabled = false
  367.   # certificate= "/etc/ssl/influxdb.pem"
  368.  
  369.   # Log an error for every malformed point.
  370.   # log-point-errors = true
  371.  
  372.   # These next lines control how batching works. You should have this enabled
  373.   # otherwise you could get dropped metrics or poor performance. Only points
  374.   # metrics received over the telnet protocol undergo batching.
  375.  
  376.   # Flush if this many points get buffered
  377.   # batch-size = 1000
  378.  
  379.   # Number of batches that may be pending in memory
  380.   # batch-pending = 5
  381.  
  382.   # Flush at least this often even if we haven't hit buffer limit
  383.   # batch-timeout = "1s"
  384. ###
  385. ### [[udp]]
  386. ###
  387. ### Controls the listeners for InfluxDB line protocol data via UDP.
  388. ###
  389.  
  390. # [[udp]]
  391.   # enabled = false
  392.   # bind-address = ":8089"
  393.   # database = "udp"
  394.   # retention-policy = ""
  395.  
  396.   # These next lines control how batching works. You should have this enabled
  397.   # otherwise you could get dropped metrics or poor performance. Batching
  398.   # will buffer points in memory if you have many coming in.
  399.  
  400.   # Flush if this many points get buffered
  401.   # batch-size = 5000
  402.  
  403.   # Number of batches that may be pending in memory
  404.   # batch-pending = 10
  405.  
  406.   # Will flush at least this often even if we haven't hit buffer limit
  407.   # batch-timeout = "1s"
  408.  
  409.   # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
  410.   # read-buffer = 0
  411.  
  412. ###
  413. ### [continuous_queries]
  414. ###
  415. ### Controls how continuous queries are run within InfluxDB.
  416. ###
  417.  
  418. # [continuous_queries]
  419.   # Determiens whether the continuous query service is enabled.
  420.   # enabled = true
  421.  
  422.   # Controls whether queries are logged when executed by the CQ service.
  423.   # log-enabled = true
  424.  
  425.   # interval for how often continuous queries will be checked if they need to run
  426.   # run-interval = "1s"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement