ansible.netdata/templates/etc/netdata/netdata.conf.j2

37 lines
895 B
Plaintext
Raw Permalink Normal View History

2018-07-26 17:46:10 +02:00
## {{ ansible_managed }}
## 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 }}'
[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
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 %}