Skip to content

Add /var/lib persistent state directories for collector RPM/DEB packages #1396

@dol

Description

@dol

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions