Open
Description
A note for the community
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Problem
Pushing to otel-collector is failing with Bad Request
2025-07-11T20:49:05.925571Z DEBUG sink{component_kind="sink" component_id=otel_sink component_type=opentelemetry}:request{request_id=535}:http: vector::internal_events::http_client: HTTP response. status=400 Bad Request version=HTTP/1.1 headers={"content-type": "application/json", "date": "Fri, 11 Jul 2025 20:49:05 GMT", "content-length": "192"} body=[192 bytes]
Known issue? Any work around for this?
Configuration
data_dir: /var/lib/vector
expire_metrics_secs: 600
api:
enabled: true
address: 127.0.0.1:8686
playground: false
sources:
host_metrics_source:
type: host_metrics
scrape_interval_secs: 60
internal_metrics_source:
type: internal_metrics
scrape_interval_secs: 60
vector_source:
type: vector
address: 0.0.0.0:9556
sinks:
otel_sink:
type: opentelemetry
inputs:
- otel_metrics_filter
buffer:
type: memory
when_full: drop_newest
protocol:
type: http
uri: http://otel-collector.monitoring.svc.cluster.local:4318/v1/metrics
encoding:
codec: json
compression: gzip
auth:
strategy: basic
user: <user>
password: <password>
prometheus_exporter:
type: prometheus_exporter
inputs:
- host_metrics_source
- internal_metrics_source
address: 0.0.0.0:9598
transforms:
otel_metrics_filter:
type: filter
inputs:
- vector_source
condition: .name == .name
Version
v0.49.0
Debug Output
2025-07-11T20:49:05.925571Z DEBUG sink{component_kind="sink" component_id=otel_sink component_type=opentelemetry}:request{request_id=535}:http: vector::internal_events::http_client: HTTP response. status=400 Bad Request version=HTTP/1.1 headers={"content-type": "application/json", "date": "Fri, 11 Jul 2025 20:49:05 GMT", "content-length": "192"} body=[192 bytes]
Example Data
No response
Additional Context
No response
References
No response