We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now, the docker/memory metrics just do this to fetch RSS memory:
totalRSS := myRawStat.Stats.MemoryStats.Stats["total_rss"]
The problem is, the Stats object reports different metrics depending on the cgroups version: https://github.com/moby/moby/blob/master/daemon/stats_unix.go. That total_rss field isn't on V2.
Stats
total_rss
The code doesn't consider this, and the docs only mention it briefly: https://docs.docker.com/engine/api/v1.45/#tag/Container/operation/ContainerStats
The text was updated successfully, but these errors were encountered:
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)
Sorry, something went wrong.
@fearful-symmetry @pierrehilbert any updates on this one? It would really help us out with https://elasticco.atlassian.net/browse/CP-2371
huh, I thought this was fixed months ago, I can take a look.
fearful-symmetry
Successfully merging a pull request may close this issue.
Right now, the docker/memory metrics just do this to fetch RSS memory:
totalRSS := myRawStat.Stats.MemoryStats.Stats["total_rss"]
The problem is, the
Stats
object reports different metrics depending on the cgroups version: https://github.com/moby/moby/blob/master/daemon/stats_unix.go. Thattotal_rss
field isn't on V2.The code doesn't consider this, and the docs only mention it briefly: https://docs.docker.com/engine/api/v1.45/#tag/Container/operation/ContainerStats
The text was updated successfully, but these errors were encountered: