

Step 1: Create a prometheus service file. sudo chown prometheus:prometheus /etc/prometheus/prometheus.yml Setup Prometheus Service File

Step 3: Change the ownership of the file to prometheus user. Step 2: Copy the following contents to the prometheus.yml file. Sudo chown -R prometheus:prometheus /etc/prometheus/console_libraries Setup Prometheus ConfigurationĪll the prometheus configurations should be present in /etc/prometheus/prometheus.yml file. Sudo chown -R prometheus:prometheus /etc/prometheus/consoles Sudo cp -r prometheus-files/console_libraries /etc/prometheus sudo cp -r prometheus-files/consoles /etc/prometheus Step 6: Move the consoles and console_libraries directories from prometheus-files to /etc/prometheus folder and change the ownership to prometheus user. Sudo chown prometheus:prometheus /usr/local/bin/promtool Sudo chown prometheus:prometheus /usr/local/bin/prometheus Sudo cp prometheus-files/promtool /usr/local/bin/ sudo cp prometheus-files/prometheus /usr/local/bin/ Step 5: Copy prometheus and promtool binary from prometheus-files folder to /usr/local/bin and change the ownership to prometheus user. Sudo chown prometheus:prometheus /var/lib/prometheus Sudo chown prometheus:prometheus /etc/prometheus sudo useradd -no-create-home -shell /bin/false prometheus Step 4: Create a Prometheus user, required directories, and make Prometheus the user as the owner of those directories. Mv prometheus-2.22.0.linux-amd64 prometheus-files Step 3: Download the source using curl, untar it, and rename the extracted folder to prometheus-files. Step 2: Go to the official Prometheus downloads page and get the latest download link for the Linux binary. Step 1: Update the yum package repositories. Most importantly, firewall rules opened for accessing Prometheus port 9090 on the server.The server has access to the internet for downloading the Prometheus binary.Ensure that you have sudo access to the Linux server because the commands used in this guide require elevated privileges.
#NODE EXPORTER PROMETHEUS CONFIG INSTALL#
If you would like to install Prometheus on a Kubernetes cluster, please see the Prometheus on kubernetes guide.
#NODE EXPORTER PROMETHEUS CONFIG HOW TO#
This guide explains how to install and configure the latest Prometheus on a Linux VM.

Prometheus is an open-source monitoring system which is very lightweight and has a good alerting mechanism.
