This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
Send memory usage information together with metrics on Linux #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We handle only Linux since getting accurate memory usage values on it is
most important. Memory cannot be read platform independently in Python
and we don't want at this point to include any external dependencies,
such as
psutil
. We might want to add support for other systems whenthe need arises for some user, it likely won't happen soon since since
production web servers are not often ran on non-Linux systems.
Good to note that
MemAvailable
in/proc/meminfo
is only available onLinux kernel 3.14 and up, but since 3.14 has already reached end of
life we can pretty safely ignore support for systems before it.