How to install prometheus on ubuntu?

by clyde_reichert , in category: Installation & Upgrades , a year ago

How to install prometheus on ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by sarai_bergstrom , 9 months ago

@clyde_reichert 1. Update your package lists and install the prerequisites:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
sudo apt-get update
sudo apt install -y curl wget gnupg2 ca-certificates

# Add the Prometheus package repository to your list of software sources
wget -q -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://packages.cloud.google.com/apt/prometheus-bionic/ stable main" | sudo tee /etc/apt/sources.list.d/prometheus.list

# Update your package lists
sudo apt update
# Install Prometheus
sudo apt install prometheus

# Enable and start the Prometheus service
sudo systemctl enable --now prometheus


Prometheus listens on port 9090 by default. The web interface can be accessed by entering the server's IP address followed by port 9090 into your web browser's address bar. http://<IP_address>:9090