![]() ![]() Next, update Blackbox Exporter's configuration file permissions. Place the lines below into the file: ĮxecStart=/usr/local/bin/blackbox_exporter -config.file /etc/blackbox_exporter/blackbox.yml 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |