Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-13025 - Upgrade changes #1316

Merged
merged 64 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
6937dcc
rel Notes entry draft
catalinaadam Oct 4, 2024
ae71bc9
rel notes draft
catalinaadam Oct 4, 2024
d2b2ae0
Updated relnotes
catalinaadam Oct 7, 2024
6ae1b0d
corrected install v3 command
catalinaadam Oct 8, 2024
2200f16
Revert "corrected install v3 command"
catalinaadam Oct 8, 2024
535e998
typo
catalinaadam Oct 8, 2024
1a50c28
draft
catalinaadam Oct 9, 2024
a339810
draft
catalinaadam Oct 9, 2024
a6f0310
typo
catalinaadam Oct 10, 2024
070d440
updated troubleshooting and remaining topics
catalinaadam Oct 11, 2024
203e517
updated api
catalinaadam Oct 11, 2024
35e7c0c
Update upgrade_issues.md
catalinaadam Oct 16, 2024
73758bd
Update docs/how-to/upgrade.md
catalinaadam Oct 21, 2024
acd3b78
Update docs/pmm-upgrade/upgrade_docker.md
catalinaadam Oct 21, 2024
525e5b5
Update docs/pmm-upgrade/upgrade_from_ppm_2.md
catalinaadam Oct 21, 2024
2f969b9
Update docs/pmm-upgrade/upgrade_from_ppm_2.md
catalinaadam Oct 21, 2024
417f6cf
Merge branch 'PMM3_Beta' into Upgrade_changes
catalinaadam Oct 21, 2024
c5dab98
feedback from Matej
catalinaadam Oct 21, 2024
d873fea
added screenshot
catalinaadam Oct 21, 2024
7a222f1
Update docs/pmm-upgrade/upgrade_docker.md
catalinaadam Oct 22, 2024
ffab19a
feedback from Nurlan
catalinaadam Oct 23, 2024
1166b7e
feedback from Alex
catalinaadam Oct 23, 2024
634b8f2
added separate section about env changed from v2
catalinaadam Oct 23, 2024
afaab30
table formatting
catalinaadam Oct 23, 2024
37556c0
removed info abour force update via UI
catalinaadam Oct 23, 2024
6ac3352
table formatting
catalinaadam Oct 23, 2024
876052b
table formatting
catalinaadam Oct 23, 2024
7b1d084
table formatting
catalinaadam Oct 23, 2024
9858df4
table formatting
catalinaadam Oct 23, 2024
600510f
table formatting test
catalinaadam Oct 23, 2024
492950d
test
catalinaadam Oct 23, 2024
edec715
test2
catalinaadam Oct 23, 2024
c264596
Update env_var.md
alina-derkach-oaza Oct 23, 2024
8f4fff3
Update env_var.md
alina-derkach-oaza Oct 23, 2024
027e5ca
Update env_var.md
alina-derkach-oaza Oct 23, 2024
cd99f55
table formatting
catalinaadam Oct 24, 2024
83dd6bc
formatting
catalinaadam Oct 24, 2024
6529079
restructured topic
catalinaadam Oct 24, 2024
cf498dc
improved wording
catalinaadam Oct 24, 2024
53ad24f
note about new environment variables for PMM3
catalinaadam Oct 24, 2024
66f85b6
watchtower updates
catalinaadam Oct 24, 2024
3633d02
feedback from Nurlan
catalinaadam Oct 25, 2024
5c14a97
fixed formatting
catalinaadam Oct 25, 2024
80aa2ad
formatting
catalinaadam Oct 25, 2024
e237172
formatting
catalinaadam Oct 25, 2024
324ca48
replaced PMM2 references
catalinaadam Oct 28, 2024
9c39a7f
feedback from Nurlan
catalinaadam Oct 28, 2024
c2688e1
feedback from Alex D
catalinaadam Oct 28, 2024
308c036
Update docs/install-pmm/install-pmm-server/baremetal/docker/index.md
catalinaadam Oct 28, 2024
92833c3
Update docs/pmm-upgrade/upgrade_agent.md
catalinaadam Oct 28, 2024
71e0c4c
Update docs/pmm-upgrade/upgrade_helm.md
catalinaadam Oct 28, 2024
c0e0625
Update docs/pmm-upgrade/upgrade_helm.md
catalinaadam Oct 28, 2024
22737ea
Update docs/pmm-upgrade/upgrade_from_pmm_2.md
catalinaadam Oct 28, 2024
b2fcbc5
formatting
catalinaadam Oct 28, 2024
cfb5c1f
renamed "upgrade"
catalinaadam Oct 30, 2024
659c64c
Update docs/pmm-upgrade/upgrade_docker.md
catalinaadam Nov 7, 2024
c54bc54
Update docs/use/dashboards/dashboard-inventory.md
catalinaadam Nov 7, 2024
4087d65
feedback from Matej
catalinaadam Nov 7, 2024
326ccdd
feedback from Talha
catalinaadam Nov 7, 2024
1b83a68
formatting
catalinaadam Nov 7, 2024
81d4374
formatting
catalinaadam Nov 8, 2024
ebaa365
Merge branch 'PMM3_Beta' into Upgrade_changes
catalinaadam Nov 8, 2024
e5edafd
formatting
catalinaadam Nov 8, 2024
2aae369
Merge branch 'Upgrade_changes' of https://github.com/percona/pmm-doc …
catalinaadam Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build PMM Docs 2.x
name: Build PMM Docs 3.x

on:
push:
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ The documentation source files are in the `docs` directory. (Other files in this

The two major PMM versions are kept in separate branches:
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved

- `main` is for PMM 2.x (latest)
- `PMM3-branch` is for PMM 3.x (latest)
BupycHuk marked this conversation as resolved.
Show resolved Hide resolved

- `main` is for PMM 2.x

- `1.x` is for PMM 1.x

Expand Down Expand Up @@ -159,7 +161,7 @@ View the site at <http://0.0.0.0:8000>

## Version switching

We use [mike] to build different versions of the documentation. Currently, only two are built, the latest PMM 1 and PMM 2 versions.
We use [mike] to build different versions of the documentation. Currently, only two are built, the latest PMM 2 and PMM 3 versions.

A [GitHub actions] workflow runs `mike` which in turn runs `mkdocs`. The HTML is committed and pushed to the `publish` branch. The whole branch is then copied (by an internal Percona Jenkins job) to our web server.

Expand Down
Binary file added docs/Update_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/PMM_Home_Dashboard_Panels_Upgrade.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions docs/alert/index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# About Percona Alerting

!!! alert alert-info "Important"
Percona Alerting is the new Alerting feature introduced in PMM 2.31. This replaces the Integrated Alerting feature available in previous versions.

Alerting notifies of important or unusual activity in your database environments so that you can identify and resolve problems quickly. When something needs your attention, Percona Alerting can be configured to automatically send you a notification through your specified contact points.


PMM 2.31 introduced Percona Alerting which replaces Integrated Alerting in previous PMM versions. In addition to full feature parity, Percona Alerting includes additional benefits like Grafana-based alert rules and a unified, easy-to-use alerting command center on the **Alerting** page.

Percona Alerting is enabled by default in the PMM Settings. This feature adds the **Alert rule templates** option on the main menu and alert template options on the **Alerting** page.

These options enable you to create alerts based on a set of Percona-supplied templates with common events and expressions for alerting.
4 changes: 2 additions & 2 deletions docs/alert/silence_alerts.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ For more information on working with silences, see [About alerting silences](htt

### Template compatibility with previous PMM versions

If you have used Integrated Alerting in previous PMM versions, your custom alert rule templates will be automatically migrated to the new PMM version. After upgrading to the new version, you will find all your alert templates under **Alerting > Alert rule templates**.
If you have used Integrated Alerting in previous PMM 2.31 and earlier, your custom alert rule templates will be automatically migrated to the new PMM version. After upgrading to the new version, you will find all your alert templates under **Alerting > Alert rule templates**.
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved

If you have any templates available in the ``/srv/ia/templates`` folder, make sure to transfer them to ``/srv/alerting/templates`` as PMM 2.31 and later will look for custom templates in this location.
If you have any templates available in the ``/srv/ia/templates`` folder, make sure to transfer them to ``/srv/alerting/templates`` as PMM 3 will look for custom templates in this location.
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved

### Template compatibility with other alerting tools

Expand Down
2 changes: 1 addition & 1 deletion docs/backup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For MySQL databases, you can create and restore on-demand and scheduled physical

### Sharded MongoDB cluster configurations
BupycHuk marked this conversation as resolved.
Show resolved Hide resolved

PMM 2.38 added support for creating backups of sharded MongoDB clusters. However, the restoring process is not handled end-to-end, and requires you to manually restore the artifacts using the CLI in Percona Backup for MongoDB.
PMM 3 supports creating backups of sharded MongoDB clusters. However, the restoring process is not handled end-to-end, and requires you to manually restore the artifacts using the CLI in Percona Backup for MongoDB.


## Start here
Expand Down
2 changes: 1 addition & 1 deletion docs/backup/mongodb-backup/backup_mongo.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PMM supports the following actions for MongoDB backups:

## Sharded clusters

Backups of sharded clusters is supported starting with PMM 2.38. However, restoring for sharded cluster configurations is only supported from the CLI, and is handled via [Percona Backup for MongoDB](https://docs.percona.com/percona-backup-mongodb/usage/restore.html).
PMM 3 supports backing up sharded clusters. However, restoring for sharded cluster configurations is only supported from the CLI, and is handled via [Percona Backup for MongoDB](https://docs.percona.com/percona-backup-mongodb/usage/restore.html).

- Storing backups on Amazon S3-compatible object storage, and on mounted filesystem
- Creating Logical snapshot backups
Expand Down
2 changes: 1 addition & 1 deletion docs/backup/mongodb-backup/mongo_prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Services that do not specify a cluster name should be removed and re-added using

Use `pbm` in manual mode only for restoring sharded cluster backups or other operations that can only be completed via the PBM CLI! Since PMM takes care of the PBM configuration, any unnecessary manual intervention can break the state.

PMM 2.32 and later require PBM 2.0.1 or newer.
PMM 3 and later require PBM 2.0.1 or newer.
2 changes: 1 addition & 1 deletion docs/backup/mongodb-backup/restore_MongoDB_backups.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ To restore to a new cluster manually:

### Restoring from a sharded cluster

Sharded cluster backups are supported starting with PMM 2.38 and PMM handles the backup process end-to-end. However, restoring such artifacts is currently possible only via the CLI, using Percona Backup for MongoDB.
Sharded cluster backups are supported and PMM handles the backup process end-to-end. However, restoring such artifacts is currently possible only via the CLI, using Percona Backup for MongoDB.

For information on restoring sharded backups, check the [PBM documentation](https://docs.percona.com/percona-backup-mongodb/usage/restore.html)
10 changes: 1 addition & 9 deletions docs/how-to/integrate-platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,8 @@ We recommend that you connect with a Percona Account, as this gives you access t
#### Prerequisites
To ensure that PMM can establish a connection to Percona Platform:

### Upgrade to PMM 2.27.0 or later
Before connecting your PMM Server to Percona Platform, make sure you are using PMM version 2.27 or newer. Otherwise, upgrade your PMM installation beforehand.

This is required because, starting with PMM 2.27, Percona Platform has replaced username/password authentication with access token authentication. Access-token authentication increases security and enables federated identity.

This change did not affect existing connections to PMM Platform, which were not automatically terminated.

For more information, see [Install and set up PMM](../setting-up/index.md).

### Check that you are a member of an existing Platform organization

1. Log in to [Percona Platform](https://portal.percona.com) using your Percona Account. If you are connecting via GitHub, make sure you set your email address as **public** in your GitHub account. If your email address is private instead, Percona Platform cannot access it to authenticate you.

2. On the **Getting Started** page, check that the **Create organization** step shows an option to view your organization.
Expand Down
33 changes: 20 additions & 13 deletions docs/how-to/upgrade.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,43 @@
# Upgrade

Client and Server components are installed and updated separately.


## Plan the upgrade order

### Upgrade PMM Server first

Make sure to upgrade the PMM Server before you upgrade the PMM Client.

Ensure that the PMM Server version is higher than or equal to the PMM Client version. Otherwise, there might be configuration issues, thus leading to failure in the client-server communication as PMM Server might not be able to identify all the parameters in the configuration.
Always upgrade the PMM Server before you upgrade the PMM Client.
Ensure that the PMM Server version is equal to or higher than the PMM Client version. Otherwise, configuration issues may arise, potentially causing failures in Client-Server communication, as the PMM Server may not recognize all the configuration parameters.

### Migrating from PMM 2
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved

When upgrading PMM from PMM v2, follow the following staged approach:

For example, for a PMM Server version 2.25.0, the PMM Client version should be 2.25.0 or 2.24.0. If the PMM Client version is 2.26.0, PMM might not work as expected.
1. upgrade to the latest PMM v2 version
2. Proceed to upgrading to PMM 3.

Make sure you have access to the machine where PMM Server:

1. run docker exec -t <pmm-server> supervisorctl stop all to stop all services of pmm-server container
2. run docker exec -t <pmm-server> chown -R pmm:pmm /srv to transfer ownership of all directories and files located in /srv directory to pmm user
3. stop and remove pmm-server container (docker stop pmm-server && docker rm pmm-server )
4. pull a new docker image for PMM Server v3 (once it goes GA, it will be docker pull percona/pmm-server:3 )
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
5. run a new container based on v3 image ( see above) while remembering to pass the same pmm-data volume to it (docker run -d -v pmm-data:/srv ... percona/pmm-server:3 )
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved

catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
### Staged upgrade approach

When upgrading PMM from older versions (2.30.0 and below), we recommend following a staged approach: first, upgrade to version 2.33.0, and then proceed to the latest version.

This sequential upgrading process ensures that PMM's internal components are migrated and updated correctly.

## Update the Server

!!! caution alert alert-warning "Known issues for older versions"
- Upgrading to PMM 2.32.0 from older versions fails. We recommend upgrading directly to2.33 or latest version. For more information, see the [troubleshooting topic](../how-to/troubleshoot.md#pmm-server-fails-while-upgrading).

!!! caution alert alert-warning "Known issue for older versions"
- PMM versions prior to 2.33.0 may not show the latest versions available with instances created from the AWS marketplace in specific environments, including AWS. For solution, see the [troubleshooting](../how-to/troubleshoot.md#pmm-server-not-showing-latest-versions-available-with-the-instances-created-from-aws) section.
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved


Client and server components are installed and updated separately.

PMM Server can run natively, as a Docker image, a virtual appliance, or an AWS cloud instance. Each has its own installation and update steps.

The preferred and simplest way to update PMM Server is with the *PMM Upgrade* panel on the Home page.

![!image](../_images/PMM_Home_Dashboard_Panels_Upgrade.jpg)

The panel shows:

catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
14 changes: 6 additions & 8 deletions docs/pmm-upgrade/index.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# About PMM Server upgrade

!!! caution alert alert-warning "Important"
Upgrade the PMM Server before you upgrade the PMM Client.
Ensure that the PMM Server version is higher than or equal to the PMM Client version. Otherwise, there might be configuration issues, thus leading to failure in the client-server communication as PMM Server might not be able to identify all the parameters in the configuration.

For example, for a PMM Server version 2.25.0, the PMM Client version should be 2.25.0 or 2.24.0. If the PMM Client version is 2.26.0, PMM might not work as expected.
!!! caution alert alert-warning "Upgrade PMM Server before Clients"
- When upgrading PMM, always upgrade the PMM Server before upgrading any PMM Clients.
- Make sure that the PMM Server version is higher than or equal to the PMM Client version. Mismatched versions can lead to configuration issues and failures in Client-Server communication, as the PMM Server may not recognize all parameters in the client configuration.

Find the detailed information on how to upgrade PMM in the following sections:

* [Upgrade PMM Server using the UI](ui_upgrade.md)
* [Upgrade PMM Server from the UI](ui_upgrade.md)

* [Upgrade PMM agent](upgrade_agent.md)
* [Upgrade PMM Client](upgrade_agent.md)

* [Upgrade PMM Server using Docker](upgrade_docker.md)

* [Upgrade from PMM 1](upgrade_from_pmm_1.md)
* [Upgrade from PMM 2](upgrade_from_ppm_2.md)
28 changes: 12 additions & 16 deletions docs/pmm-upgrade/ui_upgrade.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
# Upgrade PMM Server using the UI
# Upgrade PMM v3 Server from the UI

!!! caution alert alert-warning "Caution"
- While upgrading PMM to version 2.32.0, it fails. This issue has been resolved for PMM version 2.33.0. However, the issue persists on all the versions prior to 2.33.0. For solution, see the [troubleshooting](../troubleshoot/upgrade_issues.md) section.
- PMM versions prior to 2.33.0 may not show the latest versions available with instances created from the AWS marketplace in specific environments, including AWS. For solution, see the [troubleshooting](../troubleshoot/upgrade_issues.md#pmm-server-not-showing-latest-versions-available-with-the-instances-created-from-aws) section.
PMM Server and Client components are installed and updated separately.

Client and server components are installed and updated separately.
PMM v3 Server can run natively, as a Docker image, a virtual appliance, or an AWS cloud instance. While each environment has its own specific installation and update steps, the UI-based upgrade method is universal and recommended for most users.

PMM Server can run natively, as a Docker image, a virtual appliance, or an AWS cloud instance. Each has its own installation and update steps.
## Upgrade process

The preferred and simplest way to update PMM Server is with the *PMM Upgrade* panel on the Home page.
The preferred and simplest way to update PMM v3 Server is via the **Updates** page:
{.power-number}

![!image](../_images/PMM_Home_Dashboard_Panels_Upgrade.jpg)
1. Go to **PMM Configuration > Updates** in your PMM web interface. Here you can check the current PMM Server version, the timestamp of the last update check and whether your instance is up-to-date.

The panel shows:
2. If an update is available, click the **Update now** button to install the latest version.

- the current server version and release date;
- whether the server is up to date;
- the last time a check was made for updates.
![Update page](../Update_page.png)

Click the refresh button to manually check for updates.
## Quick upgrade check

If one is available, click the update button to update to the version indicated.
For a quick overview of your PMM v3 Server's update status, you can also check to the **Upgrade** panel on the **Home** page.

!!! seealso alert alert-info "See also"
[PMM Server Docker upgrade](upgrade_docker.md) and [Upgrade PMM agent](upgrade_agent.md)
![PMM Home Dashboard Upgrade Panel](../_images/PMM_Home_Dashboard_Panels_Upgrade.jpg)
50 changes: 45 additions & 5 deletions docs/pmm-upgrade/upgrade_agent.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,50 @@
# Upgrade PMM agent
# Upgrade PMM Client

PMM-Agent can be updated from tarball:
{.power-number}
There are two primary methods to update PMM Clients, depending on your initial installation method:

1. Download `tar.gz` with `pmm2-client`.
2. Extract it.
1. Using your operating system's package manager.
2. Updating from a tarball.

### 1. Package Manager method

The package manager method is generally more convenient and efficient. Percona provides the [percona-release](https://docs.percona.com/percona-software-repositories/installing.html) package, which helps you install Percona software, including the PMM Client. The PMM Client is available from the `pmm-client` repository.

catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
To deploy a new version of the Client via package manager, simply replace the currently installed package with the latest version of the PMM Client or with a specific version.

#### Install the latest PMM Client version

Run the commands below to install the latest PMM Client version via package manager and keep your existing Client configuration during the update process.

For example, to install the latest version of the PMM Client on Red Hat or its derivatives:

```sh
percona-release enable pmm-client
yum update pmm-client
```

#### Deploy a specific version

To deploy a specific version of the PMM Client via package manager, check the available versions and then provide the full name of the package. For example:

```sh
yum --showduplicates search pmm2-client
pmm2-client-2.39.0-6.el9.x86_64 : Percona Monitoring and Management Client (pmm-agent)
pmm2-client-2.40.0-6.el9.x86_64 : Percona Monitoring and Management Client (pmm-agent)
pmm2-client-2.40.1-6.el9.x86_64 : Percona Monitoring and Management Client (pmm-agent)
pmm2-client-2.41.0-6.el9.x86_64 : Percona Monitoring and Management Client (pmm-agent)
pmm2-client-2.41.1-6.el9.x86_64 : Percona Monitoring and Management Client (pmm-agent)
pmm2-client-2.41.2-6.el9.x86_64 : Percona Monitoring and Management Client (pmm-agent)
pmm2-client-2.42.0-6.el9.x86_64 : Percona Monitoring and Management Client (pmm-agent)

yum update pmm2-client-2.41.2-6.el9.x86_64
```
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved

### Tarball method

If you initially installed the PMM Client from a tarball, you can update it by replacing the currently installed package with the latest version:

1. Download `tar.gz` with `pmm-client`.
2. Extract the tarball.
3. Run `./install_tarball` script with the `-u` flag.

!!! caution alert alert-warning "Important"
Expand Down
2 changes: 1 addition & 1 deletion docs/pmm-upgrade/upgrade_aws.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Upgrade PMM Server on AWS

## Change Public IP address
## Change public IP address

To assign a public IP address for an Amazon EC2 instance, follow these steps:
{.power-number}
Expand Down
73 changes: 30 additions & 43 deletions docs/pmm-upgrade/upgrade_docker.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,49 @@
# Upgrade PMM Server using Docker

??? info "Summary"

!!! summary alert alert-info ""
- Stop the running container.
- Backup (rename) the container and copy data.
- Pull the latest Docker image.
- Run it.

---
## Before you begin
{.power-number}

!!! caution alert alert-warning "Important"
Downgrades are not possible. To go back to using a previous version you must have created a backup of it before upgrading.
1. Create a backup before upgrading, as downgrades are not possible. Therefore, reverting to a previous version requires an backup made prior to the upgrade.

!!! hint alert alert-success "Tip"
To see what release you are running, use the *PMM Upgrade* panel on the *Home Dashboard*, or run:
2. Verify your current PMM version: Check your current PMM version by navigating to **PMM Configuration > Updates** or by running the following command. If accessing remotely, replace `localhost` with the appropriate IP address or server name:
matejkubinec marked this conversation as resolved.
Show resolved Hide resolved

```sh
docker exec -it pmm-server \
curl -ku admin:admin https://localhost/v1/version
docker exec -it pmm-server curl -ku admin:admin https://localhost/v1/version
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
```

(If you are accessing the docker host remotely, replace `localhost` with the IP or server name of the host.)

To upgrade PMM Server using Docker:
## Upgrade steps
{.power-number}

1. Stop the current container:

1. Stop the container.

```sh
docker stop pmm-server
```

2. Perform a [backup](#backup).
```sh
docker stop pmm-server
```

2. [Back up your data](../install-pmm/install-pmm-server/baremetal/docker/backup_container.md).

3. Pull the latest image.
3. Pull the latest image:

```sh
docker pull percona/pmm-server:2
```
```sh
docker pull percona/pmm-server:2
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
```

4. Rename the original container
4. Rename the original container:

```sh
docker rename pmm-server pmm-server-old
```
```sh
docker rename pmm-server pmm-server-old
```

5. Run the new container:

5. Run it.
```sh
docker run \
--detach \
--restart always \
--publish 443:443 \
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
--volumes-from pmm-data \
--name pmm-server \
percona/pmm-server:2
catalinaadam marked this conversation as resolved.
Show resolved Hide resolved
```

```sh
docker run \
--detach \
--restart always \
--publish 443:443 \
--volumes-from pmm-data \
--name pmm-server \
percona/pmm-server:2
```
6. After upgrading, verify that PMM Server is running correctly and all your data is accessible.
Loading
Loading