Repository navigation
fix: skip OTLP export when Spotlight metrics are disabled or unreachable - #477
Open
Sudesh0119 wants to merge 2 commits into
Open
Sudesh0119 wants to merge 2 commits into
Sudesh0119 wants to merge 2 commits into
Conversation
The IPC broker advertises the spotlight_telemetry port whenever the Spotlight collector sidecar runs, even when OTel metrics are switched off. Splunk Enterprise ships with [spotlight] enable_otlp_metrics = false, so ObservabilityService exported to a port nothing listens on and logged repeated StatusCode.UNAVAILABLE export failures. Before building the OTLP exporter, ObservabilityService now: - reads server.conf and skips OTLP unless [teleport_supervisor] enable_splunk_spotlight, [spotlight] enable_otlp_metrics and [spotlight] enable_otlp_metrics_export are all true (missing keys use the server.conf.spec defaults). This runs before the IPC broker is queried and is skipped when SPOTLIGHT_OTEL_RECEIVER_PORT is set. - probes localhost:<port> with a 2 s TLS gRPC connect using the Spotlight certificate, and skips OTLP if the endpoint is not ready. In both cases one INFO line is logged and the extra exporters keep working.
Sudesh0119
requested review from
pdzien-splunk,
srana-crest,
vosmolovskiy-splunk and
wtobis-splunk
November 27, 2026 13:22
This branch has not been deployed
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.
The IPC broker advertises the spotlight_telemetry port whenever the Spotlight collector sidecar runs, even when OTel metrics are switched off. Splunk Enterprise ships with [spotlight] enable_otlp_metrics = false, so ObservabilityService exported to a port nothing listens on and logged repeated StatusCode.UNAVAILABLE export failures.
Before building the OTLP exporter, ObservabilityService now:
In both cases one INFO line is logged and the extra exporters keep working.