April 2021 Update:
|
1 |
docker exec pmm-server change-admin-password <new_password> |
If you’re automating Percona Monitoring and Management 2 (PMM) deployment with docker, you may want to set a different admin user password upon installation instead of being required to change it upon first login. Here is how you can do it.
After following the PMM2 Docker Installation Instructions, you can run this command:
|
1 |
docker exec -t pmm-server bash -c 'grafana-cli --homepath /usr/share/grafana --configOverrides cfg:default.paths.data=/srv/grafana admin reset-admin-password newpass' |
Where “newpass” is your new desired password and “pmm-server” is the container name you used to deploy PMM, you should see the following output indicating the password was changed successfully:
|
1 |
INFO[01-05|22:01:15] Connecting to DB logger=sqlstore dbtype=sqlite3<br>INFO[01-05|22:01:15] Starting DB migration logger=migrator<br><br>Admin password changed successfully ✔<br> |
That’s it!
Resources
RELATED POSTS