Your data center Linux servers need to exist monitored. Just what tool to use? There are enough, many of which are quite powerful. If you're looking for one that allows yous to monitor numerous services (such as Graphite, MySQL, InfluxDB, Prometheus, Elasticsearch, and Cloudwatch) and lets you customize dashboards to monitor in-house apps or your information centre infrastructure, yous might consider turning to Grafana Monitoring Tool. You'll be surprised at how easy this powerhouse tool is to install.

What yous need

  • A machine (or virtual machine) running Ubuntu Server 18.04
  • An account on the machine with sudo privileges

With everything in check, let's install.

Calculation the repository

Open a terminal window and issue the command:

sudo nano /etc/apt/sources.list.d/grafana.listing

In this new file, add together the post-obit:

deb https://packagecloud.io/grafana/stable/debian/ stretch chief

Relieve and close that file.

Download and install the necessary GPG key with the command:

sudo curl https://packagecloud.io/gpg.key | sudo apt-key add -

SEE: Linux distribution comparing chart (Tech Pro Research)

Update and install

Side by side, we're going to update apt and install Grafana. This is achieved with the following two commands:

sudo apt-become update -y
sudo apt-get install grafana -y

Start and enable Grafana

With Grafana installed, the service needs to exist enabled and started. We'll do this with the following three commands:

sudo systemctl daemon-reload
sudo systemctl enable grafana-server
sudo systemctl outset grafana-server

The Grafana daemon is now running and listening for connections.

Accessing Grafana

Open a browser (one that's on the same network as your new Grafana monitor) and point it to http://SERVER_IP:3000 (Where SERVER_IP is the actual IP accost of the server hosting Grafana). You volition be presented with a login window (Figure A).

Figure A

The default credentials are admin/admin. Once you successfully cosign with that username/countersign combination, you will be prompted to change the admin user countersign (Effigy B).

Figure B

Afterwards you've changed the password, yous will exist presented with a bare dashboard (Figure C).

Figure C

Click Add data source and you lot will be prompted to configure the new source (Effigy D). How yous configure the source will depend upon the blazon added.

Figure D

If the data source y'all desire to monitor isn't available, caput over to the Plugins tab or directly to the Grafana plugins page, where you can find a number of new additions for the Grafana monitor. Some of the plugins are data sources and some are panels. Most of these plugins are installed from the command line like then:

sudo grafana-cli plugins install grafana-clock-console

In one case you lot've installed a plugin, you must so restart Grafana with the command:

sudo systemctl restart grafana-server

Once yous've added your data source and any extra plugins, you tin can go back to the main window, click on the + push button, and add together a new dashboard to firm the diverse elements (graphs, unmarried stats, tables, rows, heatmaps, etc.). It might accept you lot awhile to get your Grafana dashboard exactly how you want it, but it will be worth the fourth dimension and effort.

Encounter: 20 quick tips to make Linux networking easier (free TechRepublic PDF)

Congratulations

Grafana is upward and running and ready to proceed you apprised on what'south going on with the servers and systems in your data eye. Thanks to this open source enterprise-form monitoring system, yous can have the guesswork out of what'due south happening with your Linux machines and the services they provide.

Other tools?

What tools have you used to monitor your Linux servers? Take you tried Grafana? Share your recommendations with fellow TechRepublic members.