[rrd-users] Graph labels - repeating Nov '10 twice

Shawn Heisey rrd at elyograg.org
Sat Jan 29 20:39:16 CET 2011


On 1/25/2011 9:11 AM, Shawn Heisey wrote:
> A few days ago, I got help from this list in graphing a per-day rate.
> I've been working on that, and I've got it working pretty well.  I
> rebuilt my RRD using the naming suggestions that I got.  Now I'm having
> a different problem.  I'm trying to manipulate the x-grid so the base
> grid is weekly and the major grid is monthly, and running into a problem
> with the labels.  It has Nov '10 on there twice, and what should be Jan
> '11 is labeled Dec '10.  If I leave the -x off, the gridlines are
> correct, but the labels are "Week nn" which doesn't do me any good.
>
> Here's the commandline:
>
> rrdtool graph count.png -w 800 -h 250 --end now --start end-180d -t
> "Solr Document Delta" -v "Index Growth" -x "WEEK:1:MONTH:1:MONTH:1:0:%b
> '%g" DEF:dsdoc=/opt/ncindex/lib/rrd/doc_counter.rrd:dsdoc:AVERAGE
> CDEF:perday=dsdoc,86400,*  LINE1:perday#0000FF:"Docs Per Day\l"

I think I figured this out, by careful re-reading of the documentation.  
If I need to do labels in the middle of a long span like a month, I need 
to set the LPR value to that value.  A value of 2592000 seconds (30 
days) is likely appropriate here.

Thanks,
Shawn



More information about the rrd-users mailing list