# How to automate adding nodes to rooms in Netdata?

DevFeed: [How to automate adding nodes to rooms in Netdata?](<https://devfeed.tech/articles/how-to-automate-adding-nodes-to-rooms-in-netdata-44917.md>)

Original publisher: [Read original article](<https://www.netdata.cloud/blog/how-can-netdata-agents-be-placed-in-different-rooms-in-an-automated-way/>)

Published: 2024-05-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Netdata](<https://devfeed.tech/sources/blog-on-netdata.md>)

Topics: [Terraform](<https://devfeed.tech/topics/terraform.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [Docker Compose](<https://devfeed.tech/topics/docker-compose.md>), [Replication](<https://devfeed.tech/topics/replication.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>)

Tags: [automate](<https://devfeed.tech/tags/automate.md>), [docker-compose](<https://devfeed.tech/tags/docker-compose.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [provisioning](<https://devfeed.tech/tags/provisioning.md>), [replication](<https://devfeed.tech/tags/replication.md>), [terraform](<https://devfeed.tech/tags/terraform.md>), [terraform-provider](<https://devfeed.tech/tags/terraform-provider.md>)

## AI overview

A practical guide to using the Netdata Cloud Terraform Provider to organize monitored nodes and Netdata agents into rooms. It covers direct agent connections and streaming replication through a parent agent, with Docker Compose provisioning and automation for room membership and notifications.

## Source excerpt

How we organize nodes (and the Netdata agents that are running on those nodes) across different rooms should reflect our architectural decision because the room is a logical container with its own user members and notification rules. So if we are monitoring large infrastructure we should be consistent with these rules and one way to achieve this is to choose automation. Netdata Cloud Terraform Provider lets you automate this by provisioning all the cloud resources and giving you the credentials to spin up the Netdata Agents. In this article, we will concentrate on how in practice we can organize and assign nodes across different rooms in two scenarios, in each of them I'm using non-production installation of the Netdata Agents: