Skip to content

fix(monitoring): drop the exporter probe block the chart never reads - #12150

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/exporter-probe-values-are-inert
Aug 24, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/exporter-probe-values-are-inert

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Summary

The probe block I added in #12146 is inert. prometheus-stackdriver-exporter hardcodes 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: 2Gi limits and was still serving timeoutSeconds: 10.

limits: {'cpu': '2', 'memory': '2Gi'} | liveness timeout: 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

  • Remove livenessProbe/readinessProbe from 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.
  • Invert the contract test: it now asserts these keys are absent, so re-adding an inert block fails with the reason. Negative proof — appending livenessProbe: {timeoutSeconds: 25} fails with this 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-down is what will say so.

Verification

  • test_monitoring_telemetry_contract.py: 26 passed.
  • Live confirmation that the removed block was inert, quoted above.
  • Chart templates inspected at 4.8.3, 4.9.0 and 5.0.0: probes hardcoded in all three, no values key.

Product invariants affected

  • INV-DATA-1

Monitoring-only; no serving authority is touched.

Failure-Class: FC-bridge-liveness-without-data-path-proof

Review in cubic

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.
@Git-on-my-level
Git-on-my-level merged commit 3872687 into main Aug 24, 2026
35 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/exporter-probe-values-are-inert branch August 24, 2026 15:19
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.

1 participant