Summary
Add packaged /var/lib/<package> directories to otelcol, otelcol-contrib, and otelcol-otlp RPM/DEB distributions.
Motivation
The file_storage resiliency extension persists the collector queue to disk. When installed via RPM or DEB packages, the collector service user needs a writable directory under /var/lib to store this state. Without the directory being created and owned by the package, users must manually create it or configure an alternate path.
Proposed Change
- Add
/var/lib/<package> directory entry to the nfpm contents for each distribution
- Directory owned by the collector service user/group with mode
0750 (rwxr-x---)
- Affects:
otelcol, otelcol-contrib, otelcol-otlp