Skip to content

Otel Metrics is Empty but Index has documents #2470

Open
@harpreetcywarden

Description

@harpreetcywarden

Using Data Prepper with index_type: metric-analytics-plain, the metrics indices (e.g., metrics-otel-v1-000001) are:

Ingested successfully

Visible in Discover

Not showing up in Observability → Metrics UI dropdown, even though the required mappings like name, kind, and instrumentationScope.name are correctly defined.

Steps to Reproduce
Ingest OTel hostmetrics into AWS OpenSearch using Data Prepper with:

index_type: metric-analytics-plain

Check Otel Index dropdown → No index appears

Expected Behavior
The OTel metrics index (using the built-in metric-analytics-plain schema) should appear in the Otel Index dropdown and be available for visualization in the Metrics UI.

Environment Details
OpenSearch version: AWS-managed OpenSearch Service (e.g., v2.x)

OpenSearch Dashboards Observability plugin: 2.16 or latest

Data Prepper: version (used for ingestion)

Index mappings: Verified name, kind, and instrumentationScope.name are keyword type

Similar Reports
GitHub Issue #1927:

"There are no index to be selected at Otel Index selection box"

Request
Please investigate why Data Prepper’s OTel metrics ingestion — following the documented schema — does not result in visibility under the Observability → Metrics UI. This issue is currently blocking metric visualization out-of-the-box for OpenTelemetry users.

Otel Config:

receivers:
hostmetrics/fast:
collection_interval: 1s
scrapers:
cpu:
memory:

hostmetrics/slow:
collection_interval: 1s
scrapers:
disk:
filesystem:
load:

hostmetrics/ultraslow:
collection_interval: 3s
scrapers:
processes:

processors:

resourcedetection:
detectors: [env, system, ec2]

batch:
send_batch_size: 512
timeout: 5s

memory_limiter:
check_interval: 1s
limit_mib: 512
spike_limit_mib: 256

exporters:
otlp/data-prepper/metrics:
endpoint: "localhost:21892"
tls:
insecure: true
timeout: 30s
sending_queue:
enabled: true
storage: file_storage

extensions:
health_check:
file_storage:
directory: /var/lib/otelcol/ingestion_queue
create_directory: true

service:
extensions: [health_check, file_storage]

pipelines:
metrics:
receivers: [hostmetrics/fast, hostmetrics/slow, hostmetrics/ultraslow]
processors: [memory_limiter, batch, resourcedetection]
exporters: [otlp/data-prepper/metrics]

Data Prepper Pipeline:

metric-processing-pipeline:
source:
otel_metrics_source:
port: 21892
ssl: false

buffer:
bounded_blocking:
buffer_size: 2048
batch_size: 512

processor:
- otel_metrics: {}
- copy_values:
entries:
- from_key: /time
to_key: /@timestamp

sink:
- opensearch:
hosts: ["https://search-opensearcxxxxxx.es.amazonaws.com:443"]
username: "xxxx"
password: "xxxxx"
index_type: metric-analytics-plain
index: otel-metrics

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions