Skip to content

[Metricbeat] system module don't log "error fetching PID metrics for XXX processes" when non-root #46349

@AndersonQ

Description

@AndersonQ

Describe the enhancement:

Metribeat when collecting system metrics, if it fails to fetch information about PIDs it'll log:

    "message": "Error fetching data for metricset system.process: non fatal error; reporting partial metrics: error fetching PID metrics for XXX processes, most likely a \"permission denied\" error. Enable debug logging to determine the exact cause.",

We have reports that running the Elastic Agent with the system integration will contantly, every metricset fetch, log the error above and it's too verbose.

It also pollutes the "Concerning Agents" dashboard as it looks for warning and error logs:

Image Image

Describe a specific use case for the enhancement or feature:

Metricbeat, or all beats, could detect they're running in unprivileged mode or as non-root and omit similar logs from the system integration.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions