Skip to content

feat: envoyproxy health check event logging#9381

Draft
guydc wants to merge 1 commit into
envoyproxy:mainfrom
guydc:feat-hc-logs-fresh
Draft

feat: envoyproxy health check event logging#9381
guydc wants to merge 1 commit into
envoyproxy:mainfrom
guydc:feat-hc-logs-fresh

Conversation

@guydc

@guydc guydc commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Adds support for configuring Envoy health check event logging via the EnvoyProxy API. Health check events (probe outcomes) can be written as JSON to a file sink (defaults to /dev/stdout).

The new healthCheckLog field under spec.telemetry of EnvoyProxy controls which probe outcomes are logged (Failure, FailureTransition, Success, SuccessTransition) and where the events are written.

Internally, the event log config is carried on ir.ActiveHealthCheck.EventLog so it flows naturally through TrafficFeatures into every cluster that has active health checks configured, including filter-created clusters (ext-proc, extauth, etc.) without any extra threading.

Closes #8753

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #


PR Checklist

  • Authorship & ownership: Coding agents / AI assistants are welcome, but I have reviewed every change, understand how and why it works, can explain and maintain it, and take full responsibility for this PR. I have not submitted generated output I do not understand.
  • DCO: All commits are signed off (git commit -s). See DCO: Sign your work.
  • API agreed first: If this PR contains API changes (changes under /api), the API was discussed and agreed before the implementation. The API change can be in a separate PR, or in the same PR, but the API must be agreed before implementation. N/A if this PR does not contain API changes.
  • Required checks pass: make generate gen-check, make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, but gen-check, lint, and coverage MUST pass.)
  • Tests added/updated: New/changed code is covered by appropriate tests. N/A if this PR does not contain code changes.
  • Docs: User-facing changes update the docs, either in this PR or a follow-up PR. N/A if this PR does not contain user-facing changes.
  • Release notes: For any non-trivial change, added a release-note fragment under release-notes/current/<section>/<pr-number>-<slug>.md (see release-notes/current/README.md for sections and naming). N/A if this PR does not contain non-trivial changes.
  • Generated files committed: Ran make gen-check and committed the result if API/helm charts/modules changed.
  • Scope & compatibility: The PR is reasonably scoped (no unrelated changes) and preserves backward compatibility, or any breaking change is called out above and documented in release-notes/current/breaking_changes/.
  • Codex review: Requested a Codex review and addressed all of its comments.
  • Copilot review: Requested a Copilot review and addressed all of its comments.

Adds support for configuring Envoy health check event logging via the
EnvoyProxy API. Health check events (probe outcomes) can be written as
JSON to a file sink (defaults to /dev/stdout).

The new `healthCheckLog` field under `spec.telemetry` of EnvoyProxy
controls which probe outcomes are logged (Failure, FailureTransition,
Success, SuccessTransition) and where the events are written.

Internally, the event log config is carried on ir.ActiveHealthCheck.EventLog
so it flows naturally through TrafficFeatures into every cluster that has
active health checks configured, including filter-created clusters
(ext-proc, extauth, etc.) without any extra threading.

Closes envoyproxy#8753

Signed-off-by: Guy Daich <guy.daich@sap.com>
@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 54564b6
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6a4458b43b40a50008a7a995
😎 Deploy Preview https://deploy-preview-9381--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@guydc guydc mentioned this pull request Jul 1, 2026
11 tasks
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.20290% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.22%. Comparing base (6916245) to head (54564b6).

Files with missing lines Patch % Lines
internal/xds/translator/cluster.go 87.87% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9381      +/-   ##
==========================================
+ Coverage   75.18%   75.22%   +0.03%     
==========================================
  Files         252      252              
  Lines       41037    41088      +51     
==========================================
+ Hits        30854    30907      +53     
+ Misses       8088     8085       -3     
- Partials     2095     2096       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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