How do I rename a node?

A node’s name cannot be changed from within Netdata Cloud.

To change the name that appears in Netdata Cloud, you can either change the node’s hostname, or you can edit that node’s netdata.conf file and change the hostname setting.

Once finished, restart the node with sudo systemctl netdata restart , or the appropriate method for your system, to see the changed name reflected in Netdata Cloud.

Unfortunately for me, someone who wants to learn how to rename a Netdata node, all the links pointing to GitHub pages where I might learn how, are all failing with a 404 error.

1 Like

Hey @handygadget,

I am so sorry for this. I edited the links to the correct url.

Thank you for the feedback :slight_smile:

For future reference, here’s how to do this in 3 steps.

  1. Edit netdata.conf (usually found in /etc/netdata)
  2. Add hostname="ENTER_NEW_NODE_NAME" under [global]
  3. Restart netdata with sudo systemctl restart netdata or the relevant command for your system.
1 Like

simple using linux command on node

hostnamectl set-hostname “myhostname”

** on “myhostname” you type you new hostname without quote

If you deploy on a container you must add in the yml the value hostname example:
version: ‘3’
services:
netdata:
image: netdata/netdata:<>>
container_name: netdata
hostname: <<example.contoso.com>>>
ports:
- 19999:19999
restart: on-failure

1 Like

Hello, it works on ubuntu server, but i tried on Amazon Linux 2 and it doesn’t work.
I can change the hostname on the config file, but the node name shown on the dashboard remains the same as before

have you restart netdata service on the node?

Yes i restarted the service and the server too

I reinstalled netdata and now it works!

1 Like