Repository navigation
fix(monitoring): keep empty error counters healthy - #9710
Merged
Merged
Conversation
kodjima33
approved these changes
Jul 14, 2026
kodjima33
left a comment
Collaborator
There was a problem hiding this comment.
Monitoring alert-rule fix with a contract test; holding the merge — noDataState changes affect prod alerting, Nik's call.
Stackdriver returns no series when these backend 4xx/5xx counters are zero. The combined Grafana export had drifted to noDataState=Alerting, creating false critical alerts even though the split rule exports were correctly OK. Restore OK for all six backend/backend-sync/backend-integration error-count rules and add a contract test that also detects combined/split export drift. Verified: uv run --with pytest pytest -q backend/tests/unit/test_monitoring_alert_rule_contract.py (2 passed); python3 -m json.tool backend/charts/monitoring/alert-rules.json; make preflight.
Git-on-my-level
force-pushed
the
observability/stackdriver-no-data-hygiene
branch
from
July 14, 2026 16:16
718b633 to
521030e
Compare
Member
Author
|
Rebased onto latest
|
8 tasks
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.
Summary
noDataState: OKfor the six Stackdriver backend/backend-sync/backend-integration 4XX/5XX count alerts in the deployable combined Grafana exportRoot cause and durable guard
Stackdriver returns no series when these error counters are zero. The grouped alert exports correctly treated that as
OK, but a Grafana export sync reset the combined deploy artifact toAlerting. Grafana then raised false criticalNoDataalerts. The contract test checks every affected rule's Stackdriver counter shape and requires the combined and split exports to agree onOK.Verification
uv run --with pytest pytest -q backend/tests/unit/test_monitoring_alert_rule_contract.py— 2 passedpython3 -m json.tool backend/charts/monitoring/alert-rules.jsonmake preflightDeferred / rollout
This is a version-controlled provisioning correction only. It does not mutate remote Grafana, alert routing, workloads, traffic, credentials, or public status. Production application of the reviewed provisioning artifact remains subject to the normal monitoring deployment/change-control path.