Manage collectors
Your machine (Docker)
Section titled “Your machine (Docker)”Stopping and removing
Section titled “Stopping and removing”dbgorilla collector stop # pause, keeping its identitydbgorilla collector start # resumedbgorilla collector uninstall # remove and deprovision its identitystop is reversible. uninstall is not: it discards the collector’s identity on the server, and reinstalling gives you a new collector rather than the same one back.
There is one exception: if you are signed out, uninstall cannot reach the server, so it removes the local container and leaves the identity and local state in place, then tells you to sign in and run it again. Nothing is orphaned, and the destructive half has not happened yet.
If install says a collector already exists, run dbgorilla collector status first. The error suggests uninstall, but that destroys a working collector to solve a problem you may not have.
Removing the database from DBGorilla
Section titled “Removing the database from DBGorilla”After uninstall, the database stays on Home, marked Disconnected. To remove it:
- Click your name at the bottom of the sidebar, then Admin Portal.
- Open Components.
- Expand the database and click Delete Component.
- Confirm with Delete.
The confirmation says what this does: it permanently removes the component and all of its stored topology and telemetry (metrics, workload, activity), and it cannot be undone.
Day-to-day
Section titled “Day-to-day”dbgorilla collector status # what it is and whether it is connecteddbgorilla collector logs -f # follow the logsdbgorilla collector stop # pause it; the identity is keptdbgorilla collector start # resumedbgorilla collector restartstop and start are reversible. The task stops; the config, the secrets and the identity stay
where they are.
logs reads CloudWatch Logs, so it needs valid AWS credentials. If yours have expired, logs
fails even though the collector is fine.
Removing it
Section titled “Removing it”dbgorilla collector uninstallThis deletes the CloudFormation stack, deprovisions the identity on the server, and clears the local config and secrets. It asks for confirmation first.
If you are signed out, it deletes the stack but keeps the identity and your local state, and tells you to sign in and run it again, so the identity is never left orphaned.
Google Cloud
Section titled “Google Cloud”Day-to-day
Section titled “Day-to-day”dbgorilla collector status # deployment state, and whether it is connecteddbgorilla collector logs -f # follow the container logs from Cloud Loggingdbgorilla collector stop # pause it; the identity is keptdbgorilla collector start # resumedbgorilla collector restartstop scales the instance group to zero and start back to one. Both are reversible; the
config, the secrets and the identity stay where they are.
logs reads Cloud Logging, so it needs valid Google Cloud credentials. If yours have expired,
logs fails even though the collector is fine.
Re-running the install updates a collector in place. dbgorilla collector install --target gcp
re-discovers the database it monitors, so a read replica added since joins its login scope; with
--db-instance-id it moves to another database. Its identity, endpoints, image and networking
stay as they are, and nothing is torn down. A password-auth collector keeps the password already
in Secret Manager; --db-password rotates it, and --db-password "" moves it to IAM
authentication.
dbgorilla collector upgrade # roll to the newest collector imageupgrade changes only the image. Both commands wait for the instance to roll to the new
configuration, and a stopped collector stays stopped through either. Where the collector runs cannot change in place: to move it to another project, VPC or subnetwork, uninstall and install again.
Removing it
Section titled “Removing it”dbgorilla collector uninstallThis deletes the Infrastructure Manager deployment and waits for its resources to go, removes the
secrets the CLI wrote to Secret Manager, deprovisions the identity on the server, and clears the
local config. It asks for confirmation first. If it is interrupted mid-way, the identity has not been deprovisioned: check dbgorilla collector status and run uninstall again.
Kubernetes
Section titled “Kubernetes”Upgrading and removing
Section titled “Upgrading and removing”helm upgrade dbg-collector oci://dbgorillapublic.azurecr.io/charts/dbg-collector \ --namespace databases \ --values ./values.yaml \ --set-file config.inline=./collector.toml
helm uninstall dbg-collector --namespace databaseshelm uninstall removes the workload but does not deprovision the collector’s identity in DBGorilla. To retire a collector permanently, delete it in the app as well. A new install
always means a new collector; the old one does not resume.
CloudNativePG
Section titled “CloudNativePG”Upgrading and removing
Section titled “Upgrading and removing”Same as for Kubernetes. helm uninstall removes the Role and the binding with the rest of the release.