elastic / elastic-agent-system-metrics

Apache License 2.0
0 stars 23 forks source link

Fix exe error checks #148

Closed fearful-symmetry closed 7 months ago

fearful-symmetry commented 7 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