Repository navigation
feat(orchestrator): add OTel-aligned telemetry support to Orchestrator CRD - #157
Conversation
…r CRD Add Telemetry *TelemetrySpec to OrchestratorSpec, reusing the shared OTel-aligned type from gateway_types.go. Map it onto INFER_TELEMETRY_* env vars consumed by the infer channels-manager CLI (single shared OTLP endpoint, traces wins over metrics). Regenerate CRDs, deepcopy, and manifests. Update config/samples/ and examples/ with a telemetry block. Add controller tests covering nil/disabled/enabled telemetry, traces/metrics OTLP fallback, and integration through buildOrchestratorEnvironmentVars.
|
@infer CI is failing, can you fix this? |
|
Model: Todos
Pull Request
|
Fixes gofmt issue in orchestrator_controller_test.go where struct literal fields had extra tabs. This was causing both the Lint and Generate & Verify Clean State CI checks to fail.
….20.1 output The CI's controller-gen v0.20.1 generates RBAC YAML with 4-space indentation for list items under rules. This commit updates config/rbac/role.yaml to match that format, fixing the Generate & Verify Clean State CI check.
|
@infer Can you check why we have changes in the generated manifests? are you missing any tools? like prettier? |
|
Model: Todos
Pull Request✅ Infer Result: SuccessClean - everything is committed and pushed. Here's the answer to your question: Why the generated manifests have changesThe changes in the generated manifests ( About prettierThe project does use prettier - it's called in Additional fix appliedI discovered a separate bug: Model: Tokens: 2,978,591 in · 19,427 out · 2,998,018 total (56 requests) Tool calls: 61 total · 93% success rate TracesStats
|
….20.1 output The previous fix (05052be) applied the wrong indentation format - it changed FROM the v0.20.1 format (0-space indent for list items under rules) TO the old format (2-space indent). Controller-gen v0.20.1 generates 0-space indent for list items under rules. This commit corrects that by regenerating config/rbac/role.yaml with the actual controller-gen v0.20.1 output.
|
@infer CI is failing - can you fix this? |
|
Model: Todos
Pull Request✅ Infer Result: SuccessThe CI was failing because Model: Tokens: 494,705 in · 2,290 out · 496,995 total (17 requests) Tool calls: 18 total · 100% success rate TracesStatsTriggered by edenreich · Infer Action |
|
@claude Is it ready for merge? can you review this? use /ponytail:ponytail /ponytail:ponytail-review |
|
Claude finished @edenreich's task in 4m 31s —— View job Review: OTel telemetry for Orchestrator
Verdict: one fix, then ship. The Go code is correct, well-tested, and lean - it reuses the shared Fix before merge - samples oversell what the orchestrator wires upBoth telemetry:
enabled: true
traces:
exporter:
otlp:
endpoint: http://otel-collector:4318
protocol: http/protobuf # dropped
metrics:
exporter:
prometheus: # entirely dropped
host: 0.0.0.0
port: 9464But
The Prometheus block is doubly misleading: the Orchestrator creates no Service (per CLAUDE.md it's outbound-only), so there is nothing to scrape on Trim both samples to what the controller actually consumes - Ponytail (over-engineering) passThe Go code is lean - nothing to cut:
Only deletion is the dead sample config above. Smaller notes (non-blocking)
Bottom line: functionally mergeable - correct code, good tests, green CI. I'd trim the misleading Prometheus/protocol lines from the two samples first so the shipped examples match what the controller does; that's a docs-only change, not a code bug. |
|
@claude Can you fix this? |
|
Claude finished @edenreich's task in 2m 40s —— View job Fixed: orchestrator telemetry samples now match the controllerTrimmed both samples so they advertise only what
What both samples now show: telemetry:
enabled: true
traces:
exporter:
otlp:
endpoint: http://otel-collector:4318Notes
Merge-ready now. The one earlier non-blocking item worth a human glance: the CLI contract was validated against infer CLI v0.141.0 and the branch since bumped to v0.147.1 (#159) - worth confirming |
|
@claude Can you create the follow-up feature request to implement metrics push (otlp) from the cli ? |
|
Claude finished @edenreich's task in 7m 30s —— View job Follow-up feature request filed: inference-gateway/cli#921
What the request capturesI checked the CLI source before writing it, because "implement metrics push (otlp)" is partly already done and I didn't want a duplicate:
The issue asks to wire the daemon path to the existing telemetry engine (no new config), references the prior art (#842, #893), links back to this PR and operator #156, and flags one open question: whether spawned No changes were made to this PR - this was a tracking-issue request only. |
Co-authored-by: Eden Reich <[email protected]>
|
@claude the metrics push approach via otlp is now supported in the latest version of the cli can you finalize the implementation? use /ponytail:ponytail |
|
Claude finished @edenreich's task in 11m 17s —— View job Finalize orchestrator OTLP metrics push
Result: the operator wiring was already complete - metrics push works todayI checked the CLI source at the pinned version and confirmed the daemon now consumes exactly what the operator already emits. cli#921 (closed/completed) wired the // inference-gateway/cli cmd/channels.go
tel := telemetry.New(telemetry.Options{
Enabled: cfg.Telemetry.Enabled, // INFER_TELEMETRY_ENABLED
OTLPEndpoint: cfg.Telemetry.OTLP.Endpoint, // INFER_TELEMETRY_OTLP_ENDPOINT
OTLPHeaders: cfg.Telemetry.OTLP.Headers, // optional
OTLPInterval: ..., // optional, default 60s
})The CLI's This also resolves the earlier open question (contract validated against v0.141.0, branch since bumped to v0.147.1): the What changed (
|
## [0.18.0](v0.17.1...v0.18.0) (2026-07-17) ### ✨ Features * **orchestrator:** add OTel-aligned telemetry support to Orchestrator CRD ([#157](#157)) ([e06484e](e06484e)) * support OTel-aligned telemetry exporters in Agent CRD ([#154](#154)) ([f28d85c](f28d85c)), closes [#153](#153) ### 👷 CI * **claude:** centralize claude.yml via reusable workflow ([#151](#151)) ([8cb48d5](8cb48d5)) * **deps:** bump golang.org/x/crypto ([#145](#145)) ([0a0172f](0a0172f)) * **deps:** bump golang.org/x/crypto ([#146](#146)) ([4eb7a02](4eb7a02)) * **infer:** centralize infer.yml via reusable workflow ([#148](#148)) ([9610fde](9610fde)) * **infer:** centralize infer.yml via reusable workflow ([#149](#149)) ([7e2584e](7e2584e)) * install prettier in infer/claude agent runs ([#158](#158)) ([18b11b4](18b11b4)), references [inference-gateway/.github#111](inference-gateway/.github#111) ### 🔧 Miscellaneous * **deps:** bump claude-code 2.1.197 -> 2.1.201 ([#141](#141)) ([8fe274a](8fe274a)) * **deps:** bump claude-code-action v1.0.165 -> v1.0.169 ([#150](#150)) ([0383d9c](0383d9c)) * **deps:** bump infer CLI v0.130.1 -> v0.133.0, infer-action v0.24.0 -> v0.26.0 ([#142](#142)) ([1d8fe37](1d8fe37)) * **deps:** bump infer CLI v0.133.0 -> v0.133.1, infer-action v0.26.0 -> v0.27.1 ([#143](#143)) ([5391d03](5391d03)) * **deps:** bump infer CLI v0.133.1 -> v0.137.0, infer-action v0.27.1 -> v0.29.0 ([#144](#144)) ([1310de1](1310de1)) * **deps:** bump infer CLI v0.137.0 -> v0.138.0, infer-action v0.29.0 -> v0.30.1 ([#147](#147)) ([791b64e](791b64e)) * **deps:** bump infer CLI v0.138.0 -> v0.141.0 ([#152](#152)) ([8e2fb44](8e2fb44)) * **deps:** bump infer CLI v0.141.0 -> v0.147.1 ([#159](#159)) ([4b74a9f](4b74a9f)) * **release:** update GitHub App credentials to use RELEASER_APP_ID and RELEASER_APP_PRIVATE_KEY ([936dfc6](936dfc6))
|
🎉 This PR is included in version 0.18.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Resolves #156
Summary
Add OTel-aligned telemetry configuration to the Orchestrator CRD, reusing the shared
TelemetrySpectype already used by Agent and Gateway. The orchestrator'sinfer channels-managerCLI consumesINFER_TELEMETRY_*env vars with a single shared OTLP endpoint for both traces and metrics (traces endpoint wins when both are configured, matching the CLI's config schema at v0.141.0).Changes
Telemetry *TelemetrySpectoOrchestratorSpec(reuses the shared OTel-aligned type from gateway_types.go)orchestratorTelemetryEnvVars()function mappingTelemetrySpecontoINFER_TELEMETRY_ENABLEDandINFER_TELEMETRY_OTLP_ENDPOINTenv vars; wire it intobuildOrchestratorEnvironmentVarsbuildOrchestratorEnvironmentVarsFollow-up