Publicado em: 03/Jan/2020
Atualizado em: 03/Jan/2020

Grafana: Reset da senha do admin

Iniciar os containers

1cd /opt/docker/docker-compose-influxdb-grafana
2docker-compose up -d

Localizar o id do container do ‘/run.sh’

1docker ps -a
2CONTAINER ID IMAGE                  COMMAND                  CREATED       ...
3265059f8820a grafana/grafana:latest "/run.sh"                6 seconds ago ...
4637c3d25845f chronograf:latest      "/entrypoint.sh chro…"   6 seconds ago ...
521b3a8d77cae influxdb:latest        "/entrypoint.sh infl…"   7 seconds ago ...

Abrir um shell no container do run.sh (265059f8820a)

1docker exec -ti 265059f8820a bash

Trocar a senha usando o grafana-cli

1   
2bash-5.0$ grafana-cli admin reset-admin-password aqui-vai-a-nova-senha
3INFO[01-03|16:34:42] Connecting to DB      logger=sqlstore dbtype=sqlite3
4INFO[01-03|16:34:42] Starting DB migration logger=migrator
5
6Admin password changed successfully ✔

Referências

comments powered by Disqus