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 all 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
8 changes: 4 additions & 4 deletions .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 Expand Up @@ -43,6 +43,6 @@ jobs:
# Builds Material-themed static web site in 'preview' branch
- name: Build a themed site (2.x)
run: |
PATH=$PATH:_resources/bin mike deploy 2.x -b preview
mike set-default 2.x -b preview
mike retitle 2.x "PMM 2.x (LATEST)" -b preview
PATH=$PATH:_resources/bin mike deploy 3.x -b preview
mike set-default 3.x -b preview
mike retitle 3.x "PMM 3.x (LATEST)" -b preview
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ We use [MkDocs] to convert [Markdown] files into a static HTML website (or [PDF]

The documentation source files are in the `docs` directory. (Other files in this repo are explained in [Directories and files](#directories-and-files).)

The two major PMM versions are kept in separate branches:
The three major PMM versions are kept in separate branches:

- `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.
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.
10 changes: 6 additions & 4 deletions docs/alert/silence_alerts.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Silence alerts

Create a silence when you want to suppress/stop alerts and their associated notifications for a very specific amount of time.
Silences default to today’s current date and have a default duration of two hours.
Silences default to today’s current date and have a default duration of two hours.

You can also schedule a silence for a future date and time. This is referred to as a `Pending` silence, which can be observed on the Silences page.

Expand All @@ -14,6 +14,7 @@ Silenced alerts are still recorded under **Alerting > Fired Alerts** so that you
You can silence an alert by creating a silence from the **Silences** page. Here you define labels that match the alert that you want to silence.

To create a new silence:
{.power-number}

1. Click the **Create silence** button.
2. Select the start and end date to indicate when the silence should go into effect and expire.
Expand All @@ -27,15 +28,16 @@ For more information on working with silences, see [About alerting silences](htt

## Alerting compatibility

### Template compatibility with previous PMM versions
### Template compatibility with PMM 2

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**.
After upgrading from the latest PMM 2 version to PMM 3, you will find all your alert templates under **Alerting > Alert rule templates**.

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.

### Template compatibility with other alerting tools

If you have existing YAML alert templates that you want to leverage in Percona Alerting:
{.power-number}

1. Go to **Alerting > Alert rule templates** tab and click **Add template** at the top right-hand side of the table.
2. Upload a local .yaml file that contains the definition of one or more alert templates then click **Add**. Alert templates added in bulk will be displayed individually on **Alert rule templates** page.
Expand Down
7 changes: 2 additions & 5 deletions docs/annotate/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# PMM annotation

!!! alert alert-info ""
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, PMM automatically sends you an alert through your specified contact points.

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, PMM automatically sends you an alert through your specified contact points.
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/create_PITR_mongo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Point-in-Time Recovery helps you prevent data loss during a disaster such as cra
PMM introduced the option to create PITR Backups for MongoDB in version 2.23, as part of the larger Backup Management feature. This implementation in PMM uses Percona Backup for MongoDB (pbm) behind the scenes.

Percona Backup for MongoDB is a distributed, low-impact solution for achieving consistent backups of MongoDB sharded clusters and replica sets.
Starting with PMM 2.32, restoring PITR backups is available for backups based on pbm ≤ 2.0.1. To restore PITR backups, make sure you have pbm ≥ 2.0.1 installed.
Restoring PITR backups is available for backups based on pbm ≤ 2.0.1. To restore PITR backups, make sure you have pbm ≥ 2.0.1 installed.

Percona Backup for MongoDB supports [Percona Server for MongoDB](https://www.percona.com/software/mongodb/percona-server-for-mongodb) and MongoDB Community ≤ 3.6, with [MongoDB Replication](https://docs.mongodb.com/manual/replication/) enabled. For more information, see the [Percona Backup for MongoDB documentation](https://docs.percona.com/percona-backup-mongodb/installation.html).

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/mongodb_limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Creating and restoring MongoDB backups in PMM currently has the following limita

- Physical backups and restores are supported only for **Percona Server for MongoDB**.
- Physical restores are not supported for deployments with arbiter nodes. For more information, see the [Percona Backup for MongoDB documentation](https://docs.percona.com/percona-backup-mongodb/usage/restore.html#physical-restore-known-limitations).
- Creating backups for sharded clusters was included in PMM 2.38 and is available straight from the UI. However, restoring these backup artifacts is only possible 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).
- Creating backups for sharded clusters is available straight from the UI. However, restoring these backup artifacts is only possible 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).
- Retention policy is supported only for snapshot types of scheduled backups and for the S3-compatible storage type.
- Before restoring, make sure to prevent clients from accessing the database.

Expand Down
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: 5 additions & 5 deletions docs/how-to/extend-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ The collector is enabled by default. The following folders are used for differen

| Resolution | Folder |
|------------|---------------------------------------------------------------------------|
| High | `/usr/local/percona/pmm2/collectors/textfile-collector/high-resolution` |
| Medium | `/usr/local/percona/pmm2/collectors/textfile-collector/medium-resolution` |
| Low | `/usr/local/percona/pmm2/collectors/textfile-collector/low-resolution` |
| High | `/usr/local/percona/pmm/collectors/textfile-collector/high-resolution` |
| Medium | `/usr/local/percona/pmm/collectors/textfile-collector/medium-resolution` |
| Low | `/usr/local/percona/pmm/collectors/textfile-collector/low-resolution` |

![!image](../_images/node-exporter.textfile-collector.1.png)

Expand All @@ -23,14 +23,14 @@ Metrics are stored on the PMM Server-side with additional labels related to this
To statically set roles for a machine using labels:

```sh
echo 'node_role{role="my_monitored_server_1"} 1' > /usr/local/percona/pmm2/collectors/textfile-collector/low-resolution/node_role.prom
echo 'node_role{role="my_monitored_server_1"} 1' > /usr/local/percona/pmm/collectors/textfile-collector/low-resolution/node_role.prom
```

Here's an example of a `cron` job that automatically pushes logged-in users:

```sh
$ cat /etc/cron.d/loggedin_users
*/1 * * * * root /usr/bin/who | /usr/bin/wc -l | sed -ne 's/^/node_loggedin_users /p' > /usr/local/percona/pmm2/collectors/textfile-collector/high-resolution/node_users.prom
*/1 * * * * root /usr/bin/who | /usr/bin/wc -l | sed -ne 's/^/node_loggedin_users /p' > /usr/local/percona/pmm/collectors/textfile-collector/high-resolution/node_users.prom
```

![!image](../_images/node-exporter.textfile-collector.2.png)
Expand Down
18 changes: 3 additions & 15 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 Expand Up @@ -59,20 +51,16 @@ To disconnect a PMM Server, go to > <i class="uil uil-cog"></i> **Configuration

In situations where you are not able to disconnect servers yourself, ask your PMM Admin to disconnect the server for you. For example, you may not be able to disconnect servers when PMM is moved to a network segment without outbound connections to public networks.


!!! note alert alert-primary "Availability"
This feature is available starting with PMM 2.29.0.

If you cannot disconnect servers yourself, ask your PMM Admin to disconnect the server for you. For example, you may not be able to disconnect servers when PMM is moved to a network segment without outbound connections to public networks.

If you are a PMM Admin, you can terminate any connections to Percona Platform, even if you are not logged into PMM with a Percona Account. However, we recommend logging in with a Percona Account before disconnecting servers, as this will automatically remove the disconnected servers from Percona Platform as well.

If you do disconnect servers without being connected with a Percona Account, you'll have to manually remove the unavailable servers from Percona Platform. This ensures that your list of connected PMM instances stays up-to-date in Percona Platform.
If you do disconnect servers without being connected with a Percona Account, you'll have to manually remove the unavailable servers from Percona Platform. This ensures that your list of connected PMM instances stays up-to-date in Percona Platform.

To do this, go to [PMM instances](https://portal.percona.com/login), and remove any servers that you have already disconnected from PMM.


## Sign into PMM with your Percona Account

Once you've successfully connected your PMM instance to the Percona Platform, you can also sign into PMM using your Percona Account:

1. Log out of your existing PMM session.
Expand Down
64 changes: 0 additions & 64 deletions docs/how-to/upgrade.md

This file was deleted.

Loading
Loading