Skip to content

Conversation

@felixbarny
Copy link
Member

Now returns an ExportMetricsServiceResponse with an embedded ExportMetricsPartialSuccess rather than a plain ExportMetricsServiceResponse.

This also limits the size of the error message to avoid decoding issues in the collector. For indexing errors, it returns one sample error message per unique index and status code. It also limits the number of ignored data point messages to 10.

Example error message from the collector:

2025-11-07T11:54:18.241+0100    warn    [email protected]/otlp.go:391   Partial success response        {"resource": {"service.instance.id": "290692f3-8eed-41e9-b4f6-039bd39f9a7b", "service.name": "otelcol", "service.version": ""}, "otelcol.component.id": "otlphttp/elasticsearch-sending-queue-batch", "otelcol.component.kind": "exporter", "otelcol.signal": "metrics", "message": "Index [.ds-metrics-hostmetricsreceiver.otel-default-2025.11.07-000001] returned status [CONFLICT] for 512 documents. Sample error message: [.ds-metrics-hostmetricsreceiver.otel-default-2025.11.07-000001/AbkfLh8NQX6alMdlz69qlA][[.ds-metrics-hostmetricsreceiver.otel-default-2025.11.07-000001][0]] org.elasticsearch.index.engine.VersionConflictEngineException: [jXGZEw7bHkoQb-kpAAABml35mLA][kKxc2UpACbqPQ3lcLUGVmSkWgVcT@2025-11-07T11:00:30.000Z]: version conflict, document already exists (current version [1])\n", "dropped_data_points": 512}

Now returns an ExportMetricsServiceResponse with an embedded ExportMetricsPartialSuccess rather than a plain ExportMetricsServiceResponse.

This also limits the size of the error message to avoid decoding issues in the collector. For indexing errors, it returns one sample error message per unique index and status code. It also limits the number of ignored data point messages to 10.
@felixbarny felixbarny requested a review from kkrik-es November 7, 2025 10:55
@felixbarny felixbarny self-assigned this Nov 7, 2025
@felixbarny felixbarny added the :StorageEngine/TSDB You know, for Metrics label Nov 7, 2025
@felixbarny felixbarny requested a review from a team as a code owner November 7, 2025 10:55
@elasticsearchmachine elasticsearchmachine added Team:StorageEngine v9.3.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Nov 7, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@felixbarny felixbarny added auto-backport Automatically create backport pull requests when merged branch:9.2 >bug labels Nov 7, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @felixbarny, I've created a changelog YAML for you.

@felixbarny felixbarny enabled auto-merge (squash) November 10, 2025 13:14
@felixbarny felixbarny merged commit d2ff725 into elastic:main Nov 10, 2025
34 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.2

felixbarny added a commit to felixbarny/elasticsearch that referenced this pull request Nov 10, 2025
)

Now the action returns an ExportMetricsServiceResponse with an embedded ExportMetricsPartialSuccess rather than a plain ExportMetricsServiceResponse.

This also limits the size of the error message to avoid decoding issues in the collector. For indexing errors, it returns one sample error message per unique index and status code. It also limits the number of ignored data point messages to 10.
elasticsearchmachine pushed a commit that referenced this pull request Nov 10, 2025
…137827)

Now the action returns an ExportMetricsServiceResponse with an embedded ExportMetricsPartialSuccess rather than a plain ExportMetricsServiceResponse.

This also limits the size of the error message to avoid decoding issues in the collector. For indexing errors, it returns one sample error message per unique index and status code. It also limits the number of ignored data point messages to 10.
@felixbarny felixbarny deleted the otlp-fix-partial-error branch November 10, 2025 15:18
Kubik42 pushed a commit to Kubik42/elasticsearch that referenced this pull request Nov 10, 2025
)

Now the action returns an ExportMetricsServiceResponse with an embedded ExportMetricsPartialSuccess rather than a plain ExportMetricsServiceResponse.

This also limits the size of the error message to avoid decoding issues in the collector. For indexing errors, it returns one sample error message per unique index and status code. It also limits the number of ignored data point messages to 10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug external-contributor Pull request authored by a developer outside the Elasticsearch team :StorageEngine/TSDB You know, for Metrics Team:StorageEngine v9.2.2 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants