the latest version of Prometheus and run the checksum verification process to ensure that the downloaded file has not been tampered with.
cd
curl -LO https://github.com/prometheus/prometheus/releases/download/v2.45.0/prometheus-2.45.0.linux-amd64.tar.gz
echo "1c7f489a3cc919c1ed0df2ae673a280309dc4a3eaa6ee3411e7d1f4bdec4d4c5 prometheus-2.45.0.linux-amd64.tar.gz" | sha256sum --check
Expected output: Verify output of the checksum verification
prometheus-2.45.0.linux-amd64.tar.gz: OK
Replace existing version
If checksum is verified, extract the files and move them into the /usr/local/bin and /etc/prometheus directories for neatness and best practice. Then, clean up the duplicated copies.
Expected output: The service should say it is "active (running)".
Check the journal logs to make sure there are no error messages.
sudo journalctl -fu prometheus -o cat | ccze -A
Updating Node Exporter
Download the latest version
cd
curl -LO https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-amd64.tar.gz
echo "ecc41b3b4d53f7b9c16a370419a25a133e48c09dfc49499d63bcc0c5e0cf3d01 node_exporter-1.6.1.linux-amd64.tar.gz" | sha256sum --check
Expected output: Verify output of the checksum verification
node_exporter-1.6.1.linux-amd64.tar.gz: OK
If checksum is verified, extract the files and move them into the (/usr/local/bin) directory for neatness and best practice. Then, clean up the duplicated copies.