![]() 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.If you would like to install Prometheus on a Kubernetes cluster, please see the Prometheus on kubernetes guide. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |