I cannot find the netdata config directory at my Raspberry Pi 4

Totally noob issue :sweat_smile:

I am using a headless Raspberry Pi 4 configured as NAS with Open Media Vault. Netdata is installed and working.

I am following the steps at Step 4. The basics of configuring Netdata | Learn Netdata

When I open netdata.conf from the remote browser (http://raspberrypi:19999/netdata.conf) it indicates that my netdata.conf file should be located at: # config directory = /etc/netdata

# netdata configuration
#
# You can download the latest version of this file, using:
#
#  wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
# or
#  curl -o /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
#
# You can uncomment and change any of the options below.
# The value shown in the commented settings, is the default value.
#

# global netdata configuration

[global]
	# run as user = netdata
	# host access prefix = /host
	# glibc malloc arena max for plugins = 1
	# hostname = 9c178392f657
	# history = 4034
	# update every = 1
	# config directory = /etc/netdata
	# stock config directory = /usr/lib/netdata/conf.d
	# log directory = /var/log/netdata
	# web files directory = /usr/share/netdata/web
	# cache directory = /var/cache/netdata
	# lib directory = /var/lib/netdata
	# home directory = /root
	# lock directory = /var/lib/netdata/lock
	# plugins directory = "/usr/libexec/netdata/plugins.d" "/etc/netdata/custom-plugins.d"
	# memory mode = dbengine

However, I cannot find a folder named netdata at etc\

This is all I can see at etc:

Where should I look at?

Hi, @pinfloi. You can find the directory by opening http://IP:19999/netdata.conf in your browser and CTRL+F “config directory”.

Or from command line using curl

[ilyam@pc ~]$ curl -s localhost:19999/netdata.conf | grep “config directory”
# config directory = /opt/netdata/etc/netdata
# stock config directory = /opt/netdata/usr/lib/netdata/conf.d

The config directory on my server is /opt/netdata/etc/netdata.

Thank you for the instructions, @iliam8

I am still not able to locate my netdata.conf file

I already know that my config directory is /etc/netdata, as indicated at the config file that I have posted above.

# config directory = /etc/netdata

The problem is that I cannot find a folder named netdata at /etc

Perhaps my problem is more basic, and I am not using the correct commands to access the netdata folder (I am a total beginner). This is what I am doing:

If netdata had been correctly installed, then the response from the web call to netdata.conf would match the location of the config directory.

Options I can thing of:

  • Reinstall and monitor the installation script for errors.
  • Go to the root directory and do a find . -name netdata.conf as root. After finding it, you can modify the netdata launch command (from wherever it’s launched) to include the location of the config file. It’s the -c option you see also in Netdata daemon | Learn Netdata