Skip to content

Upgrade/Downgrade Grafana

Video Lecture

Upgrade/Downgrade Grafana Upgrade/Downgrade Grafana

Upgrading Grafana

Grafana is updated very regularly.

When using the open source version of Grafana, you need to manage updates yourself and at your own risk.

The open source version comes with no promise of backwards compatibility, so upgrading may affect how any dashboards, visualizations, data sources, etc. work.

Depending on how you initially installed Grafana, e.g., if you used the Ubuntu method of downloading the package from the official Grafana download page as described at https://grafana.com/grafana/download/8.2.3?edition=oss, then you only need to download the new version that you want, e.g., 8.2.4, and prepare the commands for your operating system.

E.g., for Ubuntu 20.4 LTS

wget https://dl.grafana.com/oss/release/grafana_8.2.4_amd64.deb
sudo dpkg -i grafana_8.2.4_amd64.deb

The Grafana service should restart automatically over a period of about a minute. You will then be using the version that you've updated to.

Remember that upgrading is done at your own risk. If you consider that the upgrade was detrimental, you can downgrade back to your previous version by using the same method.

To minimize potential backwards compatibility issues when upgrading, it is better to upgrade 1 patch at a time until you get to the version that you desire. That way you can look at the change log documentation at https://grafana.com/docs/grafana/latest/release-notes/ to get a clue about how to fix any errors that you may suddenly have.

Also, before starting your upgrade task, you can use your cloud provider to create a snapshot of your server, in case you need to recover from it later. When using Digital Ocean, there is a menu item under the settings for your server that allows you to create a live snapshot. You can later rebuild a system using that snapshot if ever needed. Other cloud providers should provide similar backup and recovery functionality.

Downgrading Grafana

If you upgraded Grafana, and you've decided later that you don't want it, you can downgrade back to the version that you had before.

If you kept the downloaded installation packages from the first time, then you can just re-use it and rerun the dpkg(Ubuntu) command from earlier.

E.g., downgrade back to 8.2.3

sudo dpkg -i grafana_8.2.3_amd64.deb

Grafana Cloud

If you use your own Grafana Cloud deployment, then upgrades are automatically applied for you.

While it is important to know the inner details of managing your own Grafana server, it can later be more strategic for your business to outsource the many aspects of it. Visit Grafana Cloud to start the process.

So, when that time comes, use my link here, Grafana Cloud, and you will receive 28 days of PRO trial rather than the default 14 days.

Benefits,

  • Upgraded 28-day trial to Grafana Pro (vs. the standard 14-days)
  • 3 users
  • 10k metrics
  • 50GB logs
  • 50GB traces
  • Automatic updates
  • 30 notifications for OnCall
  • 14-day retention

Sign up at Grafana Cloud

Grafana 10 and Ubuntu 22.04 Notes

With Grafana upgrades, there are always some change to the user interface.

In Grafana v10, the menu options on the left, are now opened by using a hamburger menu () found top left and the gear icon has also been renamed from Configuration to Administration

To add a data source, click , and select ConnectionsData Sources.

You can also select AdministrationData Sources.

In previous versions of Grafana, you would find this page using ConfigurationData Sources.

Remember that Grafana changes all the time. Newer version of Grafana are guaranteed to have user interface layout changes. This is the reality if using Grafana.

Other than the frequent menu layout and changes to option names, there are no other considerable differences to be aware of as shown and discussed in the video.

Example Version User Interfaces Changes

Grafana 6 ConfigurationData Sources

wget https://dl.grafana.com/oss/release/grafana_6.0.0_amd64.deb
sudo dpkg -i grafana_6.0.0_amd64.deb

Data sources

Grafana 7 ConfigurationData Sources

wget https://dl.grafana.com/oss/release/grafana_7.0.0_amd64.deb
sudo dpkg -i grafana_7.0.0_amd64.deb

Data sources

Grafana 8 ConfigurationData Sources

wget https://dl.grafana.com/oss/release/grafana_8.2.4_amd64.deb
sudo dpkg -i grafana_8.2.4_amd64.deb

Data sources

Grafana 9.5 AdministrationData Sources

wget https://dl.grafana.com/oss/release/grafana_9.5.0_amd64.deb
sudo dpkg -i grafana_9.5.0_amd64.deb

Data sources

Grafana 10 ConnectionsData Sources

wget https://dl.grafana.com/oss/release/grafana_10.0.0_amd64.deb
sudo dpkg -i grafana_10.0.0_amd64.deb

Data sources

Comments