elastic / elastic/beats

[metricbeat][system/process] - process.cmdline.cache.enabled is not respected

Open
#51,003 2 comments 1 reaction 0 assignees View on GitHub
bug Metricbeat Team:Elastic-Agent-Data-Plane
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 15m
Merged PRs (30d)
385

Description

When `cmdline.cache.enabled` is set to `true`, we should read process command and arguments once and re-use for later metrics.
For darwin and windows, we're fetching command args on every call. This should be fixed as per `process.cmdline.cache.enabled`'s value

Contributor guide

Open the contributing guide

Research direction

Start in the Metricbeat system/process metricset and trace the Darwin and Windows paths that fetch command arguments. Compare their behavior with the process.cmdline.cache.enabled setting and run the relevant system/process tests; done means command and arguments are fetched once and reused when caching is enabled, while disabled behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability-sre, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.