From 205457ae5e129bb4d128631769b9eae8db1ae1c1 Mon Sep 17 00:00:00 2001 From: Christopher Moyer <35463610+chri2547@users.noreply.github.com> Date: Tue, 10 Jan 2023 09:29:32 -0600 Subject: [PATCH] Docs: removed unsupported versions; reordered (#61112) removed unsupported versions; reordered --- docs/sources/setup-grafana/upgrade-grafana.md | 344 ++++-------------- 1 file changed, 68 insertions(+), 276 deletions(-) diff --git a/docs/sources/setup-grafana/upgrade-grafana.md b/docs/sources/setup-grafana/upgrade-grafana.md index db562539937..a379fd75a64 100644 --- a/docs/sources/setup-grafana/upgrade-grafana.md +++ b/docs/sources/setup-grafana/upgrade-grafana.md @@ -128,281 +128,9 @@ You can update all plugins using grafana-cli plugins update-all ``` -## Upgrading to v5.0 +## Upgrading to v9.2 -The dashboard grid layout engine has changed. All dashboards will be automatically upgraded to new positioning system when you load them in v5. Dashboards saved in v5 will not work in older versions of Grafana. Some external panel plugins might need to be updated to work properly. - -For more details on the new panel positioning system, refer to [panel size position]({{< relref "../dashboards/build-dashboards/view-dashboard-json-model/#panel-size-and-position" >}}). - -## Upgrading to v5.2 - -One of the database migrations included in this release will update all annotation timestamps from second to millisecond precision. If you have a large amount of annotations the database migration may take a long time to complete which may cause problems if you use systemd to run Grafana. - -We've got one report where using systemd, PostgreSQL and a large amount of annotations (table size 1645mb) took 8-20 minutes for the database migration to complete. However, the grafana-server process was killed after 90 seconds by systemd. Any database migration queries in progress when systemd kills the grafana-server process continues to execute in database until finished. - -If you're using systemd and have a large amount of annotations consider temporary adjusting the systemd `TimeoutStartSec` setting to something high like `30m` before upgrading. - -## Upgrading to v6.0 - -If you have text panels with script tags they will no longer work due to a new setting that per default disallow unsanitized HTML. -For more information about the new setting, refer to [disable sanitize html]({{< relref "configure-grafana/#disable-sanitize-html" >}}). - -### Authentication and security - -If you are using Grafana's builtin, LDAP (without Auth Proxy) or OAuth authentication all users will be required to login upon the next visit after the upgrade. - -If you have `cookie_secure` set to `true` in the `session` section you probably want to change the `cookie_secure` to `true` in the `security` section as well. Ending up with a configuration like this: - -```ini -[session] -cookie_secure = true - -[security] -cookie_secure = true -``` - -The `login_remember_days`, `login_maximum_inactive_lifetime_days`, `login_maximum_lifetime_days`, `cookie_username` and `cookie_remember_name` settings in the `security` section are no longer being used so they're safe to remove. - -If you have `login_maximum_lifetime_days` or `login_maximum_inactive_lifetime_days` configured, you need to change it to `login_maximum_lifetime_duration` or `login_maximum_inactive_lifetime_duration` and append `d` to the configuration value to retain the previous behavior. - -If you have `login_remember_days` configured to 0 (zero) you should change your configuration to this to accomplish similar behavior, i.e. a logged in user will maximum be logged in for 1 day until being forced to login again: - -```ini -[auth] -login_maximum_inactive_lifetime_duration = 1d -login_maximum_lifetime_duration = 1d -``` - -The default cookie name for storing the auth token is `grafana_session`. you can configure this with `login_cookie_name` in `[auth]` settings. - -## Upgrading to v6.2 - -### Ensure encryption of data source secrets - -Data sources store passwords and basic auth passwords in secureJsonData encrypted (AES-256 in CFB mode) by default. Existing data source -will keep working with unencrypted passwords. If you want to migrate to encrypted storage for your existing data sources -you can do that by: - -- For data sources created through UI, you need to go to data source config, re-enter the password or basic auth - password and save the data source. -- For data sources created by provisioning, you need to update your config file and use secureJsonData.password or - secureJsonData.basicAuthPassword field. See [provisioning docs]({{< relref "../administration/provisioning/" >}}) for example of current - configuration. - -### Embedding Grafana - -If you're embedding Grafana in a ``, `