"Fossies" - the Fresh Open Source Software Archive

Member "monasca-api-3.1.0/devstack/files/influxdb/influxdb.conf" (27 Sep 2019, 20910 Bytes) of package /linux/misc/openstack/monasca-api-3.1.0.tar.gz:


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