Repository navigation
fix(telemetry): devops-cli telemetry reaches the cluster's collector - #565
Merged
Merged
Conversation
devops-cli exported OTLP to localhost:4318, where nothing listened: the collector was ClusterIP only. Jaeger had no services and the devops-cli dashboards were empty. Failures were silent, and exports still queued at exit were cancelled. - The collector service is a NodePort. `devops telemetry connect` finds it through kubectl, checks it answers and saves telemetry.endpoint; no host or port goes in the repository. - Exports count failures, and an interactive user is told at exit, once a day per endpoint. - Shutdown drains in-flight exports for up to a second instead of cancelling them. - The collector's remote write keeps metric names as sent (translation_strategy: UnderscoreEscapingWithoutSuffixes), so devops_cli_command_total no longer arrives as ..._total_ratio. Verified through a port-forward: traces in Jaeger, metrics in Prometheus. Dashboard metrics nothing sends over OTLP are #564. Closes #547
This was referenced Sep 25, 2026
Merged
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 #547.
Problem
devops-cli exports OTLP to
telemetry.endpoint, which defaults tohttp://localhost:4318. Nothing listens there, because the collector was ClusterIP only. As a result, Jaeger had no services and nodevops_cli_*metric reached Prometheus. Exports also failed silently, and exports still queued at exit were cancelled.Changes
k8s/otel/values.yaml:translation_strategy: UnderscoreEscapingWithoutSuffixes. Previously the default unit suffixes turneddevops_cli_command_totalintodevops_cli_command_total_ratio, which no dashboard queries.devops telemetry connect(telemetry/collector.py):telemetry.endpointand enables telemetry;Verification
Checked through a port-forward of the collector to
localhost:4318:devops-cliservice, and each command's trace arrived (18 spans for a review).devops_cli_*metrics reached Prometheus.The NodePort and the metric naming take effect when the otel stack is next applied (
devops k8s stack); after that, rundevops telemetry connect.The
devops-cliandai-spenddashboards also query metrics nothing sends over OTLP (review duration, findings, AI spend, which onlydevops serverexposes). Those are filed as #564.Test plan
tests/test_telemetry_collector_export.py(8 tests):connectsaving an endpoint that answers, and keeping the configuration when it doesn't;uv run devops ci --force: all 13 gates pass