Manual Install

Installing Prometheus manually is accomplished by following the steps outlined on this page. The recommended approach is to install Prometheus using a Linux package. See the Linux Package documentation for details.

Prerequisites

Version

Prometheus version 2.47.2 or newer.

Create User and Group

Create a Prometheus user and group. This user will be used to execute the Prometheus process.

sudo groupadd --system prometheus
sudo useradd -s /sbin/nologin --system -g prometheus prometheus

Download Release

Download the v2.47.2 release.

curl -L \
    -o prometheus.tar.gz \
    https://github.com/prometheus/prometheus/releases/download/v2.47.2/prometheus-2.47.2.linux-amd64.tar.gz

Extract the archive to your working directory.

mkdir prometheus
tar -xf prometheus.tar.gz --strip-components=1 -C prometheus

Binary Installation

Install binaries to /usr/bin.

Configuration

Configure the Prometheus configuration directories and files.

Configure the Prometheus storage directories and files.

Populate prometheus.yml.

Populate rules.yml.

Leave web.yml alone for now. See the TLS section for details on how to secure communication between Bindplane and Prometheus.

Systemd Service

Create the Systemd service.

Enable and start Prometheus.

Validate

You can validate that Prometheus is running with the following curl command.

Last updated

Was this helpful?