Repository navigation
fix(monitoring): drop the exporter probe block the chart never reads - #12150
Merged
Merged
Conversation
prometheus-stackdriver-exporter hardcodes livenessProbe and readinessProbe in its Deployment template with a fixed 10s timeout and exposes no values key for either, in 4.8.3 and every later 4.x. The probe block added in #12146 therefore renders nothing. The live dev reconcile is what showed it: the exporter picked up the new cpu: 2 / memory: 2Gi limits and kept serving timeoutSeconds: 10. A stanza that reads as configuration, changes nothing, and reverts silently is worse than none, and the contract test asserting it could never have failed for a real reason. Remove both blocks, record that the chart owns the probes and that CPU is the only lever over probe survival, and invert the test so re-adding an inert block fails with that reason. Capacity was always the operative half of #12146 and still stands: the probes hit '/', so they only time out when the process is starved.
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
The probe block I added in #12146 is inert.
prometheus-stackdriver-exporterhardcodes both probes in its Deployment template —path: /,timeoutSeconds: 10— and exposes no values key for them. I confirmed it renders identically in 4.8.3, 4.9.0, and 5.0.0.Caught it on the live cluster rather than by reading the chart: after the dev egress reconcile the exporter had picked up the new
cpu: 2/memory: 2Gilimits and was still servingtimeoutSeconds: 10.So #12146 shipped a stanza that reads as configuration, renders nothing, and would revert silently on any upgrade — and a contract test asserting a value that never reaches a cluster. That is the same defect this whole thread has been about, in the fix for it: a declaration that looks satisfied everywhere except where it has to take effect.
Changes
livenessProbe/readinessProbefrom both exporter values files, replaced by a comment recording that the chart owns them and that CPU is therefore the only lever over probe survival.livenessProbe: {timeoutSeconds: 25}fails withthis block would be inert.What this does not change
The fix in #12146 still holds, because capacity was always the operative half. Both probes hit
/, which is trivial to serve; they only time out when the process is starved, which is exactly what a 200m limit did with a collection in flight and steady-state usage of 238m. With headroom an in-cluster scrape completes in ~4.8s against the fixed 10s budget, and prod has held for 25+ minutes at 0 restarts.The residual risk is real and worth stating: the 10s probe budget is now fixed and unadjustable, so a slow Cloud Monitoring day or continued growth in Cloud Run series can still push a collection past it. The levers left are fewer series or a narrower prefix, not a longer timeout.
omi-cloud-run-egress-downis what will say so.Verification
test_monitoring_telemetry_contract.py: 26 passed.Product invariants affected
Monitoring-only; no serving authority is touched.
Failure-Class: FC-bridge-liveness-without-data-path-proof