You are currently viewing the United Kingdom version of the site.
Would you like to switch to your local site?
14 MIN READ TIME

Monitor systems and Docker deployments

Even when locked-down Mihalis Tsoukalos can still keep a close eye on all of his Linux systems and Docker images with Netdata.

OUR EXPERT

Mihalis Tsoukalos is a DataOps engineer and a technical writer. He is also the author of Go Systems Programming and Mastering Go, 2nd edition.

Welcome to Netdata, software for distributed real-time performance and health monitoring of UNIX machines. Don’t you dare turn that page! A key advantage of Netdata is that it collects all of its metrics without introducing too much load on to the Linux machine that it runs on. In fact, most of the times you’ll forget that Netdata is running on a Linux machine - it’s only after you look at its impressive visualisations that you’ll remember the software is collecting, processing and visualising all these metrics! Another Netdata advantage is that it carries out real-time monitoring, so you can see what’s happening on the Linux machine at that time.

Install Netdata using your package manager. On a Debian or Ubuntu Linux system you can install Netdata by executing apt install netdata. The configuration directory of Netdata is /etc/netdata, but you’ll also find plenty of useful files inside /usr/lib/netdata. By default, Netdata listens to http://localhost:19999, which is the first thing that you should try, to ensure that the Netdata installation was successful.

The screenshot (right) shows the initial default screen, which is full of information. If you’re running Netdata on your own Linux machine, take the time to look at the Netdata visualisations. If you want to make Netdata available over your local network or the Internet, then you should change the value of “bind socket to IP” in the /etc/netdata/netdata.conf configuration file to the external IP of the machine and restart Netdata by executing systemctl restart netdata for the change to take effect. You can identify the version of Netdata you’re using by looking at the lower right-hand corner of the Netdata screen. We’re using Netdata version 1.12.0 in this tutorial.

QUICK TIP

Find out more about netdata at www.netdata.cloud and the documentation of netdata at https://docs.netdata.cloud. The GitHub repository of netdata is located at https://github.com/netdata/netdata and the netdata Docker image can be found at https://hub.docker.com/r/netdata/netdata.

The initial screen of the Netdata web interface, which contains a plethora of information and is divided into three main parts.

Measure the metrics

Netdata can collect and display a plethora of metrics - more than 1,000. The list of metrics includes those on the entire system, the CPUs, the memory, the disks, TCP/IP networking, Systemd, specific applications, users, the firewall, running containers as well as the operation of Netdata itself.

The good news is that if you want to monitor something that’s not directly supported by Netdata, you can create you own metric collector using the Netdata plugin API. You can find more about that capability at https://github.com/netdata/netdata/tree/master/collectors/plugins.d. The plugin API won’t be discussed in much detail in this tutorial.

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99p
SUBSCRIBE NOW
30 day trial, then just £9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
August 2020
VIEW IN STORE

Other Articles in this Issue


In This Issue
Generation Linux
We’re all quite old here at Linux Format. Effy’s looking
NEWS
Open source to sweep across Europe
On 14 May the European Parliament moved to endorse a
Penguins in space!
On its second attempt (reboot? - Ed) the SpaceX-built Falcon
More Linux tech
We reported last issue that Fedora was officially being listed
Case closed!
We reported in LXF258 on the patent case brought against
BIFROST BOOST
With only free software, a Mali G31 chip can now
TRYING TOO HARD
Every once in a while, you see a discussion that
Kernel Watch
Linus Torvalds announced the release of Linux 5.7. The new
ONGOING DEVELOPMENT
Sean Kelly has begun to post enablement patches for CXL
REVIEWS
Intel Frost Canyon NUC
Frost Canyon is the latest iteration of the Intel NUC
Purism Librem 5
Announced in 2017 as a crowdfunder that was impressively supported,
DXT2 1.2
The Windows 7 EOL was too good a hook to
Mabox Linux 20.02
Manjaro is one of the best renditions of Arch Linux
Lair of the Clockwork God
Genuinely funny games are still something of a rarity. So
LED Strip HAT Mini
LED Strip HAT Mini is a Swiss Army knife for
ROUNDUP
File managers
His co-workers have only seen him by video link and
INTERVIEW
NEXT-GEN DISTROS
Cast your mind back 15 years, to that pre-credit crunch
OPEN BRITANNIA
Amanda Brock is CEO of OpenUK (https://openuk.uk), a new non-profit
Pi USER
LEVEL UP!
Les Pounder works for Tom’s Hardware UK writing about the
Raspbian we love you, but this is goodbye…
Things are afoot in the world of Raspberry Pi operating
Official Ubuntu
There’s been a spin of Ubuntu that runs on the
Official 64-bit
But wait, there’s more OS news! Since the Pi 2
Create stop-motion animation with your Pi
Les Pounder is an Associate Editor at Tom’s Hardware and
Hack Stadia stream gaming on to the Pi
Christian Cawley got a bit peckish for Pi and spent
CODING ACADEMY
Creating Pac-Man style games in Python
Calvin Robinson is a former assistant principal and computer science
Turn your data plots into visual information
Mihalis Tsoukalos is a DataOps engineer and a technical writer
REGULARS AT A GLANCE
Your free downloads
To replace our regular covermounted DVD we’re offering four top
Mailserver
Write to us at Linux Format, Future Publishing, Quay House,
Answers
Got a burning question about open source or the kernel?
Inkscape
Neil Mohr is in the HotPicks seat which has been
Worker
You give Jonni six entire pages to write up the
Birdfont
While Comic Sans gets a bad rep in graphic design
PeaZip
PeaZip is currently one of the best-know crossplatform GUI frontends
Mermaid
We first took a look at Mermaid over three years
Zeal
Taking inspiration from OS X’s Dash, this is a useful
Mixxx
Certain members of the open source community believe it lacks
Stella
One of the most comprehensive emulators known to man is
BZFlag
Here at self-isolating LXF Towers, virtually blowing stuff up has
TheSSS
Spun off from the main 4MLinux project, TheSSS isn’t some
Eqonomize
We first looked at Eqonomize when it was originally launched
TUTORIALS
Manage your files
Jonni Bidwell uses vim and i3 on an Eee PC,
Design and publish your very own eBooks
Nick Peers dreams of republishing his best work in book
Model and simulate your circuit projects
Mats Tage Axelsson is keen to show you how using
IN-DEPTH
BROWSER WARS 2020
We suspect most readers remember with bitterness and rolling of
Chat
X
Pocketmags Support