

You can use any SMTP server, or set up your own by following the tutorial How to Install and Configure Postfix as a Send-Only SMTP Server on Ubuntu 16.04. Prometheus 2.x installed by following the tutorial How To Install Prometheus On Ubuntu 16.04.You can use a domain or sub-domain, but make sure to replace the endpoint address through the tutorial. Change the port by modifying the listen directive from 80 to 8080.You’ll use this as the endpoint to monitor in this tutorial. An Nginx server block listening on port 8080, which you can configure by following the How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04 tutorial.Nginx installed by following the first two steps of the How To Install Nginx on Ubuntu 16.04 tutorial.One Ubuntu 16.04 server, set up by following the Initial Server Setup with Ubuntu 16.04 tutorial, including a sudo non-root user and a firewall.You’ll then configure Alertmanager to notify you over e-mail and Slack if your server isn’t responding. In this tutorial you’ll install and configure Alertmanager and Blackbox Exporter to monitor the responsiveness of an Nginx web server. Thanks to the many Prometheus exporters available, you can configure alerts for every part of your infrastructure, including web and database servers, messaging systems or APIs.īlackbox Exporter probes endpoints over HTTP, HTTPS, DNS, TCP or ICMP protocols, returning detailed metrics about the request, including whether or not it was successful and how long it took to receive a response. It can handle alerts from client applications such as Prometheus, and it supports many receivers including e-mail, PagerDuty, OpsGenie and Slack. Alertmanager is a tool for processing alerts, which de-duplicates, groups, and sends alerts to the appropriate receiver. Prometheus is an open-source monitoring system that collects metrics from your services and stores them in a time-series database. When problems arise, sending alerts to the appropriate team significantly speeds up identifying the root cause of an issue, allowing teams to resolve incidents quickly. The author selected the Tech Education Fund to receive a $300 donation as part of the Write for DOnations program.
