db_setup_save
Commit staged DB credentials to the secret store and write a db_profile to enable process list and top queries monitoring.
Instructions
Commit a staged DB credential (from db_setup_scan) to the secret store and write a db_profile, making db_processlist / db_top_queries work for the instance. The password is read from server-side staging by token — never from your context. Mutating: confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Override DB host. | |
| port | No | Override DB port. | |
| user | No | Override DB user. | |
| label | No | App/site label for this DB (e.g. the website), so multiple DBs on one instance don't collide. Defaults to a value derived from the config path the credential came from. | |
| token | Yes | Staging token from db_setup_scan. | |
| engine | No | Override engine (mysql|postgres). | |
| database | No | Override default database. | |
| instance_id | No | Instance to attach the profile to. | |
| password_secret | No | Secret-store key name (default db/<instance>[/<label>]). |