[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] weird rrd output (using the NCV module)
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] weird rrd output (using the NCV module)
- From: "Gary Baluha" <gumby3203 (at) gmail.com>
- Date: Thu, 13 Sep 2007 13:41:33 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=fKx+8hGjYfwihKHtVuiJIzIceux3WcymNKA0vVshcg4=; b=Bzy91KWaptohUp1xyzAv0TWEwc+Mh/3Iqf454GLhPC4C/LBmhobHqir9/78InDZTE3rBt3vWmF+6eR+NXdA1vQhZT6vjeUf1gnZMtoUQbKcO0h7WFnyTfHhzx2qaXdK2lSqaCPri93eW+nQt73kySUDhNz+1VlbODV0b9DlWiwo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XPVtdgK1EOXQBatQdiTtq3vJNIRSJT1v9rMpHiLD0Upv4wrhqhxCJNcV0XjSSY9Pn2FLE3rBs2l5Erc0bW44sdY8SZe8a7hLjd5EUUhG01vdrB24JTzF1qc+6clBWrR2fh100TSH+reeVJqZBUhyd6RtB3RzImFk00zWqcg8ctw=
- References: <29f517690709130820t3c88a2fr5e1af7a9b2295c20 (at) mail.gmail.com> <20070913161448.GA28241 (at) hswn.dk>
On 9/13/07, Henrik Stoerner <henrik (at) hswn.dk> wrote:
>
> On Thu, Sep 13, 2007 at 11:20:03AM -0400, Gary Baluha wrote:
> > I'm seeing a weird output for one of my custom RRD graphs, using the NCV
> > module. The collector script on the client
> > is creating an ncv-style output based on the bind 9 "rndc stats"
> command.
> > These numbers are counter-style numbers,
> > always increasing (until named is restarted). As such, the default
> DERIVE
> > format of the NCV module is correct.
> >
> > The problem I'm seeing is that the numbers showing up in the RRD
> graph--as
> > far as I can tell--have nothing at all to do
> > with the actual "rndc stats" values. For instance, the "last" and
> "current"
> > values of the data was:
> >
> > success : 283 -> 294 (11)
> > referral : 0 -> 0 (0)
> > nxrrset : 149 -> 156 (7)
> >
> > The number in () above is the actual difference between the numbers, and
> the
> > values I'm expecting to show up in the RRD graph.
> > But the actual values that are showing up for the above example (for the
> > "(cur)" value) are, respectively:
> > 34.0m
> > 0.0
> > 20.8m
>
>
> Everything is behaving the way it should, but it doesn't match your
> expectation.
>
> The problem is that rrdtool treats counters (and derive's) as RATES,
> i.e. "this many X per second". So when you have 11 requests over a 5
> minute period, rrdtool records (11 / 300) = 0,037 requests/second.
> That's why you have that "34.0m" recorded - apparently there was
> slightly more than 300 seconds between the two readings.
>
> If you want the graph to show how many requests occurred over the 5
> minute period, then the simplest way is to define the graph to use
> a value which is 300 times the actual value recorded by rrdtool :-)
Oh dear... I completely misinterpreted what the RRD doco was trying to tell
me. As always, thanks for your help.