Repository navigation
Retire the usage collector in staging to rehearse switching it off - #1881
Merged
Merged
Conversation
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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Sets
mcp-registry:usageCollectorto"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
registry_usagedatabase with its 12 stored days, the three database roles, and the backup bucket with its snapshot.What will be checked afterwards
"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.yamlis unchanged.