-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed as not planned
Closed as not planned
Copy link
Description
Component(s)
receiver/otlpjsonfile
Describe the issue you're reporting
I have a file that has been exported using otelcol. I'm not sure exactly how but it starts with the following:
{
"resourceMetrics": [
{
"resource": {
"attributes": [
{
"key": "service.name",
"value": {
"stringValue": "vmc-collectd"
...
"scopeMetrics": [
{
"scope": {
"name": "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver",
"version": "0.119.0"
},
"metrics": [
{
"name": "collectd_processes_disk_octets_read_total",
"description": "collectd_processes_disk_octets_read_total",
"sum": {
"dataPoints": [
The size of each JSON messages inside could go from 1.7MB to 80MB.
I've tried using the following receiver config:
otlpjsonfile:
include:
- /tmp/otel-metrics.json
The application starts with following output:
otel-collector-1 | 2025-06-11T01:11:36.356Z info fileconsumer/file.go:267 Started watching file {"resource": {"service.instance.id": "d8293723-4ba6-4099-a05f-b2982ab34ff2", "service.name": "otelcol-contrib", "service.version": "0.128.0"}, "otelcol.component.id": "otlpjsonfile", "otelcol.component.kind": "receiver", "otelcol.signal": "metrics", "component": "fileconsumer", "path": "/tmp/otel-metrics.json"}
But there is nothing happening at all. Almost like the file doesn't start reading.
I've got the following service:
exporters:
- debug
If I push the first JSON message in Kafka, the kafka receivers picks it up just fine (except that I need to change producer and broken max message size settings).
Reactions are currently unavailable