From 9922bff292833acec6f1531c1f3bb7eabbee7b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B0=E3=83=AA=E3=82=A2=E3=83=B3=E3=83=89=E3=83=AD?= Date: Fri, 1 Dec 2023 12:15:57 -0300 Subject: [PATCH] Update alerting.md (#1175) The "Migrate Alert Rules" commands (python and pip) were incorrect, since they didn't run on a stock PMM docker environment. Updated to python3 and pip3. --- docs/get-started/alerting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/get-started/alerting.md b/docs/get-started/alerting.md index 1dd9aa93fc..6fbc2bcdd0 100644 --- a/docs/get-started/alerting.md +++ b/docs/get-started/alerting.md @@ -343,14 +343,14 @@ After upgrading to PMM 2.31, make sure to manually migrate any alert rules that The default command for migrating rules is: ```yaml -*python ia_migration.py -u admin -p admin* +python3 ia_migration.py -u admin -p admin ``` To see all the available options, check the scrip help using `ia_migration.py -h` ##### Script prerequisites - Python version 3.x, which you can download from [Python Downloads centre](https://www.python.org/downloads/). -- [Requests library](https://requests.readthedocs.io/en/latest/user/install/#install), which you can install with the following command: ```pip install requests```. +- [Requests library](https://requests.readthedocs.io/en/latest/user/install/#install), which you can install with the following command: ```pip3 install requests```. !!! caution alert alert-warning "Important" The script sets all migrated alert rules to Active. Make sure to silence any alerts that should not be firing.