Describe the bug
When using the prometheusremotewrite exporter with the WAL enabled, no metrics are sent from the collector to the remote write destination.
Steps to reproduce
Using the config in the config section below can reproduce this error. Disabling the WAL section causes all metrics to be sent properly.
What did you expect to see?
Prometheus metrics should appear in the remote write destination.
What did you see instead?
No metrics were sent to the remote write destination
Describe the bug When using the prometheusremotewrite exporter with the WAL enabled, no metrics are sent from the collector to the remote write destination.
Steps to reproduce Using the config in the config section below can reproduce this error. Disabling the WAL section causes all metrics to be sent properly.
What did you expect to see? Prometheus metrics should appear in the remote write destination.
What did you see instead? No metrics were sent to the remote write destination
What version did you use? 0.62.1
What config did you use?
Environment OS: AWS bottlerocket running otel/opentelemetry-collector-contrib:0.36.3 docker image
Additional context From debugging, this looks to be a deadlock between
persistToWAL()
andreadPrompbFromWAL()
, but I'm not 100% certain