new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Grafana dashboards · all subjects

cli/admin commands

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Grafana CLI admin reset-admin-password command

The command grafana cli admin reset-admin-password <new password> resets the password for the admin user using the CLI. By default it uses the default admin user ID of 1. The --user-id flag can be used to specify a different user ID. If the admin user cannot be found, the command returns a list of current admin users with their usernames and IDs.

Grafana CLI admin data-migration encrypt-datasource-passwords command

The command grafana cli admin data-migration encrypt-datasource-passwords migrates passwords from unsecured fields to the secure_json_data field. It returns 'ok' unless there is an error. It is safe to execute multiple times. Example: grafana cli admin data-migration encrypt-datasource-passwords

Grafana CLI availability of admin commands

Admin commands are only available in Grafana 4.1 and later.

Grafana CLI reset admin password Homebrew example

For Grafana installed using Homebrew, the admin password can be reset with: /opt/homebrew/opt/grafana/bin/grafana cli --config /opt/homebrew/etc/grafana/grafana.ini --homepath /opt/homebrew/opt/grafana/share/grafana --configOverrides cfg:default.paths.data=/opt/homebrew/var/lib/grafana admin reset-admin-password <new password>

Grafana CLI reset admin password Grafana Operator with external database

For Grafana deployed with Grafana Operator using an external PostgreSQL or MySQL database, both homepath and configuration file must be specified: grafana cli --homepath /usr/share/grafana --config /etc/grafana/grafana.ini admin reset-admin-password <new password>. Without this, the CLI will not see database connection information and will configure the default SQLite database instead.

Give your agent this brain