[Ganglia-general] Combining metrics from several RRD files

2014-01-31 Thread Martin Knoblauch
Hi friends, hope somebody already had this problem and solved it. So I have a cluster were we monitor the status (size, used, free) for several filesystems using Ganglia. Looks all great in the browser, but now the customer wants to have those data sets combined into one. In order to not loose th

Re: [Ganglia-general] Combining metrics from several RRD files

2014-01-31 Thread Arnau Bria
On Fri, 31 Jan 2014 10:37:19 +0100 Martin Knoblauch wrote: > Hi friends, Hi, > hope somebody already had this problem and solved it. So I have a > cluster were we monitor the status (size, used, free) for several > filesystems using Ganglia. Looks all great in the browser, but now > the custome

Re: [Ganglia-general] Combining metrics from several RRD files

2014-01-31 Thread Martin Knoblauch
Hi Arnau, not completely :-) I actually want to extract the data from the RRD files and combine them into one, adding up the vaules. Good thing, I found out about "rrdtool xport". I does what I want on the extracting. Now I just need to do the summing up. Cheers Martin On Fri, Jan 31, 2014 at

Re: [Ganglia-general] Combining metrics from several RRD files

2014-01-31 Thread Vladimir Vuksan
Another alternative is to use CSV or JSON export from the Web Ui eg http://blog.vuksan.com/2012/04/06/ It will eg export all values from aggregate graphs as well so you can do the summing On 31. siječnja 2014. 09:19:30 EST, Martin Knoblauch wrote: >Hi Arnau, > >not completely :-) I actually wa

Re: [Ganglia-general] Combining metrics from several RRD files

2014-01-31 Thread Martin Knoblauch
Hi Vladimir, thanks. That is also an option. What I came up with is the following RRD magic. Combines 3 metrics metrics from 4 filesystems, removes the NaNs and computes the percentage used accurately: rrdtool xport --start now-366d --end now-1d \ DEF:t000=vault_000_total.rrd:sum:AVERAGE \ DEF