opentelemetry-collector-contrib icon indicating copy to clipboard operation
opentelemetry-collector-contrib copied to clipboard

[receiver/hostmetrics] Set process metrics start time to process create time

Open hsmatulis opened this issue 3 years ago • 4 comments

Description: The start time of process metrics is currently set to the boot time of the system. This means that if a user repeatedly runs the same command, eventually the user will get two processes with the same PID and command, with the same start time (the system boot time). This makes the two data points indistinguishable and creates an association where there is none.

Link to tracking Issue: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/11447

Testing: Ran related unit tests through make test

hsmatulis avatar Jun 22 '22 19:06 hsmatulis

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: hsmatulisgoogle (6f5a2e5b96e3c756c2ad36d45246bd1a3ab7fe4c)

Please fix the errors and add a changelog entry

dmitryax avatar Jul 13 '22 21:07 dmitryax

This PR was marked stale due to lack of activity. It will be closed in 14 days.

github-actions[bot] avatar Jul 29 '22 05:07 github-actions[bot]

Done fixing errors and adding the changelog entry

hsmatulis avatar Aug 03 '22 19:08 hsmatulis

Rebased, but I need approval to run CI

hsmatulis avatar Aug 29 '22 17:08 hsmatulis

@hsmatulisgoogle please fix linter issues

dmitryax avatar Sep 03 '22 04:09 dmitryax

Fixed the lint errors, but I need approval to run CI

hsmatulis avatar Sep 08 '22 20:09 hsmatulis