Edit docs for PagerDuty migrator scripts (#662)
* add docs on add_users_pagerduty_to_grafana.py * spelling
This commit is contained in:
parent
e67d3519fe
commit
427c6c95c5
2 changed files with 11 additions and 6 deletions
|
|
@ -37,7 +37,8 @@ pd-oncall-migrator
|
|||
|
||||
Please read the generated report carefully since depending on the content of the report, some PagerDuty resources could not be migrated and some existing Grafana OnCall resources could be deleted.
|
||||
|
||||
Note that users are matched by email, so if there are users in the report with "no Grafana OnCall user found with this email" error, it's possible to fix it by adding these users to your Grafana organization.
|
||||
Note that users are matched by email, so if there are users in the report with "no Grafana OnCall user found with this email" error, it's possible to fix it by adding these users to your Grafana organization.
|
||||
If there is a large number of unmatched users, please also [see the script](scripts/README.md) that can automatically create missing Grafana users via Grafana HTTP API.
|
||||
|
||||
|
||||
### Example migration plan
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# PagerDuty migrator scripts
|
||||
|
||||
When we run MODE="plan" we can notice that there is escalation, integration in pagerduty that needs to be linked to a user.
|
||||
When running the migrator in `plan` mode, it can potentially show that some users cannot be matched (meaning that there are no users in Grafana with the same email as in PagerDuty).
|
||||
|
||||
To solve this problem, we can run the add_users_pagerduty_to_grafana.py script
|
||||
If there is a large number of unmatched users, it can be easier to use the following script that automatically creates missing Grafana users:
|
||||
|
||||
```bash
|
||||
docker run -it --rm -e PAGERDUTY_API_TOKEN="mytoken" -e GRAFANA_URL="http://localhost:3000" -e GRAFANA_USERNAME="admin" -e GRAFANA_PASSWORD="admin" pd-oncall-migrator python /app/scripts/add_users_pagerduty_to_grafana.py
|
||||
docker run --rm \
|
||||
-e PAGERDUTY_API_TOKEN="<PAGERDUTY_API_TOKEN>" \
|
||||
-e GRAFANA_URL="http://localhost:3000" \
|
||||
-e GRAFANA_USERNAME="admin" \
|
||||
-e GRAFANA_PASSWORD="admin" \
|
||||
pd-oncall-migrator python /app/scripts/add_users_pagerduty_to_grafana.py
|
||||
```
|
||||
|
||||
It is worth remembering that this script will create a user with a random password.
|
||||
To access with the user created, it will be necessary to change the password in grafana web.
|
||||
The script will create users with random passwords, so they will need to reset their passwords later in Grafana.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue