Skip to content

Retire the usage collector in staging to rehearse switching it off - #1881

Merged
rdimitrov merged 1 commit into
mainfrom
rdimitrov-registry-usage-dashboard-preview
Nov 20, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
rdimitrov-registry-usage-dashboard-preview

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

What

Sets mcp-registry:usageCollector to "false" in staging. A follow-up pull request sets it back to "true" as soon as this has been checked.

Why

Switching the collector off is the way back if it misbehaves in production. That path has only been rehearsed against a local Grafana. This runs it once in a real cluster, with a verified backup of the staging history already in the bucket.

What should happen on deploy

  • Removed: both CronJobs, the collector's Secrets, the cache volume, the service account key and its log-viewer grant, the Grafana data source and the two usage dashboards. Grafana restarts once.
  • Kept: the registry_usage database with its 12 stored days, the three database roles, and the backup bucket with its snapshot.

What will be checked afterwards

  • Each item above, read-only, in staging.
  • Then, after setting the flag back to "true": that the operator takes over the existing roles and database with new passwords, and that a collector run and the dashboards work again on the retained history.

Production is not affected; deploy/Pulumi.gcpProd.yaml is unchanged.

Set the staging flag to "false" so the retirement path runs once in a
real cluster before production depends on it: the workload, its
credentials and the Grafana data source, dashboards and rules are
removed, while the history database, its roles and the backup bucket
stay. A follow-up sets it back to "true".

Co-authored-by: Copilot App <[email protected]>
@rdimitrov
rdimitrov merged commit 6e84072 into main Nov 20, 2026
9 checks passed
@rdimitrov
rdimitrov deleted the rdimitrov-registry-usage-dashboard-preview branch November 20, 2026 22:30
rdimitrov added a commit that referenced this pull request Nov 20, 2026
## What

Sets `mcp-registry:usageCollector` back to `"true"` in staging, after
the retirement rehearsal in #1881.

## What #1881 showed (checked read-only in staging)

- Removed: both CronJobs, every collector Secret, the cache volume, the
priority class, the dashboard ConfigMaps, the three `DatabaseRole`
objects and the `Database` object, the service account key and the
log-viewer grant.
- Grafana restarted cleanly, deleted the "Registry usage" data source
and no longer lists the two usage dashboards.
- Kept: the service account itself, the backup bucket with its snapshot,
the three PostgreSQL roles, and the `registry_usage` database with all
12 stored days.

## What this one should show

- The operator takes over the existing roles and database from new
`DatabaseRole` and `Database` objects, with new passwords.
- A new service account key and the log-viewer grant are created.
- Grafana gets the data source and the two dashboards back.
- A collector run works against the kept history and collects only what
is missing.

Production is not affected; `deploy/Pulumi.gcpProd.yaml` is unchanged.

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant