0
0
mirror of https://github.com/netdata/netdata.git synced 2024-11-24 00:19:42 +00:00
netdata_netdata/docs/netdata-agent/configuration
Fotis Voutsas 32a6cd38e7
Capitalize the word "Agent" (#19044)
* Capitalize the word Agent

* yaml -> json

* fix uppercase keys

* json update
2024-11-20 15:27:03 +02:00
..
optimizing-metrics-database Capitalize the word "Agent" (#19044) 2024-11-20 15:27:03 +02:00
running-the-netdata-agent-behind-a-reverse-proxy Capitalize the word "Agent" (#19044) 2024-11-20 15:27:03 +02:00
anonymous-telemetry-events.md Capitalize the word "Agent" (#19044) 2024-11-20 15:27:03 +02:00
cheatsheet.md docs: grammar/format fixes to docs/netdata-agent/ (#18942) 2024-11-05 14:04:11 +02:00
common-configuration-changes.md docs: grammar/format fixes to docs/netdata-agent/ (#18942) 2024-11-05 14:04:11 +02:00
dynamic-configuration.md docs: grammar/format fixes to docs/netdata-agent/ (#18942) 2024-11-05 14:04:11 +02:00
optimize-the-netdata-agents-performance.md Capitalize the word "Agent" (#19044) 2024-11-20 15:27:03 +02:00
organize-systems-metrics-and-alerts.md Capitalize the word "Agent" (#19044) 2024-11-20 15:27:03 +02:00
README.md Add ref to dyncfg (#18793) 2024-10-16 11:28:14 +00:00

Netdata Agent Configuration

Info

Netdata Cloud lets you configure Agents on the fly. Check the Dynamic Configuration Manager documentation for details.

The main Netdata Agent configuration is netdata.conf.

The Netdata config directory

On most Linux systems, the Netdata config directory will be /etc/netdata/. The config directory contains several configuration files with the .conf extension, a few directories, and a shell script named edit-config.

Some operating systems will use /opt/netdata/etc/netdata/ as the config directory. If you're not sure where yours is, navigate to http://NODE:19999/netdata.conf in your browser, replacing NODE with the IP address or hostname of your node, and find the # config directory = setting. The value listed is the config directory for your system.

All of Netdata's documentation assumes that your config directory is at /etc/netdata, and that you're running any scripts from inside that directory.

Edit a configuration file using edit-config

We recommend the use of the edit-config script for configuration changes.

It exists inside your config directory (read above) and helps manage and safely edit configuration files.

To edit netdata.conf, run this on your terminal:

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config netdata.conf

Your editor will open.

downloading netdata.conf

The running version of netdata.conf can be downloaded from a running Netdata Agent, at this URL:

http://agent-ip:19999/netdata.conf

You can save and use this version, using these commands:

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
curl -ksSLo /tmp/netdata.conf.new http://localhost:19999/netdata.conf && sudo mv -i /tmp/netdata.conf.new netdata.conf