![]() Create one with the following command: sudo nano /etc/systemd/system/blackbox_rvice To proceed, you'll need to create a systemd service file. Sudo nano /etc/blackbox_exporter/blackbox.ymlĬopy the configurations below to your file: modules: To do with the following commands: sudo mkdir /etc/blackbox_exporter Now let's create a new configuration file for Blackbox Exporter. sudo chown blackbox_exporter:blackbox_exporter /usr/local/bin/blackbox_exporter Next, run the command below to change directory ownership. sudo mv blackbox_exporter-0.14.0.linux-amd64/blackbox_exporter /usr/local/bin/blackbox_exporter sudo useradd -no-create-home -shell /bin/false blackbox_exporterĬopy the extracted binaries to the new user's bin directory. tar -xvf blackbox_exporter-0.14.0.Ĭreate a Blackbox Exporter user. cd ~Įxtract the binaries with the following command. Now you'll want to download Blackbox Exporter using the commands below. Now that we have Prometheus installed, let's now move on to installing Blackbox Exporter. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Tue 19:04:20 UTC 22s ago rvice - Monitoring system and time series database Once the installation process is complete, activate Prometheus by running the commands below: sudo systemctl start prometheusĬonfirm that the service has been created successfully and that it is in good state by running the following command: sudo systemctl status prometheusīelow is the expected output. If Prometheus is unavailable in your package repository, you will need to fetch the key first. Next, we will need to install Prometheus on our Alibaba Cloud instance by running the command below. Now check if Prometheus is installed by executing the command below: sudo systemctl status prometheusīelow is the expected output. The output should look like this: prometheus: Next, you'll want to run the command below to check what version is available in your system. The first step is to update the package list with the following commands: sudo apt-get update Prometheus is available by default in Ubuntu 18.04 (Bionic Beaver), but in some versions, which are outdated, you may not have it installed. Note that it is also possible to configure Alertmanager to send notifications to Slack. We will all of these set up in this tutorial. Prometheus installed and running on your server.For this, we will use a Django app running on port 8000. A server block listening through a known port.A NGINX server that is installed with Ubuntu.An Alibaba Cloud Elastic Compute Service (ECS) instance that has Ubuntu 18.04 installed on it.To complete the setup guide in this tutorial, you should have the following: We will also create email alerts if the server fails a response test. We shall use both tools to see how well a NGINX server running on Alibaba Cloud responds to our requests. For each request, there are detailed data points such as the success of requests and response times. Blackbox Exporter uses several techniques to run request metrics including HTTP, HTTPS, DNS, TCP, and ICMP. An exporter such as Blackbox Exporter can have alerts configured for all these individual parts. ![]() Your infrastructure can be separated into various components including web and database servers, messaging systems or APIs. While Prometheus is a useful tool all by itself, it becomes even handier when integrated with an exporter. The advantage of using the manager is its compatibility with messaging services such as email. It makes use of an Alertmanager for alerting receivers, which may also duplicate or group different or similar alert types. Prometheus is open source and is used by developers and system administrators to track system metrics, monitor services, and record that information in a time-series database. Follow this link to access the latest Prometheus client download. The tools for the job include Prometheus, Alertmanager and Blackbox Exporter. In this tutorial, we will explore ways to monitor the activity of a service running on an Alibaba Cloud ECS server.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |