Repository navigation
Manage production's alert rules and Discord contact point from the repository - #1888
Merged
Merged
Conversation
…pository Set the Discord webhook as an encrypted secret in the production stack. This switches on the alerting files that are already in the repository: - Grafana adopts its four existing alert rules and the "Registry Dev" contact point by uid, and from then on they can only be changed through this repository. - "Registry Service Down" starts to watch the scrape state of the registry pods, which can report an outage; the gauge it read before is only ever set to 1. - The two usage collector rules are created: a missed day, and drift between the log-based estimate and the gateway counters. The webhook is the one the contact point already uses, so notifications keep going to the same channel. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The first live production rollout lacks staging coverage and persistently adopts existing Grafana alerting objects, requiring human confirmation of the encrypted webhook destination and rollout readiness.
No open issues 🎉
What changed in this PR
Activates the registry’s existing Grafana alert-provisioning setup in production. Merging triggers a production deployment; no provisioning code or alerting files change.
Changes:
- Adds the encrypted
mcp-registry:alertDiscordWebhooksetting. - Enables adoption of four existing alert rules and the Discord contact point, plus two usage-collector alerts, without changing notification policies.
| File | Description |
|---|---|
deploy/Pulumi.gcpProd.yaml |
Configures the encrypted webhook that activates production alert provisioning. |
Review effort: Balanced
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
Adds
mcp-registry:alertDiscordWebhooktodeploy/Pulumi.gcpProd.yamlas an encrypted secret. Nothing else changes in the repository; the alerting files and the code that provisions them were merged earlier and stay dormant until this key is set.Merging this deploys to production.
What the deploy will do
deploy/README.md).Checked before opening this
go -C deploy test ./...and the deploy script tests pass, including the check that no stack file carries the webhook in plain text.Evidence from earlier work
Not verified before the deploy
After the deploy
Check that Grafana restarted, that six rules and the contact point exist with the original uids and are marked as file-provisioned, that every instance is still Normal, and that Grafana sent no notification during the takeover.