### Welcome to the InfluxDB configuration file - generated by Ansible # 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 = {{ influxdb_disable_reporting }} ### ### [meta] ### ### Controls the parameters for the Raft consensus group that stores metadata ### about the InfluxDB cluster. ### [meta] enabled = {{ influxdb_meta_enabled }} dir = "{{ influxdb_meta_dir }}" bind-address = "{{ influxdb_bind_hostname }}:{{ influxdb_meta_port }}" http-bind-address = "{{ influxdb_bind_hostname }}:{{ influxdb_meta_http_port }}" retention-autocreate = {{ influxdb_meta_retention_autocreate }} election-timeout = "{{ influxdb_meta_election_timeout }}" heartbeat-timeout = "{{ influxdb_meta_heartbeat_timeout }}" leader-lease-timeout = "{{ influxdb_meta_leader_lease_timeout }}" commit-timeout = "{{ influxdb_meta_commit_timeout }}" cluster-tracing = {{ influxdb_meta_cluster_tracing|lower }} https-enabled = false https-certificate = "" raft-promotion-enabled = true logging-enabled = true pprof-enabled = false lease-duration = "1m0s" ### ### [data] ### ### Controls where the actual shard data for InfluxDB lives. ### [data] enabled = {{ influxdb_data_enabled }} dir = "{{ influxdb_data_dir }}" engine = "{{ influxdb_data_engine }}" # The following WAL settings are for the b1 storage engine used in 0.9.2. They won't # apply to any new shards created after upgrading to a version > 0.9.3. max-wal-size = {{ influxdb_data_max_wal_size }} wal-flush-interval = "{{ influxdb_data_wal_flush_interval }}" wal-partition-flush-delay = "{{ influxdb_data_wal_partition_flush_delay }}" # These are the WAL settings for the storage engine >= 0.9.3 wal-dir = "{{ influxdb_data_wal_dir }}" wal-logging-enabled = {{ influxdb_data_wal_logging_enabled }} # When a series in the WAL in-memory cache reaches this size in bytes it is marked as ready to # flush to the index # wal-ready-series-size = {{ influxdb_data_wal_ready_series_size }} # Flush and compact a partition once this ratio of series are over the ready size # wal-compaction-threshold = {{ influxdb_data_wal_compaction_threshold }} # Force a flush and compaction if any series in a partition gets above this size in bytes # wal-max-series-size = {{ influxdb_data_wal_max_series_size }} # Force a flush of all series and full compaction if there have been no writes in this # amount of time. This is useful for ensuring that shards that are cold for writes don't # keep a bunch of data cached in memory and in the WAL. # wal-flush-cold-interval = "{{ influxdb_data_wal_flush_cold_interval }}" # Force a partition to flush its largest series if it reaches this approximate size in # bytes. Remember there are 5 partitions so you'll need at least 5x this amount of memory. # The more memory you have, the bigger this can be. # wal-partition-size-threshold = {{ influxdb_data_wal_partition_size_threshold }} query-log-enabled = {{ influxdb_data_query_log_enabled }} cache-max-memory-size = 524288000 cache-snapshot-memory-size = 26214400 cache-snapshot-write-cold-duration = "1h0m0s" compact-full-write-cold-duration = "24h0m0s" max-points-per-block = 0 # data-logging-enabled = true ### ### [cluster] ### ### Controls non-Raft cluster behavior, which generally includes how data is ### shared across shards. ### [cluster] shard-writer-timeout = "{{ influxdb_cluster_shard_writer_timeout }}" force-remote-mapping = {{ influxdb_cluster_force_remote_mapping }} write-timeout = "{{ influxdb_cluster_write_timeout }}" shard-mapper-timeout = "{{ influxdb_cluster_shard_mapper_timeout }}" ### ### [retention] ### ### Controls the enforcement of retention policies for evicting old data. ### [retention] enabled = {{ influxdb_retention_enabled }} check-interval = "{{ influxdb_retention_check_interval }}" [shard-precreation] enabled = {{ influxdb_shard_pre_enabled }} check-interval = "{{ influxdb_shard_pre_check_interval }}" advance-period = "{{ influxdb_shard_pre_advance_period }}" ### ### [admin] ### ### Controls the availability of the built-in, web-based admin interface. ### [admin] enabled = {{ influxdb_admin_enabled }} bind-address = "{{ influxdb_bind_hostname }}:{{ influxdb_admin_port }}" https-enabled = {{ influxdb_admin_https_enabled }} https-certificate = "{{ influxdb_admin_https_certificate }}" [monitor] store-enabled = {{ influxdb_monitor_store_enabled }} store-database = "{{ influxdb_monitor_store_database }}" store-interval = "{{ influxdb_monitor_store_interval }}" [subscriber] enabled = true ### ### [http] ### ### Controls how the HTTP endpoints are configured. These are the primary ### mechanism for getting data into and out of InfluxDB. ### [http] enabled = {{ influxdb_http_enabled }} bind-address = "{{ influxdb_bind_hostname }}:{{ influxdb_http_port }}" auth-enabled = {{ influxdb_http_auth_enabled }} log-enabled = {{ influxdb_http_log_enabled }} write-tracing = {{ influxdb_http_write_tracing }} pprof-enabled = {{ influxdb_http_pprof_enabled }} https-enabled = {{ influxdb_http_https_enabled }} https-certificate = "{{ influxdb_http_https_certificate }}" https-private-key= "{{ influxdb_http_https_certificate_key }}" ### ### [[graphite]] ### ### Controls one or many listeners for Graphite data. ### [[graphite]] enabled = {{ influxdb_graphite_enabled }} # bind-address = ":{{ influxdb_graphite_port }}" # protocol = "{{ influxdb_graphite_protocol }}" # consistency-level = "{{ influxdb_graphite_consistency_level }}" # name-separator = "{{ influxdb_graphite_name_separator }}" # name-position = "{{ influxdb_graphite_name_position }}" # These next lines control how batching works. You should have this enabled # otherwise you could get dropped metrics or poor performance. Batching # will buffer points in memory if you have many coming in. # batch-size = {{ influxdb_graphite_batch_size }} # will flush if this many points get buffered # batch-pending = {{ influxdb_graphite_batch_pending }} # number of batches that may be pending in memory # batch-timeout = "{{ influxdb_graphite_batch_timeout }}" # will flush at least this often even if we haven't hit buffer limit ## "name-schema" configures tag names for parsing the metric name from graphite protocol; ## separated by `name-separator`. ## The "measurement" tag is special and the corresponding field will become ## the name of the metric. ## e.g. "type.host.measurement.device" will parse "server.localhost.cpu.cpu0" as ## { ## measurement: "cpu", ## tags: { ## "type": "server", ## "host": "localhost, ## "device": "cpu0" ## } ## } # name-schema = "{{ influxdb_graphite_name_schema }}" ## If set to true, when the input metric name has more fields than `name-schema` specified, ## the extra fields will be ignored. ## Otherwise an error will be logged and the metric rejected. # ignore-unnamed = {{ influxdb_graphite_ignore_unnamed }} ### {% if influxdb_runtime_version | version_compare('0.11', '>') %} ### [[collectd]] {% else %} ### [collectd] {% endif %} ### ### Controls the listener for collectd data. ### {% if influxdb_runtime_version | version_compare('0.11', '>') %} [[collectd]] {% else %} [collectd] {% endif %} enabled = {{ influxdb_collectd_enabled }} bind-address = ":{{ influxdb_collectd_port }}" database = "{{ influxdb_collectd_database }}" retention-policy = "{{ influxdb_collectd_retention_policy }}" batch-size = {{ influxdb_collectd_batch_size }} batch-pending = {{ influxdb_collectd_batch_pending }} batch-timeout = "{{ influxdb_collectd_batch_timeout }}" typesdb = "{{ influxdb_collectd_typesdb }}" ### {% if influxdb_runtime_version | version_compare('0.11', '>') %} ### [[opentsdb]] {% else %} ### [opentsdb] {% endif %} ### ### Controls the listener for OpenTSDB data. ### {% if influxdb_runtime_version | version_compare('0.11', '>') %} [[opentsdb]] {% else %} [opentsdb] {% endif %} enabled = {{ influxdb_opentsdb_enabled }} # bind-address = ":{{ influxdb_opentsdb_port }}" # database = "{{ influxdb_opentsdb_database }}" # retention-policy = "{{ influxdb_opentsdb_retention_policy }}" # consistency-level = "{{ influxdb_opentsdb_consistency_level }}" # tls-enabled = {{ influxdb_opentsdb_tls_enabled }} # certificate = "{{ influxdb_opentsdb_certificate }}" # batch-size = {{ influxdb_opentsdb_batch_size }} # batch-pending = {{ influxdb_opentsdb_batch_pending }} # batch-timeout = "{{ influxdb_opentsdb_batch_timeout }}" ### ### [udp] ### ### Controls the listener for InfluxDB line protocol data via UDP. ### # TODO: Including the udp table prevents service from starting (even if disabled) # [udp] # enabled = {{ influxdb_udp_enabled }} # bind-address = "{{ influxdb_udp_bind_address }}" # database = "{{ influxdb_udp_database }}" # batch-size = {{ influxdb_udp_batch_size }} # batch-timeout = "{{ influxdb_udp_batch_timeout }}" ### ### [continuous_queries] ### ### Controls how continuous queries are run within InfluxDB. ### [continuous_queries] log-enabled = {{ influxdb_cq_log_enabled }} enabled = {{ influxdb_cq_enabled }} ### ### [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 = {{ influxdb_hh_enabled }} dir = "{{ influxdb_hh_dir }}" max-size = {{ influxdb_hh_max_size }} max-age = "{{ influxdb_hh_max_age }}" retry-rate-limit = {{ influxdb_hh_retry_rate_limit }} retry-interval = "{{ influxdb_hh_retry_interval }}" purge-interval = "{{ influxdb_hh_purge_interval }}"