Updating the monitoring suite
Updating Prometheus
Download the latest version
Download 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 --checkExpected output: Verify output of the checksum verification
prometheus-2.45.0.linux-amd64.tar.gz: OKReplace 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.
tar xvf prometheus-2.45.0.linux-amd64.tar.gz
sudo cp prometheus-2.45.0.linux-amd64/prometheus /usr/local/bin/
sudo cp prometheus-2.45.0.linux-amd64/promtool /usr/local/bin/
sudo cp -r prometheus-2.45.0.linux-amd64/consoles /etc/prometheus
sudo cp -r prometheus-2.45.0.linux-amd64/console_libraries /etc/prometheus
sudo rm prometheus-2.45.0.linux-amd64.tar.gz
sudo rm -r prometheus-2.45.0.linux-amd64Restart the service
Reload the systemd daemon, restart the service, and monitor the journal logs.
Expected output: The service should say it is "active (running)".
Check the journal logs to make sure there are no error messages.
Updating Node Exporter
Download the latest version
Download the latest version of Node Exporter and run the checksum verification process to ensure that the downloaded file has not been tampered with.
Expected output: Verify output of the checksum verification
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.
Restart the service
Reload the systemd daemon, restart the service, and monitor the journal logs.
Expected output: The service should say it is "active (running)".
Check the journal logs to make sure there are no error messages.
Updating Grafana
Updating Grafana is done via the Linux APT packages as part of the overall OS update. Run the following command:
Then, reboot the system.
Last updated