0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-09 15:47:53 +00:00
netdata_netdata/docs/netdata-agent/configuration
Costa Tsaousis a399128dbf
config parsers ()
* added parser for durations

* preliminary work for timeframes

* Update CMakeLists.txt

* updated parsing and generation for durations

* renames

* report parser errors; added compatibility to existing config_parse_duration()

* duration parsing is used on most netdata.conf and stream.conf entries

* more uses of duration parsing; simplification of stream.conf

* code cleanup

* more duration changes

* added html playground

* improved js code

* duration parsing applied to dbengine retention

* fixed doc

* simplified logic; added size parser

* added parsing for sizes

* renames and documentation updates

* hide appconfig internals from the rest of netdata

* fix crash on cleanup of streaming receivers

* fix buffer overflow in gorilla compression

* config return values are const

* ksm set to auto

* support reformatting migrated values

* removed obsolete metrics correlations settings

* split appconfig to multiple files

* durations documentation

* sizes documentation

* added backward compatibility in retention configuration

* provide description on migrations and reformattings

* config options are now a double linked list

* config sections are now a double linked list; config uses spinlocks; code cleanup and renames

* added data type to all config options

* update data types

* split appconfig api to multiple files

* code cleanup and renames

* removed size units above PiB

* Revert "fix buffer overflow in gorilla compression"

This reverts commit 3d5c48e84b.

* appconfig internal api changes
2024-09-04 14:42:01 +03:00
..
optimizing-metrics-database config parsers () 2024-09-04 14:42:01 +03:00
running-the-netdata-agent-behind-a-reverse-proxy docs fix "Prevent the double access.log" () 2024-05-29 15:31:08 +03:00
anonymous-telemetry-events.md PR to change absolute links to relative () 2024-05-21 12:58:32 +03:00
cheatsheet.md PR to change absolute links to relative () 2024-05-21 12:58:32 +03:00
common-configuration-changes.md Change links to relative links in one doc () 2024-05-21 10:22:02 +03:00
dynamic-configuration.md RBAC for dynamic configuration documentation () 2024-06-13 19:41:50 +03:00
optimize-the-netdata-agents-performance.md PR to change absolute links to relative () 2024-05-21 12:58:32 +03:00
organize-systems-metrics-and-alerts.md Change "War Room" to "Room" and other docs changes () 2024-05-30 14:16:13 +03:00
README.md PR to change absolute links to relative () 2024-05-21 12:58:32 +03:00

Netdata Agent Configuration

The main Netdata agent configuration is netdata.conf.

The Netdata config directory

On most Linux systems, by using our recommended one-line installation, 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 netdata.conf

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