grafana/docs/sources/shared/upgrade/upgrade-common-tasks.md

142 lines
4.9 KiB
Markdown
Raw Normal View History

---
Explicitly set all front matter labels in the source files (#71548) * Set every page to have defaults of 'Enterprise' and 'Open source' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/enterprise-licensing pages to have 'Enterprise' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/recorded-queries pages to have labels cloud,enterprise * Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/stats-and-license pages to have labels cloud,enterprise * Set alerting pages to have labels cloud,enterprise,oss * Set breaking-changes pages to have labels cloud,enterprise,oss * Set dashboards pages to have labels cloud,enterprise,oss * Set datasources pages to have labels cloud,enterprise,oss * Set explore pages to have labels cloud,enterprise,oss * Set fundamentals pages to have labels cloud,enterprise,oss * Set introduction/grafana-cloud pages to have labels cloud Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix introduction pages products Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set panels-visualizations pages to have labels cloud,enterprise,oss * Set release-notes pages to have labels cloud,enterprise,oss * Set search pages to have labels cloud,enterprise,oss * Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss * Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise * Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise * Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise * Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set troubleshooting pages to have labels cloud,enterprise,oss * Set whatsnew pages to have labels cloud,enterprise,oss * Apply updated labels from review Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com> Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com> Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
labels:
products:
- enterprise
- oss
title: Upgrade guide common tasks
---
## Upgrade Grafana
The following sections provide instructions for how to upgrade Grafana based on your installation method.
### Debian
To upgrade Grafana installed from a Debian package (`.deb`), complete the following steps:
1. In your current installation of Grafana, save your custom configuration changes to a file named `<grafana_install_dir>/conf/custom.ini`.
This enables you to upgrade Grafana without the risk of losing your configuration changes.
1. [Download](https://grafana.com/grafana/download?platform=linux) the latest version of Grafana.
1. Run the following `dpkg -i` command.
```bash
wget <debian package url>
sudo apt-get install -y adduser
sudo dpkg -i grafana_<version>_amd64.deb
```
### APT repository
To upgrade Grafana installed from the Grafana Labs APT repository, complete the following steps:
1. In your current installation of Grafana, save your custom configuration changes to a file named `<grafana_install_dir>/conf/custom.ini`.
This enables you to upgrade Grafana without the risk of losing your configuration changes.
1. Run the following commands:
```bash
sudo apt-get update
sudo apt-get upgrade
```
Grafana automatically updates when you run `apt-get upgrade`.
### Binary .tar file
To upgrade Grafana installed from the binary `.tar.gz` package, complete the following steps:
1. In your current installation of Grafana, save your custom configuration changes to a file named `<grafana_install_dir>/conf/custom.ini`.
This enables you to upgrade Grafana without the risk of losing your configuration changes.
1. [Download](https://grafana.com/grafana/download) the binary `.tar.gz` package.
1. Extract the downloaded package and overwrite the existing files.
### RPM or YUM
To upgrade Grafana installed using RPM or YUM complete the following steps:
1. In your current installation of Grafana, save your custom configuration changes to a file named `<grafana_install_dir>/conf/custom.ini`.
This enables you to upgrade Grafana without the risk of losing your configuration changes.
1. Perform one of the following steps based on your installation.
docs: What’s new & Upgrade guide 10.2 (#75909) * Added 10.2 what's new and upgrade guide * Fixed title and added guidance * add: no basic role feature to whats new * Revert "add: no basic role feature to whats new" This reverts commit eb2e31c3dcf013c45b4102f3a149826f5d4c7fe5. * Add field min/max calculation to what's new * refresh token handling * update * Remove whitespace * Revert "Add field min/max calculation to what's new" This reverts commit 9b66ddd0ecfed3b9c3b1dee9cdac6d748e24cffa. * Revert refresh token handling and move it to separate PR * Docs: Add permission validation enabled by default to what's new (#76376) * Add permission validation enabled by default to whats new * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * update * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix Grafana editions note * run prettier --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fixed typo * Docs: Add No basic role feature description (#76345) * add whats next for cloud * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-next/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Auth: Whats new v10.2 (#76369) * add whatsnew auth * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * separate ds and db managed permissions whats new * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * What's new in transformations 10.2 (#76430) * first draft * spelling * Add doc links and images * Fix relrefs * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Add information about availability * update availability for string format transform * add field from calc modifications * Fixed link version syntax * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> Co-authored-by: Victor Marin <victor.marin@grafana.com> * Add field min/max calculation to what's new (#76401) * Add field min/max calculation to what's new * fix whitespace * Fix which editions it's available in * Apply suggestions from code review Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * change availability * reduce image size --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Removed What's new next addition from this PR * Added alertmanager update (#76584) * Added alertmanager update * Fixed order of items * Added availability info * remove typo Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com> * Remove heading formatting * initial draft of dataviz squad deliverables for 10.2 whats new * add dashgpt (#dashboard-ai) whats new draft * What's New: Correlations in 10.2 (#76505) * What's new about correlations * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update availability * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Update docs/sources/whatsnew/whats-new-in-v10-2.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Updated linking guidance in template and fixed links * Fixed link Co-authored-by: Kate Brenner <32871890+katebrenner@users.noreply.github.com> * Docs: update whats new links (#76639) Replaced relrefs with fully qualified URLs * DashGPT: update availability status to public preview * Update What's New to Include information on Timezone and Applicability changes in transformations (#76571) * Update what's new * Fix misspelling * Update to fix wording Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Remove merge conflict flag Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix capitalization Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix wording Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Sentence casing Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix up wording Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fix availability * One last fix :) Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fixed typo (I introduced!) --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Docs: add Cloud what's new items to 10.2 what's new (#76642) * Added Cloud what's new content * Apply suggestions from code review Co-authored-by: Jennifer Villa <jvilla2013@gmail.com> * Updated link formatting * Updated Browse Dashboards with the latest content * Updated availability * Updated wording Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com> * Fixed typo Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com> --------- Co-authored-by: Jennifer Villa <jvilla2013@gmail.com> Co-authored-by: joshhunt <josh@trtr.co> Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com> * Fixed title * Removed all editions language * General edits * Copy edits * Fixed availability note * Copy editing Removed Visualize enum entry Added sharing section Added alerting entry Added introduction Made minor copy edits * Fixed capitalization * Fixed typo * add CTA and gif to AI features * update recorded queries text * Update edition availability Cloud permissions were missing (even though this is an OSS release I think it's important to include details about Cloud availability) and some features listed the wrong availability. * reorder topics for emphasis Emphasize the most exciting improvements * add links to feature toggle docs * move recorded queries * update wording and titles for readability * add visualization media * update wording in dataviz section * dashgpt: finalize whats new for 10.2 (finally) 😬 * Fixed typo * DataViz: finalize whats new content 😬 * Copy edits * update enterprise ds availability * Update whats-new-in-v10-2.md * Fixed style issues and availability note * Added missing Alerting items * Updated availability note * Fixed styling * Reverted what's new link to relref * update availability of No Basic Role I consulted with Eric before making this change. * Removed item not going out in this release * Update Alerting items * Fixed linting --------- Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com> Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com> Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com> Co-authored-by: Jo <joao.guerreiro@grafana.com> Co-authored-by: Victor Marin <victor.marin@grafana.com> Co-authored-by: nmarrs <nathanielmarrs@gmail.com> Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com> Co-authored-by: Kate Brenner <32871890+katebrenner@users.noreply.github.com> Co-authored-by: Kyle Cunningham <codeincarnate@users.noreply.github.com> Co-authored-by: Jennifer Villa <jvilla2013@gmail.com> Co-authored-by: joshhunt <josh@trtr.co> Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com> Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com> Co-authored-by: Mitchel Seaman <mitchel.seaman@gmail.com> Co-authored-by: Miguel Palau <mpalauzarza@gmail.com>
2023-10-25 00:56:09 +08:00
- If you [downloaded an RPM package](https://grafana.com/grafana/download) to install Grafana, then complete the steps documented in [Install Grafana on Red Hat, RHEL, or Fedora](https://grafana.com/docs/grafana/<GRAFANA_VERSION>/setup-grafana/installation/redhat-rhel-fedora/) or [Install Grafana on SUSE or openSUSE](https://grafana.com/docs/grafana/<GRAFANA_VERSION>//setup-grafana/installation/suse-opensuse/) to upgrade Grafana.
- If you used the Grafana YUM repository, run the following command:
```bash
sudo yum update grafana
```
- If you installed Grafana on openSUSE or SUSE, run the following command:
```bash
sudo zypper update
```
### Docker
To upgrade Grafana running in a Docker container, complete the following steps:
1. In your current installation of Grafana, save your custom configuration changes to a file named `<grafana_install_dir>/conf/custom.ini`.
This enables you to upgrade Grafana without the risk of losing your configuration changes.
1. Run a commands similar to the following commands.
docs: What's New & Upgrade Guide 10.0 (#64927) * updated what's new index and added v10.0 what's new and upgrade guide * Update _index.md * Added nested folders * Nested folders screenshot * Add draft of Correlations what's new content * Correlations minor edit * add dashboards whats new * What's new: Query multiple data sources in Explore * Update docs/sources/whatsnew/whats-new-in-v10-0.md Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> * AuthNZ: What's new in Grafana 10.0 (#66362) * AuthNZ: What's new in Grafana 10.0 * Add upgrade guides * Apply suggestions from code review Co-authored-by: Ieva <ieva.vasiljeva@grafana.com> * Apply suggestions from code review Co-authored-by: Jo <joao.guerreiro@grafana.com> * Apply suggestions from code review Co-authored-by: Jo <joao.guerreiro@grafana.com> --------- Co-authored-by: Ieva <ieva.vasiljeva@grafana.com> Co-authored-by: Jo <joao.guerreiro@grafana.com> * Added span filters section * add info about dashboard previews removal * Update docs/sources/whatsnew/whats-new-in-v10-0.md Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com> * add datagrid and drag and drop * combine new ds picker and panel onboarding content * Logs: Add LogContext to What's New v10 (#66575) * add log context description * change `eyeball button` to `eye icon` * Adds Alerting entries for 10 * Add Azure Monitor entry for v10 * add public dashboards features * small tweaks to public dashboards content * Add Security: Trusted types section * Add DataViz: initial placeholder sections with some content * Adds alerting entry for templates * Adds an and * update headings * fix link format and update wording * nesting topics under dashboards and visualizations, updated headers * Adds oncall contact point entry * Copyedits for oncall alerting entry * add incremental querying blurb to whats-new * Renaming nested folders to subfolders * Update what's new to indicate availability of features and improve messaging (#66755) * Added image for time regions * update wording for feature release stage * Add section about Phlare data source rename * restructuring and styling fixes * add datasource picker recording * Log Context: Improved "Whats New" text (#67285) * improve "Log context" whats new * change screenshot * Update docs/sources/whatsnew/whats-new-in-v10-0.md Co-authored-by: Matias Chomicki <matyax@gmail.com> * fix spelling * Update docs/sources/whatsnew/whats-new-in-v10-0.md Co-authored-by: J Stickler <julie.stickler@grafana.com> * Update docs/sources/whatsnew/whats-new-in-v10-0.md Co-authored-by: J Stickler <julie.stickler@grafana.com> * Update docs/sources/whatsnew/whats-new-in-v10-0.md Co-authored-by: J Stickler <julie.stickler@grafana.com> * Update docs/sources/whatsnew/whats-new-in-v10-0.md Co-authored-by: J Stickler <julie.stickler@grafana.com> * change image --------- Co-authored-by: Matias Chomicki <matyax@gmail.com> Co-authored-by: J Stickler <julie.stickler@grafana.com> * wording and style edits * Update how to use Trusted Types * Adding opentracing deprecation notes * Adding opentracing deprecation notes * added breaking changes with raw markdown * updated page weight * state location of public dashboards list more explicitly * added email sharing user admin info * clarified what was fixed * Deletes oncall entry * added heading markdown * replaced absolute links with relrefs * fixed relrefs * Update canvas GA section to include connection properties * canvas: slight grammar update * updated template and name of contributor field for each item * adding contributor name * added contributor names to what's new * added contributor names to what's new and upgrade guide * fixed typo * Docs: What is new 10 - add Data plane (#68125) * Remove drag & drop to dashboard * Add PDC to 10.0 what's new * reorder sections, edit copy * update order, format and copy * grammar fix add "and" * add intro text to breaking changes pages * fix Explore mixed DS what's new doc (#68303) Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Remove datagrid from what's new, drag and drop to experimental * Update docs/sources/whatsnew/whats-new-in-v10-0.md * updates to data source picker availability * Update what's new for canvas / trend panel (finalized) * Update ds picker recording * Add deprecation notice for changing folder UID * docs: update with angular plugin list * Update with documentations links for annotation filtering and time regions * Update annotation filtering section in docs/sources/whatsnew/whats-new-in-v10-0.md * add datagrid as experimental * modify datagrid doc accordingly * Update docs/sources/whatsnew/whats-new-in-v10-0.md Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com> * adds alerting screenshot * deletes sentence * adds state history pic * resolving outstanding suggestions Co-authored-by: David Harris <david.harris@grafana.com> Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com> Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com> * changed order of sections * updated text about breaking changes in whats new and upgrade guide * fixed links * copy edits * general copy edits * removed TO DOs from whats new, copy edited upgrade guide, some copy edits of breaking changes * fix doc validator errors * added availability information, updated preview notes, replaced screenshot * copy edit, added links, added breaking changes content * general copy edit of breaking changes; small update to common tasks * replaced notes with admonitions * link fixes * reverted blog links to full addresses * fixed heading inconsisency * fix doc validator error * added availability note * added missing availability notes * replaced screenshot and fixed wording * replaced screenshot and fixed wording * Updated subfolders description To call out missing features and stress that it can only be used in dev/test environments * added availability note --------- Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> Co-authored-by: Zsofia <zsofia.komaromi@gmail.com> Co-authored-by: Josiah (Jay) Goodson <josiah.goodson@gmail.com> Co-authored-by: natellium <natalia.bernarte@grafana.com> Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com> Co-authored-by: Natalia Bernarte Oses <74534993+natellium@users.noreply.github.com> Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> Co-authored-by: Vardan Torosyan <vardants@gmail.com> Co-authored-by: Ieva <ieva.vasiljeva@grafana.com> Co-authored-by: Jo <joao.guerreiro@grafana.com> Co-authored-by: Joey Tawadrous <joey.tawadrous@grafana.com> Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com> Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com> Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com> Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com> Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com> Co-authored-by: Andreas Christou <andreas.christou@grafana.com> Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Co-authored-by: nmarrs <nathanielmarrs@gmail.com> Co-authored-by: Galen <galen.kistler@grafana.com> Co-authored-by: Adela Almasan <adela.almasan@grafana.com> Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com> Co-authored-by: Matias Chomicki <matyax@gmail.com> Co-authored-by: J Stickler <julie.stickler@grafana.com> Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com> Co-authored-by: Kyle Brandt <kyle@grafana.com> Co-authored-by: Mitchel Seaman <mitchel.seaman@gmail.com> Co-authored-by: Giordano Ricci <me@giordanoricci.com> Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com> Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> Co-authored-by: David Harris <david.harris@grafana.com> Co-authored-by: Victor Marin <victor.marin@grafana.com> Co-authored-by: Joey <90795735+joey-grafana@users.noreply.github.com> Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2023-05-31 21:00:05 +08:00
{{% admonition type="note" %}}
This is an example. The parameters you enter depend on how you configured your Grafana container.
{{% /admonition %}}
```bash
docker pull grafana/grafana
docker stop my-grafana-container
docker rm my-grafana-container
docker run -d --name=my-grafana-container --restart=always -v /var/lib/grafana:/var/lib/grafana grafana/grafana
```
### Windows
To upgrade Grafana installed on Windows, complete the following steps:
1. In your current installation of Grafana, save your custom configuration changes to a file named `<grafana_install_dir>/conf/custom.ini`.
This enables you to upgrade Grafana without the risk of losing your configuration changes.
1. [Download](https://grafana.com/grafana/download) the Windows binary package.
1. Extract the contents of the package to the location in which you installed Grafana.
You can overwrite existing files and folders, when prompted.
### Mac
To upgrade Grafana installed on Mac, complete the following steps:
1. In your current installation of Grafana, save your custom configuration changes to a file named `<grafana_install_dir>/conf/custom.ini`.
This enables you to upgrade Grafana without the risk of losing your configuration changes.
1. [Download](https://grafana.com/grafana/download) the Mac binary package.
1. Extract the contents of the package to the location in which you installed Grafana.
You can overwrite existing files and folders, when prompted.
## Update Grafana plugins
After you upgrade Grafana, we recommend that you update all plugins because a new version of Grafana
can make older plugins stop working properly.
Run the following command to update plugins:
```bash
grafana cli plugins update-all
```