Tune netdata config
This commit is contained in:
parent
ffe65032db
commit
34a250bd42
@ -2,15 +2,21 @@
|
||||
argument_specs:
|
||||
main:
|
||||
options:
|
||||
system_extra_netdata_install_sensors:
|
||||
type: "bool"
|
||||
required: true
|
||||
system_extra_netdata_bind_to:
|
||||
type: "str"
|
||||
required: true
|
||||
required: false
|
||||
system_extra_netdata_update_every:
|
||||
type: "str"
|
||||
required: false
|
||||
system_extra_netdata_stream_parent:
|
||||
type: "bool"
|
||||
required: true
|
||||
system_extra_netdata_stream_dest_inet6:
|
||||
type: "str"
|
||||
required: true
|
||||
required: "{{ not system_extra_netdata_stream_parent }}"
|
||||
system_extra_netdata_stream_api_key:
|
||||
type: "str"
|
||||
required: true
|
||||
|
@ -6,6 +6,14 @@
|
||||
- "uuid-runtime"
|
||||
register: system_extra_netdata_install
|
||||
|
||||
- name: "install lm-sensors"
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- "lm-sensors"
|
||||
register: system_extra_netdata_lm_sensors_install
|
||||
when:
|
||||
system_extra_netdata_install_sensors
|
||||
|
||||
- name: "enable netdata"
|
||||
ansible.builtin.systemd:
|
||||
name: "netdata"
|
||||
@ -41,6 +49,8 @@
|
||||
state: "restarted"
|
||||
when:
|
||||
(system_extra_netdata_install.changed or
|
||||
(system_extra_netdata_lm_sensors_install is defined and
|
||||
system_extra_netdata_lm_sensors_install.changed) or
|
||||
system_extra_netdata_netdata_conf.changed or
|
||||
system_extra_netdata_stream_conf.changed or
|
||||
system_extra_netdata_health_conf.changed) and
|
||||
|
@ -16,7 +16,8 @@
|
||||
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 }}
|
||||
bind socket to IP = {{ system_extra_netdata_bind_to | default("localhost") }}
|
||||
update every = {{ system_extra_netdata_update_every | default("1") }}
|
||||
|
||||
[plugins]
|
||||
netdata monitoring = no
|
||||
|
Loading…
Reference in New Issue
Block a user