From owner-freebsd-performance@FreeBSD.ORG Tue Sep 23 09:43:08 2014 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B684ACAB for ; Tue, 23 Sep 2014 09:43:08 +0000 (UTC) Received: from cu01176b.smtpx.saremail.com (cu01176b.smtpx.saremail.com [195.16.151.151]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6EBBEC0F for ; Tue, 23 Sep 2014 09:43:07 +0000 (UTC) Received: from [172.16.2.2] (izaro.sarenet.es [192.148.167.11]) by proxypop04.sare.net (Postfix) with ESMTPSA id 8B1A69DCCBA; Tue, 23 Sep 2014 11:42:58 +0200 (CEST) Subject: Re: I like iostat, but... Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Borja Marcos In-Reply-To: <20140923121945.8975311d308a1ff088dd90b0@systemdatarecorder.org> Date: Tue, 23 Sep 2014 11:42:57 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20140922212209.GA9619@albert.catwhisker.org> <20140923113844.6f9e9584965dfd401f6943af@systemdatarecorder.org> <659899B2-1816-41FA-9DED-57416928A1EE@sarenet.es> <20140923121945.8975311d308a1ff088dd90b0@systemdatarecorder.org> To: Stefan Parvu X-Mailer: Apple Mail (2.1283) Cc: freebsd-performance@freebsd.org X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 09:43:08 -0000 On Sep 23, 2014, at 11:19 AM, Stefan Parvu wrote: >=20 >> Anyway, for disk stats GEOM offers a nice API. You can get delays per = GEOM provider, bandwidths, etc. >=20 > Are you talking about C consumers or I can do that using Perl, Sh ? >=20 > Is there any way to consume the metrics via Perl, for example ? I = could not find > any decent documentation how to do that except some emails: > = http://lists.freebsd.org/pipermail/freebsd-questions/2009-March/194081.htm= l C consumers, although of course you can write a Perl module in C in case = you prefer Perl. If the shock of reading atrocious code won't make you pull your eyes out = of your sockets I can send you the latest version of devilator a FreeBSD specific data = collector for Orca (https://www.orcaware.com/orca/). It fetches several system stats (CPU usage, memory usage, etc) and = creates text files with a timestamp. Orca generates RRD databases and graphs consuming that = data.=20 The code is ugly as hell (it's always been an evolving hack) but it = works, I've been using it for years. Maybe it will help to do your own version if you wish. Borja.