elastic / elastic-agent-system-metrics

Apache License 2.0
0 stars 22 forks source link

Fix exe error checks #148

Closed fearful-symmetry closed 2 months ago

fearful-symmetry commented 2 months ago

What does this PR do?

Closes https://github.com/elastic/elastic-agent-system-metrics/issues/135

This fixes an issue where our permissions checks for fetching /proc/pid/exe could fail for kernel procs and certain docker configs.

Also re-enables one of the tests.

Why is it important?

This is a bug that causes data loss.

Checklist