Skip to content

[RFE] pmdalinux: allow PCP_USER to collect mem.slabinfo metrics #2651

Description

@orasagar

Description of Request for Enhancement

pmdalinux currently returns mem.slabinfo.* values only to UID 0 or when the global -A option is enabled:

  14ceb15

  Since pmlogger normally runs as PCP_USER (pcp), it cannot collect these metrics. Consequently, slabinfo data is missing from PCP archives and cannot be displayed using tools
  such as:

  ```sh
  pcp slabinfo -a
  pminfo -a mem.slabinfo

  The -A workaround is too broad because it disables access checks for all clients and other protected metric clusters.

  Please allow the authenticated PCP_USER UID, in addition to UID 0, to fetch mem.slabinfo.* metrics. This permission should apply only to the slabinfo cluster; unrelated users and
  unauthenticated clients must remain denied.

  Expected result:

  - Root and authenticated PCP_USER can fetch mem.slabinfo.*.
  - Standard pmlogger archives contain slabinfo data.
  - Other non-root or unauthenticated clients remain denied.
  - Existing -A behavior remains unchanged.

Component

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions