![]() sudo vi /etc/prometheus/prometheus.ymlĪdd the following configuration to the file. Now we will create the prometheus.yml file. Step 10 – Add and modify Prometheus Configuration file. sudo chown prometheus:prometheus /usr/local/bin/prometheus sudo chown prometheus:prometheus /usr/local/bin/promtool Step 9 – Change the ownership to Prometheus user. Sudo cp prometheuspkg/promtool /usr/local/bin/ Step 8 – Copy prometheus and promtool binary from the prometheuspkg folder to /usr/local/bin sudo cp prometheuspkg/prometheus /usr/local/bin/ Sudo chown -R prometheus:prometheus /etc/prometheus/console_libraries Sudo chown -R prometheus:prometheus /etc/prometheus/consoles Sudo cp -r prometheuspkg/console_libraries /etc/prometheus sudo cp -r prometheuspkg/consoles /etc/prometheus Step 7 – Move the consoles and console_libraries directories from prometheuspkg to /etc/prometheus folder and change the ownership to prometheus user. Step 6 – Rename it as per your preference. Step 5 – Now go to Prometheus downloaded location and extract it. 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 user as the owner of those directories. Paste the copied URL after wget in the below command: wget Run the following command to download package. Go to official Prometheus downloads page, and copy the URL of Linux “tar” file. Step 2 – Disable SELinux sudo vim /etc/sysconfig/selinuxĬhange “SELINUX=enforcing” to “SELINUX=disabled”.Ĭhange, save the file and then Reboot the System sudo Reboot Step 1 – Update System sudo yum update -y ![]() Login to Server1 Terminal as a Sudo/Non-Sudo user. One is Server1 and 2nd Server2 is for Node Exporter Configure Prometheus on Centos Prerequisites: The Prometheus monitoring system includes a rich, multidimensional data model, a concise and powerful query language called PromQL, an efficient embedded timeseries database, and over 150 integrations with third-party systems. ![]() In 2016, Prometheus was the second project accepted into the Cloud Native Computing Foundation after Kubernetes, and also to the second to graduate in 2018. Prometheus® is an open source monitoring system developed by engineers at SoundCloud in 2012. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |