This section provides a quick overview for a few common deployment options for Netdata.
You can read about Standalone Deployment and Deployment with Centralization Points in the documentation inside this section.
The sections below go into configuration examples about these deployment concepts.
The stand-alone setup is configured out of the box with reasonable defaults, but please consult our configuration documentation for details, including the overview of common configuration changes.
For setups involving Parent and Child Agents, they need to be configured for streaming, through the configuration file stream.conf
.
This will instruct the Child to stream data to the Parent and the Parent to accept streaming connections for one or more Child Agents. To secure this connection, both need a shared API key (to replace the string API_KEY
in the examples below). Additionally, the Child can be configured with one or more addresses of Parent Agents (PARENT_IP_ADDRESS
).
An API key is a key created with uuidgen
and is used for authentication and/or customization on the Parent side. For example, a Child can stream using the API key, and a Parent can be configured to accept connections from the Child, but it can also apply different options for Children by using multiple different API keys. The easiest setup uses just one API key for all Child Agents.
As mentioned above, we do not recommend to claim the Child to Cloud directly during your setup.
This is done in order to reduce the footprint of the Netdata Agent on your production system, as some capabilities can be switched OFF for the Child and kept ON for the Parent.
In this example, Machine Learning and Alerting are disabled for the Child, so that the Parent can take the load. We also use RAM instead of disk to store metrics with limited retention, covering temporary network issues.
On the child node, edit netdata.conf
by using the edit-config script and set the following parameters:
[db]
# https://github.com/netdata/netdata/blob/master/src/database/README.md
# none = no retention, ram = some retention in ram
mode = ram
# The retention in seconds.
# This provides some tolerance to the time the child has to find a parent in
# order to transfer the data. For IoT this can be lowered to 120.
retention = 1200
# The granularity of metrics, in seconds.
# You may increase this to lower CPU resources.
update every = 1
[ml]
# Disable Machine Learning
enabled = no
[health]
# Disable Health Checks (Alerting)
enabled = no
[web]
# Disable remote access to the local dashboard
bind to = lo
[plugins]
# Uncomment the following line to disable all external plugins on extreme
# IoT cases by default.
# enable running new plugins = no
To edit stream.conf
, use again the edit-config script and set the following parameters:
[stream]
# Stream metrics to another Netdata
enabled = yes
# The IP and PORT of the parent
destination = PARENT_IP_ADDRESS:19999
# The shared API key, generated by uuidgen
api key = API_KEY
For the Parent, besides setting up streaming, this example also provides configuration for multiple tiers of metrics storage, for 10 Children, with about 2k metrics each. This allows for:
Requiring:
On the Parent, edit netdata.conf
by using the edit-config script and set the following parameters:
[db]
mode = dbengine
dbengine tier backfill = new
storage tiers = 3
dbengine page cache size = 1.4GiB
# storage tier 0
update every = 1
dbengine tier 0 retention space = 12GiB
# storage tier 1
dbengine tier 1 update every iterations = 60
dbengine tier 1 retention space = 4GiB
# storage tier 2
dbengine tier 2 update every iterations = 60
dbengine tier 2 retention space = 2GiB
[ml]
# Enabled by default
# enabled = yes
[health]
# Enabled by default
# enabled = yes
[web]
# Enabled by default
# bind to = *
On the Parent node, edit stream.conf
by using the edit-config script and set the following parameters:
[API_KEY]
# Accept metrics streaming from other Agents with the specified API key
enabled = yes
In order to setup active–active streaming between Parent 1 and Parent 2, Parent 1 needs to be instructed to stream data to Parent 2 and Parent 2 to stream data to Parent 1. The Child Agents need to be configured with the addresses of both Parent Agents. An Agent will only connect to one Parent at a time, falling back to the next upon failure. These examples use the same API key between Parent Agents and for connections for Child Agents.
On both Netdata Parent and all Child Agents, edit stream.conf
by using the edit-config script:
[stream]
# Stream metrics to another Netdata
enabled = yes
# The IP and PORT of Parent 2
destination = PARENT_2_IP_ADDRESS:19999
# This is the API key for the outgoing connection to Parent 2
api key = API_KEY
[API_KEY]
# Accept metrics streams from Parent 2 and Child Agents
enabled = yes
[stream]
# Stream metrics to another Netdata
enabled = yes
# The IP and PORT of Parent 1
destination = PARENT_1_IP_ADDRESS:19999
api key = API_KEY
[API_KEY]
# Accept metrics streams from Parent 1 and Child Agents
enabled = yes
[stream]
# Stream metrics to another Netdata
enabled = yes
# The IP and PORT of the parent
destination = PARENT_1_IP_ADDRESS:19999 PARENT_2_IP_ADDRESS:19999
# The shared API key, generated by uuidgen
api key = API_KEY
We strongly recommend the following configuration changes for production deployments:
To safeguard your infrastructure and comply with your organization's security policies.
To save valuable system resources, especially when running on weak IoT devices.
We also suggest that you:
For increased security, user management and access to our latest features, tools and troubleshooting solutions.
To control Netdata's memory use, when you have a lot of ephemeral metrics.
To organize systems, metrics, and alerts.