Skip to content

Promote registry v1.8.11 to production and switch on the usage collector - #1886

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

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

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

What

Three lines in deploy/Pulumi.gcpProd.yaml:

  • imageTag 1.8.10 → 1.8.11, and registryRolloutCommit to that release's commit.
  • mcp-registry:usageCollector: "true".

Merging this deploys to production.

What the deploy will do

  1. Roll the registry to 1.8.11. The release has no change to the registry server; it exists so the collector image is published under a release tag. Production runs the collector image with the same tag as the registry's.
  2. Restart Grafana once, with three effects:
    • It adopts the two existing dashboards (Application, Deployment/Critical Issues) from the repository. They become read-only in the UI. This is one-way in practice: removing their provider later deletes them from Grafana.
    • It gains the "Registry usage" data source and the two usage dashboards.
    • The four existing alert rules are not touched; no alerting file is provisioned because alertDiscordWebhook is not set.
  3. Create the collector:
    • database registry_usage on grafana-pg with two roles, and a read-only role on registry-pg;
    • a key for the existing registry-usage-reader service account, with log-viewer on the project;
    • the bucket mcp-registry-prod-usage-backups;
    • a 10 GiB cache volume;
    • two CronJobs: collection at 01:15 UTC, backup at 03:30 UTC.

After the deploy

Start the first run by hand: kubectl -n monitoring create job --from=cronjob/registry-usage-collector usage-first-run. It reads every published version once, then up to 13 days of logs. Until it has run, the two usage dashboards show errors because their tables do not exist yet.

Evidence from staging

  • The same program deployed to staging, including a retire-and-re-enable cycle that kept the history.
  • Scheduled collection and backup both ran unaided; a snapshot from the real bucket restored to a database identical to the live one.
  • All 156 dashboard queries run as the read-only role on staging's data.
  • With the current build, a day holding about seven million access records was read as a sample of about 92,000 in two minutes, at 214 MiB peak for the whole run.

Checked read-only in production before opening this

  • registry-usage-reader exists with no keys and no roles, and the deploy account may create keys for it.
  • The bucket name is free; nothing named registry-usage* exists in the cluster; no registry_usage* role exists in either database.
  • The operator (1.30.1) accepts the four database objects in a server-side dry run, which persisted nothing.
  • Both images exist as 1.8.11 and are publicly pullable.
  • Grafana has no dashboard or data source whose name or uid collides with the new ones.

Not verifiable before the deploy

  • The collector at production volume. The first run has a three-hour limit; if it runs out, the next run continues with the remaining days.
  • Adoption of the two UI-built dashboards on the real instance; it was rehearsed on a local Grafana of the same version, and staging had none to adopt.

Way back

Set mcp-registry:usageCollector: "false" (do not remove the line). Rehearsed in staging: it removes the jobs, credentials, data source and usage dashboards, and keeps the history, the roles and the backups.

v1.8.11 contains no change to the registry server; it exists so that the
usage collector image is published under a release tag. Production runs
the collector image with the same tag as the registry's.

Setting mcp-registry:usageCollector to "true" creates the daily
collector and its backup, the usage history database and its roles, and
the Grafana data source and two dashboards. This is also the first
production deployment since the dashboards were put under version
control, so Grafana restarts and adopts its two existing dashboards.

Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The merge triggers a full production apply with persistent Grafana dashboard ownership changes, while dashboard adoption and production-volume collector behavior remain unverified and require operator review and first-run supervision.

No open issues 🎉

What changed in this PR

Promotes the production registry to v1.8.11 and enables the existing usage-collection infrastructure. Merging this configuration change triggers a production deployment.

Changes:

  • Updates the production image tag and rollout commit to the v1.8.11 release.
  • Enables the daily usage collector, backups, and Grafana usage dashboards.
  • Adds comments explaining that disabling collection requires setting the flag to "false", not removing it.
File Description
deploy/​Pulumi.gcpProd.yaml Promotes the release, enables usage collection, and documents how to disable it.

Review effort: Balanced

@rdimitrov
rdimitrov merged commit 31d9fce into main Nov 21, 2026
10 of 11 checks passed
@rdimitrov
rdimitrov deleted the rdimitrov-registry-usage-dashboard-preview branch November 21, 2026 15:27

This branch had an error being deployed

1 failed deployment
production — c481b754 Deployed Nov 21, 2026 by rdimitrov via Deploy to Production #102
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.

2 participants