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

# 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)
9
influxdb_cluster_servers: no
10
11
# When clustering is enabled, whether or not to overwrite the /etc/hosts file with raw
# IPs (may be useful if no DNS resolution).
12
influxdb_overwrite_hosts_file: no
13
14
15

# Whether to load sample data (randomly generated integers) into a test database
# NOTE: sample data cannot be loaded if authentication is enabled
16
17
18
19
influxdb_load_sample_data: no
influxdb_sample_database_name: sample_database
influxdb_sample_measurement_name: random_ints

aisch's avatar
aisch committed
20
21
22
23
influxdb_bind_hostname: "{{ ansible_hostname }}"

influxdb_install_python_client: no

24
25
26
27
28
29
30
31
32
33
# 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
34
influxdb_meta_enabled: "true"
35
influxdb_meta_dir: /var/lib/influxdb/meta
36
influxdb_meta_hostname: 
37
influxdb_meta_port: 8088
38
influxdb_meta_http_port: 8091
39
40
41
42
43
44
45
46
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
47
influxdb_data_enabled: "true"
48
influxdb_data_dir: /var/lib/influxdb/data
49
influxdb_data_engine: "tsm1"
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
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"
92
influxdb_http_write_tracing: "false"
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
156
157
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