fix: Alert when TPP edge apply lag exceeds 30s - #337
Open
mattdjenkinson wants to merge 1 commit into
Open
Conversation
Measured upstream→edge TPP generation convergence is ~1.5s in staging and ~3.3s in prod. Adopt a 30s SLO (~10x headroom) and alert when cache generation stays ahead of applied generation on an edge. Key features: - TrafficProtectionPolicyApplyLagSLOViolation on nso_extension_tpp_* generation gauges, aggregated per cluster/policy - promtool coverage for lag, in-sync, and brief-skew cases Related to #266.
ecv
approved these changes
Aug 6, 2026
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
Second point on #266 asked us to measure upstream→edge TrafficProtectionPolicy propagation and decide whether it needs an SLO. Generation-bump samples converge in ~1.5s on staging and ~3.3s on prod — well under a 30s budget — so this adopts that SLO and pages when an edge stays behind.
The alert watches the existing extension-server gauges (
nso_extension_tpp_cache_generationvsnso_extension_tpp_applied_generation), aggregated per edge/policy so replica noise does not flap.nowaf-testhelp-d9c5g5portfolio-lmpn0uwaf-test-3gsu2vTest plan
promtool test rulesontest/prometheus-rules/gateways/nso-slo-tests.yaml(lag / in-sync / brief-skew)envoy-gateway-extension-servermetrics (same path as TLS extension alerts)cache > appliedis empty today)Related to #266.