Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4389910EDF for ; Tue, 27 May 2014 17:50:06 +0000 (UTC) Received: (qmail 75447 invoked by uid 500); 27 May 2014 17:50:06 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 75396 invoked by uid 500); 27 May 2014 17:50:06 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 75385 invoked by uid 99); 27 May 2014 17:50:06 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 17:50:06 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id EA6181D97DC; Tue, 27 May 2014 17:49:57 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3370699385837384306==" MIME-Version: 1.0 Subject: Re: Review Request 19545: Ported libprocess system/stats.json endpoint to new metrics library. From: "Dominic Hamon" To: "Ben Mahler" Cc: "Dominic Hamon" , "mesos" , "Vinod Kone" Date: Tue, 27 May 2014 17:49:57 -0000 Message-ID: <20140527174957.12586.23163@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Dominic Hamon" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/19545/ X-Sender: "Dominic Hamon" References: <20140527173812.12584.97818@reviews.apache.org> In-Reply-To: <20140527173812.12584.97818@reviews.apache.org> Reply-To: "Dominic Hamon" X-ReviewRequest-Repository: mesos-git --===============3370699385837384306== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On May 27, 2014, 10:38 a.m., Vinod Kone wrote: > > 3rdparty/libprocess/include/process/system.hpp, lines 81-85 > > > > > > I know you just moved this, but the "avg_" prefix seems wrong? the metrics names don't have that prefix. also, there is no mention of mem_total_bytes and mem_free_bytes? nice catch - i didn't even notice. > On May 27, 2014, 10:38 a.m., Vinod Kone wrote: > > 3rdparty/libprocess/src/tests/system_tests.cpp, lines 32-56 > > > > > > the "tests/system_tests.cpp" seems a bit misleading. just add this test to the metrics_tests file as this is just the default metrics process behavior. I added this because the MetricsInStatsEndpoint tests are in master_tests and slave_tests. This isn't testing the metrics process, it's testing that the API of the system process metrics hasn't changed. As such, it should probably be in a system_tests file. - Dominic ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19545/#review43993 ----------------------------------------------------------- On May 27, 2014, 10:49 a.m., Dominic Hamon wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/19545/ > ----------------------------------------------------------- > > (Updated May 27, 2014, 10:49 a.m.) > > > Review request for mesos and Ben Mahler. > > > Bugs: MESOS-1146 > https://issues.apache.org/jira/browse/MESOS-1146 > > > Repository: mesos-git > > > Description > ------- > > see summary > > > Diffs > ----- > > 3rdparty/libprocess/Makefile.am fa9b4fd0bb2555c3372151f8b86c8a6457319d93 > 3rdparty/libprocess/include/process/system.hpp fbd1eaa1de44eb419cef4c78efd6d138eabc7b44 > 3rdparty/libprocess/src/tests/metrics_tests.cpp 8a131218b858a6571bd520c470eac850a3fd345e > 3rdparty/libprocess/src/tests/system_tests.cpp PRE-CREATION > > Diff: https://reviews.apache.org/r/19545/diff/ > > > Testing > ------- > > make check and manually checked /system/stats.json against /metrics > > > Thanks, > > Dominic Hamon > > --===============3370699385837384306==--