Need documentation for a working setup for fileexporter #20279
Closed as not planned
Description
Component(s)
No response
Describe the issue you're reporting
fileexporter is a good choice for debugging, especially with intermittent metrics errors. However, there is no instruction to help set it up. The readme states,
The official opentelemetry-collector-contrib container does not have a writable filesystem by default since it's built using the special from scratch layer. As such, you will need to create a writable directory for the path, potentially by creating writable volumes or creating a custom image.
If users want to explore the path of creating a writable directory for the path, there are a few obstacles on the way.
- No interactive access point to OpenTelemetryCollector pod to discover a proper value for
hostPath
, i.e.kubectl exec -it
doesn't work. initContainers
is not allowed thus creating custom path is impossible.
Experts, please help document the setup to promote the usage of this good tool.