Skip to content

feat(telemetry): fall back to HOST_IP and /etc/hostinfo for OTLP endpoint#963

Open
Pangjiping wants to merge 1 commit into
alibaba:mainfrom
Pangjiping:feat/telemetry-host-ip-fallback
Open

feat(telemetry): fall back to HOST_IP and /etc/hostinfo for OTLP endpoint#963
Pangjiping wants to merge 1 commit into
alibaba:mainfrom
Pangjiping:feat/telemetry-host-ip-fallback

Conversation

@Pangjiping
Copy link
Copy Markdown
Collaborator

Summary

When neither OTEL_EXPORTER_OTLP_METRICS_ENDPOINT nor OTEL_EXPORTER_OTLP_ENDPOINT is set, resolve the node IP from the HOST_IP env var, then from /etc/hostinfo, and point the OTLP/HTTP exporter at <node-ip>:4318 over plaintext. Lets execd and egress emit metrics in environments where only a node IP is available, without requiring callers to template the full endpoint URL.

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

…oint

When neither OTEL_EXPORTER_OTLP_METRICS_ENDPOINT nor
OTEL_EXPORTER_OTLP_ENDPOINT is set, resolve the node IP from the HOST_IP
env var, then from /etc/hostinfo, and point the OTLP/HTTP exporter at
<node-ip>:4318 over plaintext. Lets execd and egress emit metrics in
environments where only a node IP is available, without requiring callers
to template the full endpoint URL.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants