opensearch-project / opensearch-project/data-prepper

[BUG] Otel / data-prepper 404 error with metrics pipelines

Open
#1,664 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
374
Forks
354
Avg merge
3d 18h
Merged PRs (30d)
8

Description

Describe the bug
When metrics are exported from OTEL to data-prepper the following 404 error es received:

0tel-collector | 2022-08-12T20:18:18.517Z error exporterhelper/queued_retry.go:183 Exporting failed. The error is not retryable. Dropping data. {"kind": "exporter", "data_type": "metrics", "name": "otlp/http", "error": "Permanent error: rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type "text/plain; charset=utf-8"", "dropped_items": 173}

image

To Reproduce
Steps to reproduce the behavior:

  1. I launch data-prepper with OpenSearch as a sink for thre pipelines: "raw-pipeline" ,"service-map-pipeline" and "metrics-pipeline":
    image
  2. I launch Oel with the following config:
    image

For metrics, I've tried the exporters otlp, otlp/http, otlp/2 and otlp/data-prepper. All unsuccesfully.

  1. I instrument a Java Application
    image

Expected behavior
Metrics traces sould be imported into OpenSearch. Just to mention, the traces pipeline works OK

Environment (please complete the following information):

  • OS: Ubuntu 20.04 LTS
  • otel/opentelemetry-collector-contrib:latest
  • opensearchproject/data-prepper:latest

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the data-prepper metrics-pipeline and its OTLP/HTTP ingestion configuration, then reproduce the 404 using the OpenTelemetry Collector setup described in the issue. Compare this with the working traces pipeline and inspect the OpenSearch sink path. Done means metrics are accepted by data-prepper and imported into OpenSearch without the 404 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.