2018-07-26 17:46:10 +02:00
|
|
|
## {{ ansible_managed }}
|
2018-08-06 14:54:42 +02:00
|
|
|
## From ipr-cnrs.netdata role
|
2018-07-26 17:46:10 +02:00
|
|
|
|
|
|
|
# NetData Configuration
|
|
|
|
|
|
|
|
# The current full configuration can be retrieved from the running
|
|
|
|
# server at the URL
|
|
|
|
#
|
|
|
|
# http://localhost:19999/netdata.conf
|
|
|
|
#
|
|
|
|
# for example:
|
|
|
|
#
|
|
|
|
# wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
|
|
|
|
#
|
|
|
|
|
|
|
|
[global]
|
|
|
|
run as user = netdata
|
|
|
|
web files owner = root
|
|
|
|
web files group = root
|
2018-07-27 18:01:52 +02:00
|
|
|
memory mode = '{{ netdata__conf_memory_mode }}'
|
2018-07-27 14:08:43 +02:00
|
|
|
|
|
|
|
[web]
|
2018-07-27 18:01:52 +02:00
|
|
|
# Netdata is not designed to be exposed to potentially hostile
|
|
|
|
# networks.See https://github.com/firehol/netdata/issues/164
|
2018-07-27 14:08:43 +02:00
|
|
|
bind to = {{ netdata__conf_bind_ip }}:{{ netdata__conf_bind_port }}
|
2018-08-13 10:36:56 +02:00
|
|
|
|
|
|
|
{% if netdata__registry_announce %}
|
|
|
|
[registry]
|
|
|
|
{% if netdata__registry_enable %}
|
|
|
|
enabled = yes
|
|
|
|
{% else %}
|
|
|
|
enabled = no
|
|
|
|
{% endif %}
|
|
|
|
registry to announce = {{ netdata__registry_announce }}
|
|
|
|
registry hostname = {{ netdata__registry_hostname }}
|
|
|
|
{%- endif %}
|