main.yml 5.21 KB
Newer Older
1
2
---
# Channel of InfluxDB to install (stable, unstable, nightly)
3
influxdb_install_version: stable
4

5
# If yes, service will be started. Will not be started if set to no.
6
7
influxdb_start_service: yes

8
9
10
11
# If multiple servers are specified, whether to create a clustered configuration
# NOTE:
#   - Do not attempt to cluster previously-unclustered servers. This can lead to data loss.
#   - This will overwrite your /etc/default/influxdb file (though it makes a backup)
12
influxdb_cluster_servers: yes
13
14
# When clustering is enabled, whether or not to overwrite the /etc/hosts file with raw
# IPs (may be useful if no DNS resolution).
15
influxdb_overwrite_hosts_file: yes
16
17
18

# Whether to load sample data (randomly generated integers) into a test database
# NOTE: sample data cannot be loaded if authentication is enabled
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
influxdb_load_sample_data: no
influxdb_sample_database_name: sample_database
influxdb_sample_measurement_name: random_ints

# NOTE: Since Ansible uses Python on the backend, all boolean values are capitalized when being
# rendered (which is not valid TOML). To get around this, make sure you quote any boolean values
# (true -> "true") to ensure correct formatting (for template variables).

# InfluxDB configuration file options
influxdb_disable_reporting: "false"

influxdb_configuration_dir: /etc/influxdb

## Meta Settings
influxdb_meta_dir: /var/lib/influxdb/meta
influxdb_meta_hostname: localhost
influxdb_meta_port: 8088
influxdb_meta_retention_autocreate: "true"
influxdb_meta_election_timeout: 1s
influxdb_meta_heartbeat_timeout: 1s
influxdb_meta_leader_lease_timeout: 500ms
influxdb_meta_commit_timeout: 50ms
influxdb_meta_cluster_tracing: "false"

## Data Settings
influxdb_data_dir: /var/lib/influxdb/data
# NOTE: data_engine is currently commented out of the configuration, defaulting to the version default
# Will uncomment when tsm1 stabilizes and becomes the default
influxdb_data_engine: "tsm1"
influxdb_data_max_wal_size: 104857600
influxdb_data_wal_flush_interval: 10m0s
influxdb_data_wal_partition_flush_delay: 2s
influxdb_data_wal_dir: /var/lib/influxdb/wal
influxdb_data_wal_logging_enabled: "true"
influxdb_data_wal_ready_series_size: 30720
influxdb_data_wal_compaction_threshold: 0.5
influxdb_data_wal_max_series_size: 1048576
influxdb_data_wal_flush_cold_interval: 5s
influxdb_data_wal_partition_size_threshold: 20971520

## Cluster Settings
influxdb_cluster_shard_writer_timeout: 5s
influxdb_cluster_force_remote_mapping: "false"
influxdb_cluster_write_timeout: 5s
influxdb_cluster_shard_mapper_timeout: 5s

## Retention Settings
influxdb_retention_enabled: "true"
influxdb_retention_check_interval: 30m0s

# Shard-Precreation Settings
influxdb_shard_pre_enabled: "true"
influxdb_shard_pre_check_interval: 10m0s
influxdb_shard_pre_advance_period: 30m0s

## Admin Settings
influxdb_admin_enabled: "true"
influxdb_admin_port: 8083
influxdb_admin_https_enabled: "false"
influxdb_admin_https_certificate: /etc/ssl/influxdb.pem

## Monitor Settings (not to be confused with 'Monitoring')
influxdb_monitor_store_enabled: "true"
influxdb_monitor_store_database: _internal
influxdb_monitor_store_interval: 10s

## HTTP Settings
influxdb_http_enabled: "true"
influxdb_http_port: 8086
influxdb_http_auth_enabled: "false"
influxdb_http_log_enabled: "true"
influxdb_http_write_tracing: "true"
influxdb_http_pprof_enabled: "false"
influxdb_http_https_enabled: "false"
influxdb_http_https_certificate: /etc/ssl/influxdb.pem

## Graphite Settings
influxdb_graphite_enabled: "false"
influxdb_graphite_port: 2003
influxdb_graphite_protocol: tcp
influxdb_graphite_consistency_level: one
influxdb_graphite_name_separator: .
influxdb_graphite_name_position: last
influxdb_graphite_batch_size: 1000
influxdb_graphite_batch_pending: 5
influxdb_graphite_batch_timeout: 1s
influxdb_graphite_name_schema: type.host.measurement.device
influxdb_graphite_ignore_unnamed: "true"

## Collectd Settings
influxdb_collectd_enabled: "false"
influxdb_collectd_port: 25826
influxdb_collectd_database: collectd
influxdb_collectd_retention_policy: ""
influxdb_collectd_batch_size: 1000
influxdb_collectd_batch_pending: 5
influxdb_collectd_batch_timeout: 10s
influxdb_collectd_typesdb: /usr/share/collectd/types.db

## OpenTSDB Settings
influxdb_opentsdb_enabled: "false"
influxdb_opentsdb_port: 4242
influxdb_opentsdb_database: opentsdb
influxdb_opentsdb_retention_policy: ""
influxdb_opentsdb_consistency_level: one
influxdb_opentsdb_tls_enabled: "false"
influxdb_opentsdb_certificate: /etc/ssl/influxdb.pem
influxdb_opentsdb_batch_size: 1000
influxdb_opentsdb_batch_pending: 5
influxdb_opentsdb_batch_timeout: 1s

## UDP Settings
influxdb_udp_enabled: "false"
influxdb_udp_bind_address: ""
influxdb_udp_database: ""
influxdb_udp_batch_size: 0
influxdb_udp_batch_timeout: 0

## Monitoring Settings
influxdb_monitoring_enabled: "true"
influxdb_monitoring_write_interval: 24h

## Continuous Queries Settings
influxdb_cq_log_enabled: "true"
influxdb_cq_enabled: "true"
influxdb_cq_recompute_previous_n: 2
influxdb_cq_recompute_no_older_than: 10m
influxdb_cq_compute_runs_per_interval: 10
influxdb_cq_compute_no_more_than: 2m

## Hinted-Handoff Settings
influxdb_hh_enabled: "true"
influxdb_hh_dir: /var/lib/influxdb/hh
influxdb_hh_max_size: 1073741824
influxdb_hh_max_age: 168h
influxdb_hh_retry_rate_limit: 0
influxdb_hh_retry_interval: 1s