Grafana 12.1.2 Upgrade Steps Reference
1. Upgrade Overview
This upgrade procedure applies to scenarios where the original Grafana was also installed by extracting a .tar.gz binary package.
Upgrade target package:
https://pdpublic.mingdao.com/private-deployment/offline/common/grafana_12.1.2_17957162798_linux_amd64.tar.gz
Upgrade principles:
- Stop the old Grafana service.
- Back up the old Grafana directory.
- Extract the new Grafana version to the original directory.
- Do not directly copy the old
confconfiguration directory. - Re-edit the new version configuration files according to the official installation guide.
- Copy only the old
datadirectory. - Recreate the Grafana systemd service file.
- Start and verify the Grafana service.
Note: The
confdirectory must not be copied directly from the old version to the new version. The new version ships with configuration files that may differ from the old ones, and directly overwriting them may introduce old configuration structures or default values, causing unexpected behavior after the upgrade. Therefore, when upgrading, reapply the required configuration based on the new version'sconf/defaults.ini.
2. Confirm the Current Installation Directory
This document assumes the Grafana installation directory is:
/usr/local/grafana
If your actual path is different, replace it with the real path.
3. Download the Upgrade Package
3.1 Prepare the Download Directory
mkdir -p /root/mdtemp
cd /root/mdtemp
3.2 Download the Upgrade Package
wget https://pdpublic.mingdao.com/private-deployment/offline/common/grafana_12.1.2_17957162798_linux_amd64.tar.gz