No configuration is required to run Netdata, but you will find plenty of options to tweak, so that you can adapt it to your particular needs.
Configuration files are placed in `/etc/netdata`.Depending on your installation method, Netdata will have been installed either directly under `/`, or under `/opt/netdata`. The paths mentioned here and in the documentation in general assume that your installation is under `/`. If it is not, you will find the exact same paths under `/opt/netdata` as well. (i.e. `/etc/netdata` will be `/opt/netdata/etc/netdata`).
Under that directory you will see the following:
netdata.confis the main configuration file
edit-configis an sh script that you can use to easily and safely edit the configuration. Just run it to see its usage.
- Other directories, initially empty, where your custom configurations for alarms and collector plugins/modules will
be copied from the stock configuration, if and when you customize them using
origis a symbolic link to the directory
/usr/lib/netdata/conf.d, which contains the stock configurations for everything not included in
health_alarm_notify.confis where you configure how and to who Netdata will send alarm notifications.
health.dis the directory that contains the alarm triggers for health monitoring. It contains one .conf file per collector.
- The modular plugin orchestrators have:
stream.confis where you configure streaming and replication
stats.dis a directory under which you can add .conf files to add synthetic charts.
- Individual collector plugin config files, such as
fping.conffor the fping plugin and
apps_groups.conffor the apps plugin
So there are many configuration files to control every aspect of Netdata's behavior. It can be overwhelming at first, but you won't have to deal with any of them, unless you have specific things you need to change. The following HOWTO will guide you on how to customize your Netdata, based on what you want to do.
http://localhost:19999/netdata.conf, you will see the following two parameters:
To persist your configurations, don't edit the files under the
stock config directory directly. Use the
directory]/edit-config command, or copy the stock config file to its proper place under the
config directory and edit
Increase the values for the
page cache size and
dbengine disk space settings in the
netdata.conf. Read our guide on increasing
long-term metrics storage and the memory requirements for the database
update every in netdata.conf [global]. This is another
way to increase your metrics retention period, but at a lower resolution than the default 1s.
# Per chart configuration you will find several [CHART_NAME]
sections, where you can control all aspects of a specific chart.
Entire plugins can be turned off from the netdata.conf [plugins] section. To disable specific modules of a plugin orchestrator, you need to edit one of the following:
By default, Netdata will enable monitoring metrics for disks, memory, and network only when they are not zero. If they
are constantly zero they are ignored. Metrics that will start having values, after Netdata is started, will be detected
and charts will be automatically added to the dashboard (a refresh of the dashboard is needed for them to appear
yes instead of
auto in plugin configuration sections to enable these charts permanently. You can also
enable zero metrics option to
yes in the
[global] section which enables charts with zero metrics for all
internal Netdata plugins.
You can add a new alarm definition either by editing an existing stock alarm config file under
/etc/netdata/edit-config health.d/load.conf), or by adding a new
.conf file under
documentation on how to define an alarm is in health monitoring. It is
suggested to look at some of the stock alarm definitions, so you can ensure you understand how the various options work.
enabled = no in the netdata.conf [health] section
health.d directory that contains the alarm triggers for health monitoring. It has
one .conf file per collector. You can easily find the .conf file you will need to modify, by looking for the "source"
line on the table that appears on the right side of an alarm on the Netdata gui.
For example, if you click on Alarms and go to the tab 'All', the default Netdata installation will show you at the top
the configured alarm for
10 min cpu usage (it's the name of the badge). Looking at the table on the right side, you
will see a row that says:
source [email protected]/usr/lib/netdata/conf.d/health.d/cpu.conf. This way, you know that you will need
/etc/netdata/edit-config health.d/cpu.conf and look for alarm at line 4 of the conf file.
As stated at the top of the .conf file, you can disable an alarm notification by setting the 'to' line to: silent. To modify how the alarm gets triggered, we suggest that you go through the guide on health monitoring.
You only need to configure
health_alarm_notify.conf. To learn how to do it, read first alarm
notifications and then open the submenu
Alarm notifications in the documentation to find the specific page on your preferred notification
You have several options under the netdata.conf [web] section.
The settings are under the
[web] section. Look at the web server
documentation for more info.
You can change the Netdata OOM score in
The various directory paths are in netdata.conf [global].
The configuration files are
name = value dictionaries with
[sections]. Write whatever you like there as long as it
follows this simple format.
Netdata loads this dictionary and then when the code needs a value from it, it just looks up the
name in the
dictionary at the proper
section. In all places, in the code, there are both the
names and their
so if something is not found in the configuration file, the default is used. The lookup is made using B-Trees and hashes
(no string comparisons), so they are super fast. Also the
names of the settings can be
my super duper setting that
once set to yes, will turn the world upside down = no - so goodbye to most of the documentation involved.
Next, Netdata can generate a valid configuration for the user to edit. No need to remember anything. Just get the
configuration from the server (
/netdata.conf on your Netdata server), edit it and save it.
Last, what about options you believe you have set, but you misspelled?When you get the configuration file from the
server, there will be a comment above all
name = value pairs the server does not use. So you know that whatever you
wrote there, is not used.
Unix prefers regular expressions. But they are just too hard, too cryptic to use, write and understand.
So, Netdata supports simple patterns.
Beginning with 1.20, Netdata accepts user-defined host labels. These labels are defined in the section
Read more about how these labels work and why they're an effective way to organize complex infrasturctures in our guide: Use host labels to organize systems, metrics, and alarms.
To define a label inside this section, some rules needs to be followed, or Netdata will reject the label. The following restrictions are applied for label names:
- Names cannot start with
_, but it can be present in other parts of the name.
- Names only accept alphabet letters, numbers, dots, and dashes.
The policy for values is more flexible, but you can not use exclamation marks (
!), whitespaces (
'), double quotes (
"), or asterisks (
*), because they are used to compare label values in health alarms and