diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-26 10:43:13 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-26 10:43:13 -0400 |
commit | 2e9d97a04e80c6c8868f896f70e5ab83b03eff0b (patch) | |
tree | b9c1e24a3ae721bebc338d838fcbb4ed6c8484d9 /src | |
parent | aca68d91a7226a14cfdc73171eb97c4922559940 (diff) | |
download | mongo-2e9d97a04e80c6c8868f896f70e5ab83b03eff0b.tar.gz |
SERVER-25179 Include only subset of memory statistics in diagnostic data
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/ftdc/ftdc_system_stats_linux.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp b/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp index 42fdc1afbc1..502be4bdaf7 100644 --- a/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp +++ b/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp @@ -48,8 +48,22 @@ namespace { static const std::vector<StringData> kCpuKeys{ "btime"_sd, "cpu"_sd, "ctxt"_sd, "processes"_sd, "procs_blocked"_sd, "procs_running"_sd}; -// Collect all the memory keys by specifying an empty set. -static const std::vector<StringData> kMemKeys{}; +static const std::vector<StringData> kMemKeys{ + "MemTotal"_sd, + "MemFree"_sd, + "Cached"_sd, + "Dirty"_sd, + "Buffers"_sd, + "SwapTotal"_sd, + "SwapCached"_sd, + "SwapFree"_sd, + "Active"_sd, + "Inactive"_sd, + "Active(anon)"_sd, + "Inactive(anon)"_sd, + "Active(file)"_sd, + "Inactive(file)"_sd, +}; /** * Collect metrics from the Linux /proc file system. |