Development

This commit is contained in:
Alexey Milovidov 2021-07-05 00:33:00 +03:00
parent 08aca329bd
commit 3a10d3802b
2 changed files with 4 additions and 3 deletions

View File

@ -533,6 +533,10 @@ void AsynchronousMetrics::update()
}
else if (name == "MemFree:")
{
/// We cannot simply name this metric "Free", because it confuses users.
/// See https://www.linuxatemyram.com/
/// For convenience we also provide OSMemoryFreePlusCached, that should be somewhat similar to OSMemoryAvailable.
free_plus_cached_bytes += bytes;
new_values["OSMemoryFreeWithoutCached"] = bytes;
}

View File

@ -2,9 +2,6 @@
#include <Interpreters/Context_fwd.h>
#include <Common/MemoryStatisticsOS.h>
#include <Common/MemoryInfoOS.h>
#include <Common/ProcessorStatisticsOS.h>
#include <Common/DiskStatisticsOS.h>
#include <Common/ThreadPool.h>
#include <IO/ReadBufferFromFile.h>