Repository navigation
Description
Summary
Follow-up from #154, which brought the Agent CRD in line with ADL schema v0.19.0 by adding OTLP/Prometheus trace + metric exporter configuration. The Orchestrator CRD was intentionally left out of that PR and currently has no telemetry configuration at all - operator-deployed orchestrators cannot emit traces or metrics.
This is not a copy-paste of the Agent mapping. The three workloads read different env var families:
| Workload | Binary / image | Telemetry env prefix |
|---|---|---|
| Agent | Go ADK image | A2A_OTEL_* + A2A_TELEMETRY_ENABLE (added in #154) |
| Gateway | inference-gateway image | TELEMETRY_* (existing) |
| Orchestrator | infer channels-manager CLI |
INFER_* - nothing telemetry-related emitted today |
So the exporter fields most likely map onto INFER_TELEMETRY_* / INFER_OTEL_* vars, and the exact names must be confirmed against the CLI config schema (currently v0.141.0, bumped in 8e2fb44) before the mapping can be written.
Current operator state
api/v1alpha1/orchestrator_types.go-OrchestratorSpechas noTelemetryfield.internal/controller/orchestrator_controller.go-buildOrchestratorEnvironmentVarsemits no telemetry env vars whatsoever.- The shared
TelemetrySpec/MetricsSpec(api/v1alpha1/gateway_types.go:151, already used by Agent + Gateway and extended with the exporter fields in feat: support OTel-aligned telemetry exporters in Agent CRD #154) is the natural type to reuse.
Proposed shape
Reuse the shared, now-OTel-aligned TelemetrySpec on OrchestratorSpec.Telemetry:
spec:
telemetry:
enabled: true
traces:
exporter:
otlp:
endpoint: http://otel-collector:4318
protocol: http/protobuf
metrics:
exporter:
prometheus:
host: 0.0.0.0
port: 9464
# or:
# otlp:
# endpoint: http://otel-collector:4318
# protocol: http/protobuf...then map it in buildOrchestratorEnvironmentVars onto whatever INFER_* telemetry vars the CLI actually reads.
Open questions / dependency
- What telemetry env vars does
infer channels-managerread? TheA2A_OTEL_*names are Go-ADK-specific and almost certainly not what the CLI consumes. This needs verification against the CLI's config schema first. If the CLI exposes no telemetry knobs yet, this issue blocks on adding them upstream before the operator can wire anything up. - Does the CLI expose a single shared OTLP endpoint (like the Go ADK, where traces win and metrics fall back) or per-signal endpoints? Determines whether the traces/metrics OTLP config can diverge.
Acceptance Criteria
- Confirm the
inferCLI's telemetry config surface and env var names (INFER_TELEMETRY_*/INFER_OTEL_*). - Add
Telemetry *TelemetrySpectoOrchestratorSpec(reuse the shared type, or introduce an orchestrator-specific spec if the CLI schema diverges from the OTel-aligned shape). -
buildOrchestratorEnvironmentVarsemits the correspondingINFER_*telemetry env vars. - CRDs + deepcopy regenerated (
task manifests generate) ->config/crd/bases/core.inference-gateway.com_orchestrators.yaml,manifests/{crds,install}.yaml,zz_generated.deepcopy.go. -
config/samples/orchestrator sample +examples/updated with a telemetry block. - Controller tests cover the env var mapping.
- Docs: file a
[DOCS]tracking issue in inference-gateway/docs for the Orchestrator telemetry reference (mirroring the docs follow-up from feat: support OTel-aligned telemetry exporters in Agent CRD #154).
Follow-up from #154.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Jul 16, 2026
@infer Can you implement this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Jul 16, 2026
Model:
ollama_cloud/deepseek-v4-flash· View JobTodos
Pull Request
#157
✅ Infer Result: Success
All tasks are complete - clean working tree, draft PR #157 open on
fix/issue-156, project board updated to QA, and docs tracking issue filed.Model:
ollama_cloud/deepseek-v4-flash· Exit Code:0· Duration: 17m 15sTokens: 16,296,397 in · 29,188 out · 16,325,585 total (111 requests)
Tool calls: 116 total · 88% success rate
Traces
Stats
Triggered by edenreich · Infer Action
inference-gateway-releaser commentedon Jul 17, 2026
🎉 This issue has been resolved in version 0.18.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀