oncall-engine/tools/pagerduty-migrator/scripts
Joey Orlando c08eeb72a3
add precommit rules for markdown/json files (#915)
* add markdownlint precommit steps + fix existing errors

* prettier json linting
2022-12-01 14:26:54 +01:00
..
add_users_pagerduty_to_grafana.py PagerDuty migrator minor improvements (#659) 2022-10-18 15:32:07 +01:00
README.md add precommit rules for markdown/json files (#915) 2022-12-01 14:26:54 +01:00

PagerDuty migrator scripts

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).

If there is a large number of unmatched users, it can be easier to use the following script that automatically creates missing Grafana users:

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

The script will create users with random passwords, so they will need to reset their passwords later in Grafana.