2018-07-26 17:02:22 +02:00
|
|
|
|
---
|
|
|
|
|
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
|
|
|
|
|
|
|
|
|
# ipr-cnrs.netdata default variables [[[
|
|
|
|
|
# ======================================
|
|
|
|
|
|
|
|
|
|
# Packages and installation [[[
|
|
|
|
|
# -----------------------------
|
|
|
|
|
|
|
|
|
|
# .. envvar:: netdata__base_packages [[[
|
|
|
|
|
#
|
|
|
|
|
# List of base packages to install.
|
|
|
|
|
netdata__base_packages:
|
|
|
|
|
- 'netdata'
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__install_recommends [[[
|
|
|
|
|
#
|
|
|
|
|
# If recommended packages should be install ? Possible options :
|
|
|
|
|
#
|
|
|
|
|
# ``True``
|
|
|
|
|
# Default. Ensure all probes can work.
|
|
|
|
|
#
|
|
|
|
|
# ``False``
|
|
|
|
|
#
|
|
|
|
|
netdata__install_recommends: True
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__deploy_state [[[
|
|
|
|
|
#
|
|
|
|
|
# What is the desired state which this role should achieve ? Possible options :
|
|
|
|
|
#
|
|
|
|
|
# ``present``
|
|
|
|
|
# Default. Ensure that netdata is installed and configured as requested.
|
|
|
|
|
#
|
|
|
|
|
# ``absent``
|
|
|
|
|
# Ensure that netdata is uninstalled and it's configuration is removed.
|
|
|
|
|
#
|
|
|
|
|
netdata__deploy_state: 'present'
|
|
|
|
|
# ]]]
|
2018-07-26 18:09:35 +02:00
|
|
|
|
# .. envvar:: netdata__service_name [[[
|
|
|
|
|
#
|
|
|
|
|
# The service name to manage.
|
|
|
|
|
#
|
|
|
|
|
netdata__service_name: 'netdata'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__service_manage [[[
|
|
|
|
|
#
|
|
|
|
|
# If the Netdata service should be managed ? Possible options :
|
|
|
|
|
#
|
|
|
|
|
# ``True``
|
|
|
|
|
# Default. The service is started and enabled.
|
|
|
|
|
#
|
|
|
|
|
# ``False``
|
|
|
|
|
# The service is disabled from startup.
|
|
|
|
|
#
|
|
|
|
|
netdata__service_manage: True
|
|
|
|
|
|
|
|
|
|
# ]]]
|
2018-07-26 17:02:22 +02:00
|
|
|
|
# ]]]
|
2018-08-03 14:00:51 +02:00
|
|
|
|
# Common configuration [[[
|
2018-07-26 17:46:10 +02:00
|
|
|
|
# -----------------------------
|
|
|
|
|
|
|
|
|
|
# .. envvar:: netdata__etc_src [[[.
|
|
|
|
|
# Directory with templates used to provide Netdata configuration (usually in
|
|
|
|
|
# '/etc/netdata').
|
|
|
|
|
#
|
|
|
|
|
# Must be a relative path to default directory of this role
|
|
|
|
|
# or to your ansible inventory directory.
|
|
|
|
|
#
|
|
|
|
|
netdata__etc_src: '../templates/etc/netdata'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
2018-07-27 14:08:43 +02:00
|
|
|
|
# .. envvar:: netdata__conf_bind_ip [[[.
|
|
|
|
|
#
|
|
|
|
|
# IP address Netdata will listen to.
|
|
|
|
|
#
|
|
|
|
|
netdata__conf_bind_ip: '127.0.0.1'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__conf_bind_port [[[.
|
|
|
|
|
#
|
|
|
|
|
# Port Netdata will listen to.
|
|
|
|
|
#
|
|
|
|
|
netdata__conf_bind_port: '19999'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
2018-07-27 18:01:52 +02:00
|
|
|
|
# .. envvar:: netdata__conf_memory_mode [[[.
|
|
|
|
|
#
|
|
|
|
|
# The memory mode of the database.
|
|
|
|
|
#
|
|
|
|
|
# Check the possible options on Netdata wiki :
|
|
|
|
|
# https://github.com/firehol/netdata/wiki/Memory-Requirements#memory-modes
|
|
|
|
|
#
|
|
|
|
|
netdata__conf_memory_mode: 'ram'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
2018-07-26 17:46:10 +02:00
|
|
|
|
|
2018-08-03 14:00:51 +02:00
|
|
|
|
# ]]]
|
|
|
|
|
# Slave configuration [[[
|
|
|
|
|
# -----------------------------
|
|
|
|
|
|
|
|
|
|
# .. envvar:: netdata__slave_enable [[[.
|
|
|
|
|
#
|
|
|
|
|
# If node should send metrics to a master. Possible options :
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
# ``False``
|
|
|
|
|
# Default.
|
|
|
|
|
#
|
|
|
|
|
# ``True``
|
|
|
|
|
#
|
|
|
|
|
netdata__slave_enable: False
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__slave_destination [[[.
|
|
|
|
|
#
|
|
|
|
|
# The destination to send metrics to.
|
|
|
|
|
# https://github.com/firehol/netdata/wiki/Replication-Overview#options-for-the-sending-node
|
|
|
|
|
#
|
|
|
|
|
netdata__slave_destination: 'netdata.{{ ansible_domain }}'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__slave_api_key [[[.
|
|
|
|
|
#
|
|
|
|
|
# The API KEY to use (as the sender).
|
|
|
|
|
# https://github.com/firehol/netdata/wiki/Replication-Overview#streaming-configuration
|
|
|
|
|
#
|
|
|
|
|
netdata__slave_api_key: ''
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__slave_buffer_size [[[.
|
|
|
|
|
#
|
|
|
|
|
# The buffer to use for sending metrics.
|
|
|
|
|
# 1MB by default is good for 2-3 seconds of data.
|
|
|
|
|
#
|
|
|
|
|
netdata__slave_buffer_size: '1048576'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__slave_reconnect [[[.
|
|
|
|
|
#
|
|
|
|
|
# If the connection fails, or it disconnects, retry after that many seconds.
|
|
|
|
|
#
|
|
|
|
|
netdata__slave_reconnect: '5'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# Master configuration [[[
|
|
|
|
|
# -----------------------------
|
|
|
|
|
|
|
|
|
|
# .. envvar:: netdata__master_enable [[[.
|
|
|
|
|
#
|
|
|
|
|
# If node should receive metrics from other nodes. Possible options :
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
# ``False``
|
|
|
|
|
# Default.
|
|
|
|
|
#
|
|
|
|
|
# ``True``
|
|
|
|
|
#
|
|
|
|
|
netdata__master_enable: False
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__master_api_key [[[.
|
|
|
|
|
#
|
|
|
|
|
# The API key to authenticate slaves.
|
|
|
|
|
#
|
|
|
|
|
netdata__master_api_key: ''
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__master_history [[[.
|
|
|
|
|
#
|
|
|
|
|
# The number of entries in the database per hosts.
|
|
|
|
|
#
|
|
|
|
|
netdata__master_history: '3600'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
# .. envvar:: netdata__master_memory_mode [[[.
|
|
|
|
|
#
|
|
|
|
|
# The memory mode to be used for all hosts using this API key.
|
|
|
|
|
# https://github.com/firehol/netdata/wiki/Memory-Requirements#memory-modes
|
|
|
|
|
#
|
|
|
|
|
netdata__master_memory_mode: 'ram'
|
|
|
|
|
|
|
|
|
|
# ]]]
|
|
|
|
|
|
2018-07-26 17:46:10 +02:00
|
|
|
|
# ]]]
|