-
Notifications
You must be signed in to change notification settings - Fork 40
/
main.yml
213 lines (163 loc) · 7.23 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
---
# defaults file for ansible-netdata
# Adds installer flag to enable auto updates
# https://docs.netdata.cloud/packaging/installer/update/#auto-update
netdata_auto_updates:
enabled: true
day: "*"
hour: 6
minute: 0
user: root
weekday: "*"
# WARNING: when you set this variable to 'true' and are migrating from an old version
# of Netdata (< v1.11.0) then the cron will be removed from your system.
# You will then need to launch the netdata installer manually to make sure
# netdata installs the cron by itself with: `./netdata-installer.sh --auto-update`
clean_legacy_cron: true
# The IP address and port to listen to. This is a space separated list of
# IPv4 or IPv6 address and ports. The default will bind to all IP addresses
netdata_bind_to:
- "*"
# Defines if Netdata should be configured
netdata_config: true
# Defines location of Netdata configuration file
netdata_config_file: /etc/netdata/netdata.conf
# Defines the Git repo to pull down for installs
netdata_git_repo: https://github.com/netdata/netdata.git
# Defines the version tag to clone for installation
netdata_git_version_tag: v1.25.0
# Defines whether Netdata health is enabled
netdata_health_enabled: true
# Defines if Netdata health alarms should be configured
netdata_alarm_configure: false
# Defines location of Netdata health_alarm_notify.conf
netdata_alarm_config_file: /etc/netdata/health_alarm_notify.conf
# Define configuration for health_alarm_notify.conf.
# Example:
# netdata_health_alarm_notify_configs:
# https_proxy: http://localhost:3128
# SLACK_WEBHOOK_URL: https://hooks.slack.com/...
netdata_alarm_notify_configs: {}
# Define custom_sender function in health_alarm_notify.conf
# only the body of the function should be in there
# Exemple: netdata_custom_sender_function: "curl -X POST url"
# netdata_custom_sender_function: ""
# Defines path to alarm-notify.sh
netdata_health_alarm_script: /usr/libexec/netdata/plugins.d/alarm-notify.sh
# Defines how often a critical alarm is repeated
netdata_default_repeat_critical: never
# Defines how often a warning alarm is repeated
netdata_default_repeat_warning: never
# The host name displayed in netdata
netdata_hostname: "{{ ansible_hostname }}"
# The number of entries the netdata daemon will by default keep in memory
# for each chart dimension.
netdata_history: 3996
# Defines Netdata installer script
netdata_installer: ./netdata-installer.sh
# Defines Netdata requirements installer script
netdata_requirements_installer: packaging/installer/install-required-packages.sh
# Defines Netdata requirements installer options (if we want morre complete requirements)
netdata_requirements_installer_options:
- "--non-interactive"
- netdata
# When set to save netdata will save its round robin database on exit and
# load it on startup. When set to map the cache files will be updated in
# real time (check man mmap - do not set this on systems with heavy load or
# slow disks - the disks will continuously sync the in-memory database of
# netdata). When set to ram the round robin database will be temporary and it
# will be lost when netdata exits.
netdata_memory_mode: save
# This variables are only used if netdata_memory_mode is set to dbengine
netdata_dbengine_page_cache_size: 32
netdata_dbengine_multihost_disk_space: 256
# Defines the mode the web-server will run in
# static-threaded is a web server with a fix (configured number of threads)
# single-threaded is a simple web server running with a single thread
# multi-threaded is a web server that spawns a thread for each client connection
# none will disable the web-server and the API
netdata_web_mode: multi-threaded
# The default port to listen for web clients.
netdata_default_port: 19999
netdata_epel_setup: false
netdata_epel_repo_url: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
netdata_epel_repo_gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
netdata_epel_repofile_path: "/etc/yum.repos.d/epel.repo"
netdata_centos6_install_okay: false
# Defines if Netdata host should be enabled as a registry
# https://github.com/firehol/netdata/wiki/mynetdata-menu-item
netdata_registry_enabled: false
# https://registry.my-netdata.io
# https://github.com/firehol/netdata/wiki/mynetdata-menu-item
netdata_registry_to_announce: https://registry.my-netdata.io
# Defines directory to store install source from Git repo
netdata_source_dir: /usr/local/src/netdata
# Defines if Netdata streaming should be configured
# https://github.com/firehol/netdata/wiki/Monitoring-ephemeral-nodes
netdata_stream_enabled: false
# Defines location of Netdata stream configuration file
netdata_stream_config_file: /etc/netdata/stream.conf
# Defines Netdata API Keys (must be generated with command uuidgen)
netdata_stream_api_key: 11111111-2222-3333-4444-555555555555
netdata_stream_send_api_key: "{{ netdata_stream_api_key }}"
netdata_stream_receive_api_key: "{{ netdata_stream_api_key }}"
# Defines Netdata master node and port (e.g. 127.0.0.1:19999)
netdata_stream_master_node: ""
# Defines whether the netdata node is acting as a proxy
netdata_stream_proxy: false
# Defines client ssl configuration
# netdata_client_ssl_options:
# ssl skip certificate verification: "yes"
# CAfile: /etc/ssl/certs/ca-certificates.crt
netdata_client_ssl_options: {}
# Defines if Netdata should be uninstalled
# Caution: This does not prompt for uninstall as the original script
# was intended.
# https://github.com/firehol/netdata/wiki/Installation#uninstalling-netdata
netdata_uninstall: false
# Defines the Netdata uninstaller script
netdata_uninstaller: ./netdata-uninstaller.sh
# Defines if Netdata should be updated
# Not the same as auto_updates
netdata_update: false
# Force the update. Sometimes the update script skips installing new plugins.
netdata_update_force: false
# The frequency in seconds, for data collection
netdata_update_every: 1
# Defines Netdata update script
netdata_updater: ./netdata-updater.sh
# Defines Netdata user info
netdata_user_info:
group: netdata
user: netdata
# Defines if Netdata should store data in a backend
netdata_configure_archive: false
# Defines Netdata backend for long term datastorage
# https://github.com/firehol/netdata/wiki/netdata-backends
# Defines if the Netdata backend is enabled
netdata_archive_enabled: "yes"
# Defines the backend type as one of
# graphite | opentsdb | json
netdata_archive_type: "opentsdb"
# Defines the host(s) and ports netdata should send data to
netdata_archive_destination:
- localhost
# - "{{ vip }}:5252"
# Defines how to send the archive data as one of
# as collected, average, sum
netdata_archive_data_source: "average"
# Defines a prefix for the archive data
netdata_archive_prefix: "netdata"
# Defines how often to send archive data in seconds
netdata_archive_update: 1
# Defines the number of update intervals
# after which dataloss occurs
netdata_archive_buffer_on_failures: 30
# Defines when to timeout sending to a backend in milliseconds
netdata_archive_timeout: 20000
# Defines if Netdata sends metric names or UUIDs
netdata_archive_send_names: true
# Defines the flood protection period
netdata_errors_flood_protection_period: 1200
# Defines when to trigger flood proctection
netdata_errors_to_trigger_flood_protection: 200