Improve netdata configuration
This commit is contained in:
parent
f92b5eac6e
commit
977e1dca9a
@ -23,6 +23,12 @@
|
||||
dest: "/etc/netdata/stream.conf"
|
||||
register: system_extra_netdata_stream_conf
|
||||
|
||||
- name: "configure netdata health notifications"
|
||||
ansible.builtin.template:
|
||||
src: "./health_alarm_notify.conf"
|
||||
dest: "/etc/netdata/health_alarm_notify.conf"
|
||||
register: system_extra_netdata_health_conf
|
||||
|
||||
- name: "start netdata"
|
||||
ansible.builtin.systemd:
|
||||
name: "netdata"
|
||||
@ -36,5 +42,6 @@
|
||||
when:
|
||||
(system_extra_netdata_install.changed or
|
||||
system_extra_netdata_netdata_conf.changed or
|
||||
system_extra_netdata_stream_conf.changed) and
|
||||
system_extra_netdata_stream_conf.changed or
|
||||
system_extra_netdata_health_conf.changed) and
|
||||
not system_extra_netdata_start.changed
|
||||
|
5
system/extra/netdata/templates/health_alarm_notify.conf
Normal file
5
system/extra/netdata/templates/health_alarm_notify.conf
Normal file
@ -0,0 +1,5 @@
|
||||
# enable/disable sending emails
|
||||
SEND_EMAIL="YES"
|
||||
|
||||
# if a role recipient is not configured, an email will be send to:
|
||||
DEFAULT_RECIPIENT_EMAIL="root"
|
@ -11,9 +11,21 @@
|
||||
#
|
||||
|
||||
[global]
|
||||
run as user = netdata
|
||||
web files owner = root
|
||||
web files group = root
|
||||
# Netdata is not designed to be exposed to potentially hostile
|
||||
# networks. See https://github.com/netdata/netdata/issues/164
|
||||
bind socket to IP = {{ system_extra_netdata_bind_to }}
|
||||
run as user = netdata
|
||||
web files owner = root
|
||||
web files group = root
|
||||
# Netdata is not designed to be exposed to potentially hostile
|
||||
# networks. See https://github.com/netdata/netdata/issues/164
|
||||
bind socket to IP = {{ system_extra_netdata_bind_to }}
|
||||
|
||||
[health]
|
||||
enabled = {{ "yes" if system_extra_netdata_stream_parent else "no" }}
|
||||
|
||||
[db]
|
||||
mode = {{ "dbengine" if system_extra_netdata_stream_parent else "none" }}
|
||||
|
||||
[web]
|
||||
mode = {{ "static-threaded" if system_extra_netdata_stream_parent else "none" }}
|
||||
|
||||
[ml]
|
||||
enabled = {{ "yes" if system_extra_netdata_stream_parent else "no" }}
|
||||
|
Loading…
Reference in New Issue
Block a user