![]() ![]() Step 3: Reload the systemd service to register the prometheus service and start the prometheus service. config.file /etc/prometheus/prometheus.yml \ Step 2: Copy the following content to the file. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |