DevOps CI/CD class starts:
Get a $50.00 OFF, if you enroll now.
Prometheus is an open-source monitoring system which is very lightweight and has a good alerting mechanism.
Install and Configure Prometheus
This guide explains how to install and configure the latest Prometheus on a Linux VM.
If you would like to install Prometheus on a Kubernetes cluster, please see the Prometheus on kubernetes guide.
Before You Begin
- Ensure that you have sudo access to the Linux server because the commands used in this guide require elevated privileges.
- The server has access to the internet for downloading the Prometheus binary.
- Most importantly, firewall rules opened for accessing Prometheus port 9090 on the server.
Setup Prometheus Binaries
Step 1: Update the yum package repositories.
sudo yum update -y
Step 2: Go to the official Prometheus downloads page and get the latest download link for the Linux binary.
Step 3: Download the source using curl, untar it, and rename the extracted folder to prometheus-files.
curl -LO url -LO...