This role configures an existing Netdata base installation as a client which streams its data to another Netdata server.
Its companion role is the Netdata collector.
An empty Netdata installation, see dependencies.
The role requires a few variables that are set:
netdata_registry_to_announce
: The central registry where this client should be registered. More information is available here.netdata_client_stream_key
: API key which will be used to identify the traffic at the server. Can be generated withuuidgen
. The server needs to know about this UUID as well, otherwise the monitoring data of this client will be rejected.netdata_client_stream_destination
: URL of the server that Netdata will sent its data.
Optional variables:
netdata_hostname
: Allows to overwrite the hostname for the client. Default value is "auto-detected".
Additionally, we expect that a certificate is placed at /etc/netdata/ssl/cert.pem
. It'll be used to encrypt the traffic between node and collector.
- hosts: myserver
roles:
- { role: simplificator.netdata_node }
vars:
netdata_registry_to_announce: "https://registry.example.com"
netdata_client_stream_key: "958D31F0-C066-42CD-AE71-10D293E43F79"
netdata_client_stream_destination: "collector.example.com:19999:SSL"
To ensure that our Netdata roles remain compatible with each other, follow this variable naming convention:
- Role-specific variables are prefixed with the role name (
netdata_node_
in this case). - General variables that are used in multiple roles will be prefixed with just
netdata_
.
MIT / BSD