Network monitoring from the cloud
Lookout
Netdata helps you monitor your network with ease through a cloud dashboard.
Netdata [1] is a distributed, real-time, performance and health monitoring tool that can be used to monitor machines running Linux, FreeBSD, and macOS, as well as Kubernetes and Docker. Available for free under a GPLv3 license, you can run Netdata on physical machines, virtual machines, containers, and even on Internet of Things (IoT) devices, thanks to its minimal resource footprint.
Netdata's dashboard balances both form and function and does a nice job of visualizing a computer's processes and services. You can use Netdata to monitor the CPU, RAM usage, disk I/O, and network traffic, along with several other aspects of the systems on which it runs. In addition to hardware, it can also keep an eye on web servers, databases, and applications. Netdata's interactive dashboard can also store long-term historical metrics for days, weeks, or months, all at one second granularity.
Designed by system administrators, DevOps engineers, and developers, Netdata not only visualizes the collected metrics, but it also identifies and troubleshoots complex performance problems without wasting time. In fact, Netdata complements its monitoring features with an alarm notification system that will detect performance and availability issues.
One of the best things about Netdata is that the tool ships with sensible defaults, letting you put it into active service immediately after installation. That said, once you are more familiar with Netdata, you can rely on its extensive customization options and tune it to better align with your requirements.
Client Rollout
To use Netdata, you'll have to install the Netdata Agent on all your computers. The agent also installs its own custom database engine to store all the collected metrics. These will then be visualized on the cloud-based dashboard.
Netdata offers several installation options [2], although the recommended way is to use its one-line installation script. The script will fetch all the components necessary to compile the Netdata Agent on your computer. Fire up a terminal on the machine you want to monitor and enter the following command as a regular Linux user:
$ bash <(curl -Ss https://my-netdata.io/kickstart.sh)
That's all there's to it. The script will refresh the package management repositories and install all the dependencies before compiling the Netdata Agent. It'll also ensure that the agent keeps itself updated with nightly releases.
Another popular option is to install the Netdata Agent inside a Docker container [3]. This is useful for a one-off analysis of a host, since it makes no permanent changes to the host computer and can be easily removed.
After installing the agent, fire up a web browser on the computer and head to http://localhost:19999. This will bring up Netdata's dashboard (Figure 1) and show you the live metrics from the system. You can also view the metrics from any other computer on the network. Just replace localhost with the IP address of the computer on which you've installed the agent.
Monitor Multiple Machines
To monitor multiple machines, use the one-line installation script to install the agent on all the computers you want to monitor. The agents are distributed by design, which means they operate independently of each other and only collect and chart the metrics for the system on which they are installed.
To string together the various agents into a single interface, you'll have to sign up for a free account with the Netdata Cloud service, which will collate and display metrics from all the agents deployed on your network (see the "Netdata Cloud" box).
Netdata Cloud
Netdata Cloud shows you all the computers on your network in single screen view. To get started, head to https://app.netdata.cloud and use any of the options to create an account with the service.
Once your account has been created, the Netdata Cloud will take you through a brief on-boarding process. During this process, you'll be asked to create at least one Space and one War Room. The Spaces and War Rooms help you organize the computers in your network. Think of them as virtual spaces that help you customize how you and your team use Netdata Cloud to monitor your infrastructure.
You can read about the Netdata Cloud's organizational benefits to familiarize yourself with the concept of Spaces and War Rooms [4]. For now, just create one of each as requested. You'll use them later to monitor your computers.
Once you have the login credentials, bring up the dashboard on any of the monitored computers. Click the Sign In button at the top of the dashboard and then enter your Netdata Cloud account credentials when prompted. You'll be redirected back to the Netdata dashboard, which now sports a new menu on the left. The computer will be listed under the Visited Nodes section.
To add more computers, navigate to their respective dashboards and use the Sign In button to connect them to your Netdata Cloud account. As you connect more computers, they'll start populating the Visited Nodes section. Once you've added more than one node, you can switch between them from the menu.
Claim Systems
When you sign into the Netdata Cloud service from the dashboard, your computers will be listed under the Visited Nodes section. You should also take a moment to add computers to the Space you created when signing up for the Netdata Cloud account.
The process of adding a node to a Space is called claiming. Claiming makes sure you have administrative access to the computer and the Netdata Agent running on it. You'll be given a chance to claim a computer during the signup process for your Netdata Cloud account. Of course, you can also do this later from within the Space as well.
To add a computer to a Space, log into the Netdata Cloud account and select a Space from the list on the left. Now click the green + icon within the Space, which will reveal a rather long command (Figure 2). Copy the command, and paste it in a terminal on the computer you want to claim.
After verifying your credentials, the computer will be added to the Space (Figure 3). Now you can repeat the claiming process on every computer you want to add to Netdata Cloud. Remember that you can only claim a computer inside a single Space. Once claimed, however, you can add that computer to multiple War Rooms within the Space.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.