Install Prometheus
Install Prometheus to collect and serve data
Last updated
Install Prometheus to collect and serve data
Last updated
Prometheus handles data collection, storage, and queries. Data sources are configured as targets from which Prometheus will request metrics data. Prometheus stores this data and responds to Grafana queries against the data.
Create a system account under which Prometheus can run.
Download the latest release.
Unpack the release.
Copy multiple executable files to /usr/local/bin
.
Create additional required directories.
Change ownership on the /var/lib/prometheus
directory so the prometheus service can access it.
Create a systemd service file to configure automatic startup of the Prometheus service.
Insert the following into the Prometheus systemd service file.
Save the file and exit the editor.
Remove the Prometheus archive and installation directory.
We have not yet configured nor started Prometheus.
The instructions below are for version 2.42.0. , and adapt the instructions below.
adduser
commandwget
commandtar
command