I'm currently trying to decide to use metricbeat or elastic-agent for my system and I'm finding that there is quite a significant difference in the memory reported for each system.
Here are the screenshots
Here is what docker reports for that container using docker stats
Why is there this difference and should I assume that metricbeat is less accurate than the elastic-agent?