Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Modify how memory usage is calculated #14

Open
cobrul wants to merge 1 commit into prometheus-net:master
base: master
Choose a base branch
Loading
from cobrul:master

Conversation

Copy link

@cobrul cobrul commented Mar 24, 2021

Currently, the exporter is showing different values compared to docker stats if the docker daemon runs on linux. In order to prevent misinterpretations, memory usage should be calcuclated like the docker stats command line.
See https://github.com/moby/moby/blob/eb131c5383db8cac633919f82abad86c99bffbe5/cli/command/container/stats_helpers.go#L175

Copy link

Ran into this issue as well. Very interested if this can be merged since, apart from the memory info not being very useful to us, this is a great exporter!

martivo reacted with thumbs up emoji

Copy link

I noticed that the memory usage reported by the exporter including your PR (thanks btw) is different to the usage reported by docker stats. It seems that a multiplication by 10 delivers the same value. Can you confirm that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /