# How do I rename a node?

**URL:** <https://community.netdata.cloud/t/how-do-i-rename-a-node/1068>\
**Category:** General\
**Tags:** cloud, agent, faq, cloud-ui, how-to\
**Created:** [March 11, 2021, 12:30pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068 "2021-03-11T12:30:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![OdysLam](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/odyslam/32/98_2.png) [@OdysLam](https://community.netdata.cloud/u/OdysLam)\
**Post date:** [March 11, 2021, 12:30pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/1 "2021-03-11T12:30:53Z")

</div>

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](https://www.tecmint.com/set-hostname-permanently-in-linux/), or you can [edit that node’s `netdata.conf` file](https://learn.netdata.cloud/docs/configure/nodes) and change the [`hostname` setting](https://learn.netdata.cloud/docs/agent/daemon).

 

 

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.

---

<div class="post-metadata">

**Author:** ![handygadget](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/handygadget/32/930_2.png) [@handygadget](https://community.netdata.cloud/u/handygadget)\
**Post date:** [June 17, 2021, 4:53pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/2 "2021-06-17T16:53:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![OdysLam](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/odyslam/32/98_2.png) [@OdysLam](https://community.netdata.cloud/u/OdysLam)\
**Post date:** [June 17, 2021, 6:33pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/3 "2021-06-17T18:33:24Z")

</div>

Hey @handygadget,

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

Thank you for the feedback 🙂

---

<div class="post-metadata">

**Author:** ![Shyam](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/shyam/32/1510_2.png) [@Shyam](https://community.netdata.cloud/u/Shyam)\
**Post date:** [November 17, 2022, 12:22pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/4 "2022-11-17T12:22:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anas.xrt](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/anas.xrt/32/1817_2.png) [@anas.xrt](https://community.netdata.cloud/u/anas.xrt)\
**Post date:** [November 17, 2022, 4:33pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/5 "2022-11-17T16:33:31Z")

</div>

simple using linux command on node

> hostnamectl set-hostname “myhostname”

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

---

<div class="post-metadata">

**Author:** ![Juan\_Jose\_Garcia\_Gon](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/juan_jose_garcia_gon/32/1802_2.png) [@Juan\_Jose\_Garcia\_Gon](https://community.netdata.cloud/u/Juan_Jose_Garcia_Gon)\
**Post date:** [November 18, 2022, 10:42pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/6 "2022-11-18T22:42:15Z")

</div>

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](http://example.contoso.com)\>\>\>  
ports:  
- 19999:19999  
restart: on-failure

---

<div class="post-metadata">

**Author:** ![pietro\_campio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/pietro_campio/32/2404_2.png) [@pietro\_campio](https://community.netdata.cloud/u/pietro_campio)\
**Post date:** [December 6, 2022, 4:57pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/7 "2022-12-06T16:57:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anas.xrt](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/anas.xrt/32/1817_2.png) [@anas.xrt](https://community.netdata.cloud/u/anas.xrt)\
**Post date:** [December 8, 2022, 3:59am UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/8 "2022-12-08T03:59:06Z")

</div>

have you restart netdata service on the node?

---

<div class="post-metadata">

**Author:** ![pietro\_campio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/pietro_campio/32/2404_2.png) [@pietro\_campio](https://community.netdata.cloud/u/pietro_campio)\
**Post date:** [December 12, 2022, 8:51am UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/9 "2022-12-12T08:51:17Z")

</div>

Yes i restarted the service and the server too

---

<div class="post-metadata">

**Author:** ![pietro\_campio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/pietro_campio/32/2404_2.png) [@pietro\_campio](https://community.netdata.cloud/u/pietro_campio)\
**Post date:** [December 13, 2022, 3:45pm UTC](https://community.netdata.cloud/t/how-do-i-rename-a-node/1068/10 "2022-12-13T15:45:51Z")

</div>

I reinstalled netdata and now it works!
