2015-06-09 17:27:27 +00:00
|
|
|
### Welcome to the InfluxDB configuration file.
|
|
|
|
|
2015-06-11 05:38:49 +00:00
|
|
|
# Once every 24 hours InfluxDB will report anonymous data to m.influxdb.com
|
|
|
|
# The data includes raft id (random 8 bytes), os, arch, version, and metadata.
|
|
|
|
# We don't track ip addresses of servers reporting. This is only used
|
|
|
|
# to track the number of instances running and the versions, which
|
|
|
|
# is very helpful for us.
|
|
|
|
# Change this option to true to disable reporting.
|
|
|
|
reporting-disabled = false
|
2015-10-15 21:04:57 +00:00
|
|
|
|
2015-12-30 13:15:00 +00:00
|
|
|
# we'll try to get the hostname automatically, but if it the os returns something
|
|
|
|
# that isn't resolvable by other servers in the cluster, use this option to
|
|
|
|
# manually set the hostname
|
|
|
|
# hostname = "localhost"
|
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [meta]
|
|
|
|
###
|
|
|
|
### Controls the parameters for the Raft consensus group that stores metadata
|
|
|
|
### about the InfluxDB cluster.
|
|
|
|
###
|
2013-12-11 18:10:37 +00:00
|
|
|
|
2015-06-08 21:44:52 +00:00
|
|
|
[meta]
|
2015-12-30 13:15:00 +00:00
|
|
|
# Controls if this node should run the metaservice and participate in the Raft group
|
|
|
|
enabled = true
|
|
|
|
|
|
|
|
# Where the metadata/raft database is stored
|
2015-11-06 16:52:04 +00:00
|
|
|
dir = "/var/lib/influxdb/meta"
|
2015-12-30 13:15:00 +00:00
|
|
|
|
2016-02-09 15:34:31 +00:00
|
|
|
# The default address to bind to
|
2015-06-08 21:44:52 +00:00
|
|
|
bind-address = ":8088"
|
2016-02-09 15:34:31 +00:00
|
|
|
|
|
|
|
# The default address to bind the API to
|
|
|
|
http-bind-address = ":8091"
|
|
|
|
https-enabled = false
|
|
|
|
https-certificate = ""
|
|
|
|
|
2015-06-08 21:44:52 +00:00
|
|
|
retention-autocreate = true
|
2016-02-09 15:34:31 +00:00
|
|
|
# The default election timeout for the store
|
2015-06-08 21:44:52 +00:00
|
|
|
election-timeout = "1s"
|
2016-02-09 15:34:31 +00:00
|
|
|
# The default heartbeat timeout for the store
|
2015-06-08 21:44:52 +00:00
|
|
|
heartbeat-timeout = "1s"
|
2016-02-09 15:34:31 +00:00
|
|
|
# The default leader lease for the store
|
2015-06-08 21:44:52 +00:00
|
|
|
leader-lease-timeout = "500ms"
|
2016-02-09 15:34:31 +00:00
|
|
|
# The default commit timeout for the store
|
2015-06-08 21:44:52 +00:00
|
|
|
commit-timeout = "50ms"
|
2016-02-09 15:34:31 +00:00
|
|
|
# If trace log messages are printed for the meta service
|
2015-11-11 16:58:33 +00:00
|
|
|
cluster-tracing = false
|
2016-02-09 15:34:31 +00:00
|
|
|
# The default for auto promoting a node to a raft node when needed
|
|
|
|
raft-promotion-enabled = true
|
|
|
|
# If log messages are printed for the meta service
|
|
|
|
logging-enabled = true
|
|
|
|
pprof-enabled = false
|
|
|
|
# The default duration for leases.
|
|
|
|
lease-duration = "1m0s"
|
2015-11-11 16:58:33 +00:00
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [data]
|
|
|
|
###
|
2015-07-02 14:21:30 +00:00
|
|
|
### Controls where the actual shard data for InfluxDB lives and how it is
|
|
|
|
### flushed from the WAL. "dir" may need to be changed to a suitable place
|
|
|
|
### for your system, but the WAL settings are an advanced configuration. The
|
|
|
|
### defaults should work for most systems.
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
|
2015-06-08 21:44:52 +00:00
|
|
|
[data]
|
2015-12-30 13:15:00 +00:00
|
|
|
# Controls if this node holds time series data shards in the cluster
|
|
|
|
enabled = true
|
|
|
|
|
2015-11-06 16:52:04 +00:00
|
|
|
dir = "/var/lib/influxdb/data"
|
2015-08-18 20:59:54 +00:00
|
|
|
|
|
|
|
# These are the WAL settings for the storage engine >= 0.9.3
|
2015-11-06 16:52:04 +00:00
|
|
|
wal-dir = "/var/lib/influxdb/wal"
|
2015-11-17 16:07:55 +00:00
|
|
|
wal-logging-enabled = true
|
2015-12-14 23:58:27 +00:00
|
|
|
data-logging-enabled = true
|
2015-08-18 20:59:54 +00:00
|
|
|
|
2015-09-17 02:26:23 +00:00
|
|
|
# Whether queries should be logged before execution. Very useful for troubleshooting, but will
|
|
|
|
# log any sensitive data contained within a query.
|
2015-09-17 02:27:49 +00:00
|
|
|
# query-log-enabled = true
|
2015-09-17 02:26:23 +00:00
|
|
|
|
2015-12-06 23:50:39 +00:00
|
|
|
# Settings for the TSM engine
|
|
|
|
|
|
|
|
# CacheMaxMemorySize is the maximum size a shard's cache can
|
|
|
|
# reach before it starts rejecting writes.
|
|
|
|
# cache-max-memory-size = 524288000
|
|
|
|
|
|
|
|
# CacheSnapshotMemorySize is the size at which the engine will
|
|
|
|
# snapshot the cache and write it to a TSM file, freeing up memory
|
|
|
|
# cache-snapshot-memory-size = 26214400
|
|
|
|
|
2015-12-13 21:58:05 +00:00
|
|
|
# CacheSnapshotWriteColdDuration is the length of time at
|
2015-12-06 23:50:39 +00:00
|
|
|
# which the engine will snapshot the cache and write it to
|
2015-12-07 19:47:17 +00:00
|
|
|
# a new TSM file if the shard hasn't received writes or deletes
|
2015-12-06 23:50:39 +00:00
|
|
|
# cache-snapshot-write-cold-duration = "1h"
|
|
|
|
|
|
|
|
# MinCompactionFileCount is the minimum number of TSM files
|
|
|
|
# that need to exist before a compaction cycle will run
|
2015-12-07 13:26:30 +00:00
|
|
|
# compact-min-file-count = 3
|
2015-12-06 23:50:39 +00:00
|
|
|
|
|
|
|
# CompactFullWriteColdDuration is the duration at which the engine
|
|
|
|
# will compact all TSM files in a shard if it hasn't received a
|
|
|
|
# write or delete
|
|
|
|
# compact-full-write-cold-duration = "24h"
|
|
|
|
|
|
|
|
# MaxPointsPerBlock is the maximum number of points in an encoded
|
|
|
|
# block in a TSM file. Larger numbers may yield better compression
|
|
|
|
# but could incur a performance peanalty when querying
|
|
|
|
# max-points-per-block = 1000
|
|
|
|
|
2015-10-20 22:46:53 +00:00
|
|
|
###
|
|
|
|
### [hinted-handoff]
|
|
|
|
###
|
|
|
|
### Controls the hinted handoff feature, which allows nodes to temporarily
|
|
|
|
### store queued data when one node of a cluster is down for a short period
|
|
|
|
### of time.
|
|
|
|
###
|
|
|
|
|
|
|
|
[hinted-handoff]
|
|
|
|
enabled = true
|
2015-11-06 16:52:04 +00:00
|
|
|
dir = "/var/lib/influxdb/hh"
|
2015-10-20 22:46:53 +00:00
|
|
|
max-size = 1073741824
|
|
|
|
max-age = "168h"
|
|
|
|
retry-rate-limit = 0
|
|
|
|
|
|
|
|
# Hinted handoff will start retrying writes to down nodes at a rate of once per second.
|
|
|
|
# If any error occurs, it will backoff in an exponential manner, until the interval
|
|
|
|
# reaches retry-max-interval. Once writes to all nodes are successfully completed the
|
|
|
|
# interval will reset to retry-interval.
|
|
|
|
retry-interval = "1s"
|
|
|
|
retry-max-interval = "1m"
|
|
|
|
|
|
|
|
# Interval between running checks for data that should be purged. Data is purged from
|
|
|
|
# hinted-handoff queues for two reasons. 1) The data is older than the max age, or
|
|
|
|
# 2) the target node has been dropped from the cluster. Data is never dropped until
|
|
|
|
# it has reached max-age however, for a dropped node or not.
|
|
|
|
purge-interval = "1h"
|
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [cluster]
|
|
|
|
###
|
|
|
|
### Controls non-Raft cluster behavior, which generally includes how data is
|
|
|
|
### shared across shards.
|
|
|
|
###
|
2014-05-29 22:22:21 +00:00
|
|
|
|
2015-06-08 21:44:52 +00:00
|
|
|
[cluster]
|
2016-01-11 19:02:36 +00:00
|
|
|
shard-writer-timeout = "5s" # The time within which a remote shard must respond to a write request.
|
2015-11-20 19:55:01 +00:00
|
|
|
write-timeout = "10s" # The time within which a write request must complete on the cluster.
|
2015-04-09 18:37:13 +00:00
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [retention]
|
|
|
|
###
|
|
|
|
### Controls the enforcement of retention policies for evicting old data.
|
|
|
|
###
|
|
|
|
|
2015-06-08 21:44:52 +00:00
|
|
|
[retention]
|
|
|
|
enabled = true
|
2015-09-05 06:30:13 +00:00
|
|
|
check-interval = "30m"
|
2015-06-09 17:27:27 +00:00
|
|
|
|
2015-10-28 15:19:37 +00:00
|
|
|
###
|
|
|
|
### [shard-precreation]
|
|
|
|
###
|
2015-11-20 19:22:43 +00:00
|
|
|
### Controls the precreation of shards, so they are available before data arrives.
|
|
|
|
### Only shards that, after creation, will have both a start- and end-time in the
|
|
|
|
### future, will ever be created. Shards are never precreated that would be wholly
|
|
|
|
### or partially in the past.
|
2015-10-28 15:19:37 +00:00
|
|
|
|
|
|
|
[shard-precreation]
|
|
|
|
enabled = true
|
|
|
|
check-interval = "10m"
|
|
|
|
advance-period = "30m"
|
|
|
|
|
2015-09-01 03:28:24 +00:00
|
|
|
###
|
2015-09-02 23:14:03 +00:00
|
|
|
### Controls the system self-monitoring, statistics and diagnostics.
|
2015-09-01 03:28:24 +00:00
|
|
|
###
|
2015-09-18 22:31:33 +00:00
|
|
|
### The internal database for monitoring data is created automatically if
|
2015-09-18 22:30:02 +00:00
|
|
|
### if it does not already exist. The target retention within this database
|
|
|
|
### is called 'monitor' and is also created with a retention period of 7 days
|
|
|
|
### and a replication factor of 1, if it does not exist. In all cases the
|
|
|
|
### this retention policy is configured as the default for the database.
|
2015-09-01 03:28:24 +00:00
|
|
|
|
|
|
|
[monitor]
|
2015-09-02 23:14:03 +00:00
|
|
|
store-enabled = true # Whether to record statistics internally.
|
2015-09-01 03:28:24 +00:00
|
|
|
store-database = "_internal" # The destination database for recorded statistics
|
2015-09-09 03:37:15 +00:00
|
|
|
store-interval = "10s" # The interval at which to record statistics
|
2015-09-01 03:28:24 +00:00
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [admin]
|
|
|
|
###
|
2015-07-22 23:49:12 +00:00
|
|
|
### Controls the availability of the built-in, web-based admin interface. If HTTPS is
|
|
|
|
### enabled for the admin interface, HTTPS must also be enabled on the [http] service.
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
2015-01-02 21:41:02 +00:00
|
|
|
|
2013-12-11 18:10:37 +00:00
|
|
|
[admin]
|
2015-06-08 21:44:52 +00:00
|
|
|
enabled = true
|
|
|
|
bind-address = ":8083"
|
2015-07-22 23:49:12 +00:00
|
|
|
https-enabled = false
|
|
|
|
https-certificate = "/etc/ssl/influxdb.pem"
|
2013-12-11 18:10:37 +00:00
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [http]
|
|
|
|
###
|
|
|
|
### Controls how the HTTP endpoints are configured. These are the primary
|
|
|
|
### mechanism for getting data into and out of InfluxDB.
|
|
|
|
###
|
|
|
|
|
2015-06-08 21:44:52 +00:00
|
|
|
[http]
|
|
|
|
enabled = true
|
|
|
|
bind-address = ":8086"
|
|
|
|
auth-enabled = false
|
|
|
|
log-enabled = true
|
|
|
|
write-tracing = false
|
|
|
|
pprof-enabled = false
|
2015-07-17 23:54:06 +00:00
|
|
|
https-enabled = false
|
|
|
|
https-certificate = "/etc/ssl/influxdb.pem"
|
2016-03-24 16:36:47 +00:00
|
|
|
max-row-limit = 10000
|
2014-03-24 15:33:28 +00:00
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [[graphite]]
|
|
|
|
###
|
|
|
|
### Controls one or many listeners for Graphite data.
|
|
|
|
###
|
|
|
|
|
2015-06-09 10:38:07 +00:00
|
|
|
[[graphite]]
|
|
|
|
enabled = false
|
2015-09-25 01:50:24 +00:00
|
|
|
# database = "graphite"
|
2015-06-10 23:40:08 +00:00
|
|
|
# bind-address = ":2003"
|
|
|
|
# protocol = "tcp"
|
|
|
|
# consistency-level = "one"
|
2015-06-12 03:48:24 +00:00
|
|
|
|
2015-07-22 00:48:52 +00:00
|
|
|
# These next lines control how batching works. You should have this enabled
|
2015-09-07 02:16:00 +00:00
|
|
|
# otherwise you could get dropped metrics or poor performance. Batching
|
2015-07-22 00:48:52 +00:00
|
|
|
# will buffer points in memory if you have many coming in.
|
|
|
|
|
2016-02-05 21:44:11 +00:00
|
|
|
# batch-size = 5000 # will flush if this many points get buffered
|
|
|
|
# batch-pending = 10 # number of batches that may be pending in memory
|
2015-07-22 00:48:52 +00:00
|
|
|
# batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
|
2015-11-05 22:43:36 +00:00
|
|
|
# udp-read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
|
2015-07-22 00:48:52 +00:00
|
|
|
|
2016-02-05 22:08:24 +00:00
|
|
|
### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
|
2016-02-05 21:44:11 +00:00
|
|
|
# separator = "."
|
|
|
|
|
|
|
|
### Default tags that will be added to all metrics. These can be overridden at the template level
|
|
|
|
### or by tags extracted from metric
|
|
|
|
# tags = ["region=us-east", "zone=1c"]
|
|
|
|
|
|
|
|
### Each template line requires a template pattern. It can have an optional
|
|
|
|
### filter before the template and separated by spaces. It can also have optional extra
|
|
|
|
### tags following the template. Multiple tags should be separated by commas and no spaces
|
2016-02-05 22:08:24 +00:00
|
|
|
### similar to the line protocol format. There can be only one default template.
|
2016-02-05 21:44:11 +00:00
|
|
|
# templates = [
|
|
|
|
# "*.app env.service.resource.measurement",
|
|
|
|
# # Default template
|
|
|
|
# "server.*",
|
2016-02-05 22:08:24 +00:00
|
|
|
# ]
|
2015-06-09 10:38:07 +00:00
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [collectd]
|
|
|
|
###
|
|
|
|
### Controls the listener for collectd data.
|
|
|
|
###
|
|
|
|
|
2015-01-30 00:36:27 +00:00
|
|
|
[collectd]
|
2015-06-08 21:44:52 +00:00
|
|
|
enabled = false
|
2015-06-09 10:38:07 +00:00
|
|
|
# bind-address = ""
|
|
|
|
# database = ""
|
|
|
|
# typesdb = ""
|
2014-09-30 21:20:09 +00:00
|
|
|
|
2015-07-22 00:48:52 +00:00
|
|
|
# These next lines control how batching works. You should have this enabled
|
2015-09-07 02:16:00 +00:00
|
|
|
# otherwise you could get dropped metrics or poor performance. Batching
|
2015-07-22 00:48:52 +00:00
|
|
|
# will buffer points in memory if you have many coming in.
|
|
|
|
|
|
|
|
# batch-size = 1000 # will flush if this many points get buffered
|
2015-09-08 22:18:14 +00:00
|
|
|
# batch-pending = 5 # number of batches that may be pending in memory
|
2015-07-22 00:48:52 +00:00
|
|
|
# batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
|
2015-11-05 22:43:36 +00:00
|
|
|
# read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
|
2015-07-22 00:48:52 +00:00
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [opentsdb]
|
|
|
|
###
|
|
|
|
### Controls the listener for OpenTSDB data.
|
|
|
|
###
|
|
|
|
|
2015-03-29 16:26:03 +00:00
|
|
|
[opentsdb]
|
2015-06-08 21:44:52 +00:00
|
|
|
enabled = false
|
2015-09-25 21:04:37 +00:00
|
|
|
# bind-address = ":4242"
|
|
|
|
# database = "opentsdb"
|
2015-06-09 10:38:07 +00:00
|
|
|
# retention-policy = ""
|
2015-09-25 21:04:37 +00:00
|
|
|
# consistency-level = "one"
|
|
|
|
# tls-enabled = false
|
|
|
|
# certificate= ""
|
2015-11-13 22:53:09 +00:00
|
|
|
# log-point-errors = true # Log an error for every malformed point.
|
2015-03-29 16:26:03 +00:00
|
|
|
|
2015-09-08 23:19:50 +00:00
|
|
|
# These next lines control how batching works. You should have this enabled
|
|
|
|
# otherwise you could get dropped metrics or poor performance. Only points
|
|
|
|
# metrics received over the telnet protocol undergo batching.
|
|
|
|
|
|
|
|
# batch-size = 1000 # will flush if this many points get buffered
|
2015-09-09 02:35:19 +00:00
|
|
|
# batch-pending = 5 # number of batches that may be pending in memory
|
2015-09-08 23:19:50 +00:00
|
|
|
# batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
|
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
2015-08-10 23:21:27 +00:00
|
|
|
### [[udp]]
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
2015-08-10 23:21:27 +00:00
|
|
|
### Controls the listeners for InfluxDB line protocol data via UDP.
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
|
2015-08-10 23:21:27 +00:00
|
|
|
[[udp]]
|
2015-06-08 21:44:52 +00:00
|
|
|
enabled = false
|
2015-06-09 10:38:07 +00:00
|
|
|
# bind-address = ""
|
2015-10-09 02:12:20 +00:00
|
|
|
# database = "udp"
|
2015-09-28 22:16:38 +00:00
|
|
|
# retention-policy = ""
|
2015-07-22 00:48:52 +00:00
|
|
|
|
|
|
|
# These next lines control how batching works. You should have this enabled
|
2015-09-07 02:16:00 +00:00
|
|
|
# otherwise you could get dropped metrics or poor performance. Batching
|
2015-07-22 00:48:52 +00:00
|
|
|
# will buffer points in memory if you have many coming in.
|
|
|
|
|
|
|
|
# batch-size = 1000 # will flush if this many points get buffered
|
2015-09-08 22:18:14 +00:00
|
|
|
# batch-pending = 5 # number of batches that may be pending in memory
|
2015-07-22 00:48:52 +00:00
|
|
|
# batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
|
2015-11-05 22:43:36 +00:00
|
|
|
# read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
|
2016-01-11 19:02:36 +00:00
|
|
|
|
2015-12-22 17:57:55 +00:00
|
|
|
# set the expected UDP payload size; lower values tend to yield better performance, default is max UDP size 65536
|
|
|
|
# udp-payload-size = 65536
|
2015-04-23 22:03:28 +00:00
|
|
|
|
2015-06-09 17:27:27 +00:00
|
|
|
###
|
|
|
|
### [continuous_queries]
|
|
|
|
###
|
|
|
|
### Controls how continuous queries are run within InfluxDB.
|
|
|
|
###
|
|
|
|
|
2015-06-08 21:44:52 +00:00
|
|
|
[continuous_queries]
|
2015-07-22 01:02:04 +00:00
|
|
|
log-enabled = true
|
2015-06-08 21:44:52 +00:00
|
|
|
enabled = true
|
2015-12-18 20:32:05 +00:00
|
|
|
# run-interval = "1s" # interval for how often continuous queries will be checked if they need to run
|