Skip to main content

Upgrade the Aiven for Grafana® service version

Aiven for Grafana® supports multiple Grafana major versions running concurrently in the platform. Choose a version that best fits your needs and upgrade your service when ready.

Supported Grafana versions​

From version 12, Aiven for Grafana supports two major upstream Grafana versions at a time:

  • The latest major version that is stable on the Aiven Platform.
  • The previous major version, which continues to receive patch updates for its last minor version.

You can select either version when you create a service or upgrade an existing service. If you do not select a version, the default is the version Aiven currently sets as the default for new services, which is not always the latest available version.

Aiven for Grafana versions are major versions. You select the major version, and Aiven applies minor and patch updates to it during your service's maintenance window. See the supported versions in the Aiven for Grafana version reference.

Before you upgrade​

Changes made since the last backup​

warning

Upgrading restores your service from its most recent backup, so any changes made after that backup are lost. This includes dashboards, data sources, and alert rules created or edited in that window.

Aiven for Grafana backs up your service every hour. To keep the window as small as possible, start the upgrade shortly after a backup, and avoid editing your service between the backup and the upgrade.

Available or upcoming upgrades​

Track upgrades for your service via:

  • Aiven Console: Service Overview page > Maintenance section > List of available mandatory and optional upgrades
  • Email: notifications for automated upgrades

Upstream breaking changes​

A Grafana major version can change or remove behavior that your dashboards, data sources, alert rules, or plugins depend on. Before you upgrade, read the Grafana upgrade guide for the target version and check your service against it.

Aiven performs the internal database migration that a major version upgrade requires, so you don't need to prepare or reclaim space in the service database yourself. Focus your review on the changes that affect your own content, for example:

  • Plugins that the target version no longer supports.
  • Data source UIDs that the target version rejects. From Grafana 12, a UID can contain only letters, numbers, and dashes. Non-compliant data sources are rejected, and dashboards and alert rules that reference them must be repointed to a replacement data source.
  • Configuration options that the target version removes.

Downgrade restriction​

Downgrading to a previous version is not supported. Grafana migrates its database forward when it starts and never migrates it back, so an older Grafana cannot start on a database that a newer version has already migrated.

As a result, Aiven rejects the following:

  • Updating a service to an earlier grafana_version than it currently runs.
  • Forking a service to an earlier grafana_version than the source service runs.

There is no way to return a service to an earlier version after you upgrade it, so test the upgrade on a fork before you upgrade a service you depend on:

  1. Fork your service to the same version it currently runs.
  2. Upgrade the fork to the target version.
  3. Check your dashboards, data sources, alert rules, and plugins on the fork.
  4. Upgrade your original service once the fork looks correct, and delete the fork.

Prerequisites for upgrade​

Before upgrading your service:

To upgrade your service version, check that:

Upgrade your service​

  1. In the Aiven Console, go to your Grafana service.

  2. On the Overview page, go to the Maintenance section.

  3. Click Actions > Upgrade version.

  4. Select a version to upgrade to.

    warning

    When you click Upgrade:

    • The system applies the upgrade immediately.
    • You cannot downgrade the service to a previous version.
  5. Click Upgrade.

Version selection for new services​

When creating an Aiven for Grafana service:

  • Default version: Aiven sets a default major version for new services. This is not always the latest available version.
  • Explicit selection: You can specify a version using the grafana_version parameter.
  • Version availability: Only versions that are available on the Aiven Platform can be selected.

Example (CLI):

avn service create SERVICE_NAME \
--service-type grafana \
--plan PLAN_NAME \
--cloud CLOUD_NAME \
-c grafana_version="N"

Parameters:

  • SERVICE_NAME: Name of your service
  • PLAN_NAME: Service plan
  • CLOUD_NAME: Cloud region identifier
  • N: Major version, for example 12

Related pages