Repository navigation
feat(prober): a failed probe's line says where it went; the soak's echo servers stop logging a line per request (#1391, #1395) - #1461
Merged
Conversation
… client can know (#1391) aether_probe_requests_total has no destination: `node` is the prober's own node, the source, and `target` is the name it asked for. The client cannot name the destination either. On the mesh its connection ends at the node proxy of its own node, and the proxy adds no response header that names its upstream. So the AETHER_PROBE_FAIL line now carries what the client does know, at no cost in series: dial the address of the last connect attempt remote the far end of the connection the request was sent on local this end of it (the access log's downstream_remote_address) trace_id the trace id of the traceparent header the probe sent trace_id is the key to the proxies' own rows for that request. The trace id and not the whole header: a proxy with tracing on writes its own span id into the header at every hop, also for a not-sampled request. Two rows of one probe, read from a test cluster's access logs, share the trace id and differ in the span id, so a search for the header as sent finds nothing. Every key is present on every detail line; all four are empty for a probe that was never sent. The metric's description and the runbook now say that `node` is the source. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…ut line per request (#1395) echo-basic and http-echo print one stdout line per request and have no switch for it; their images have no shell. During a soak that is every probe and every loader request, shipped to the log store beside the access-log row the mesh already writes for the same request. An init container copies a static busybox into an emptyDir as `sh`, and the server is exec'd through it with stdout on /dev/null. It is still PID 1 and stderr is kept. With the two images under plain docker, 20 requests each: echo-basic 22 stdout lines before and none after, http-echo 20 and none. svc-1 to svc-5 are echo-basic too and are not defined in this repository; the README says what to copy to them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
There was a problem hiding this comment.
🟡 Changes recommended
Both quiet-shell init containers lack permission to write into their root-owned emptyDir volumes.
2 open findings
What changed in this PR
Adds destination diagnostics to failed prober logs and suppresses soak echo-server stdout.
Changes:
- Records connection addresses and trace IDs for access-log correlation.
- Adds destination-focused tests and documentation.
- Wraps soak echo servers with a quiet shell.
| File | Description |
|---|---|
prober/internal/prober/prober.go |
Generates and logs probe trace IDs. |
prober/internal/prober/phase.go |
Captures connection endpoint details. |
prober/internal/prober/faillog.go |
Documents new failure fields. |
prober/internal/prober/destination_test.go |
Tests destination diagnostics. |
prober/internal/prober/BUILD.bazel |
Registers new tests. |
e2e/soak/README.md |
Documents diagnostics and quiet servers. |
e2e/soak/echo.yaml |
Adds stdout suppression wrapper. |
e2e/soak/multiprotocol.yaml |
Quiets the HTTP echo container. |
docs/runbook.md |
Adds failure-correlation procedure. |
docs/configuration.md |
Updates failure-log schema. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.

Closes #1391
Closes #1395
The second half of a six-issue task; #1458 has the other four (#1390, #1418, #1419, #1423). The two do not depend on each other and merge in either order (checked: no conflict).
A failed probe's destination (#1391)
aether_probe_requests_totalhas no destination. Itsnodeis the node the prober runs on, the source, andtargetis the name it asked for. A destination label would be a series per endpoint, so the metric stays as it is and its description now says thatnodeis the source.The client cannot name the destination either. On the mesh its connection ends at the node proxy of its own node, and the proxy adds no response header that names its upstream. So the
AETHER_PROBE_FAILline gets what the client does know, which costs no series:dialremote127.0.0.1:18081for liveness and reachability, the mesh Service address for mesh_dns. Never the pod that would have answeredlocaldownstream_remote_addresstrace_idtraceparentheader the probe senttrace_idis the key to the proxies' own rows for that request:The source proxy's row has the endpoint it chose (
upstream_host); areporter:destinationrow on another node means the request arrived there. A probe that failed indnsorconnecthas no row, anddialis all there is. The runbook has the procedure ("Where a failed probe went").All four keys are on every detail line, and empty for a probe that was never sent (
saturated).Why the trace id and not the header. The saved work printed the whole
traceparentand documented an exact-match search for it. That search would have found nothing: a proxy with tracing on writes its own span id into the header at every hop, also for a request marked not-sampled. Two rows of one probe, read from a test cluster's access logs:Same trace id, different span id. The line now prints
trace_idalone and the documented search is by prefix; a test fails if atraceparentkey comes back.Quiet test servers (#1395)
echo-basic(e2e/soak/echo.yaml) andhttp-echo(mixed-svcine2e/soak/multiprotocol.yaml) print one stdout line per request and have no switch for it, and their images have no shell. An init container copies a static busybox (pinned by digest) into anemptyDirassh, and the server isexec'd through it with stdout on/dev/null. It is still PID 1; stderr is kept. Deletingcommand:brings the lines back.svc-1tosvc-5areecho-basicas well and are not defined in this repository, so this change cannot quiet them. The README says what to copy to them. Until that is done, they still log a line per request.These are soak manifests, not chart files: no chart version changes.
Evidence
Measured:
Tests first: the new tests run against
main's prober code fail, six of six (fail line has no string "trace_id","dial","remote"). With the change,bazel test //prober/...passes, and--config=raceon//prober/internal/prober:prober_test.Each field has a test that fails without it. Five mutations, one at a time, each put back: the dial address not recorded (2 tests fail),
remotegiven the local address (3),localnot recorded (2), a constant trace id (3), no trace id on a transport failure (2).TestFailLineJoinsTheAccessLog: a server standing in for the proxy records thetraceparentand the peer address it saw; the line'strace_idandlocalmust equal them.The two access-log rows above, and that a prober row's
downstream_remote_addressis the prober pod'sip:portand itsdownstream_local_addressthe Service address: read-only queries of a test cluster's log store, for probes that succeeded.The quiet start, with the two images under plain docker, run as the manifests run them (same user, read-only root, the busybox copied by the init step), 20 requests each:
bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...,make format-check,make gazelle(no change).Inferred, not measured:
Not verified:
trace_idis not deployed anywhere yet; the rows above are of probes that succeeded.emptyDirand the pod security context together were not run under a kubelet.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr