[rrd-users] add last and max to legend

Munroe Sollog mus3 at Lehigh.EDU
Fri Jun 28 22:11:05 CEST 2013

I'm trying to add a legend that reports LAST and MAX for 'a' and 'g'.
everything below is functional.  I have gone through a few variations of
the RRDs::graph function with no luck.

my rrd definition:

RRDs::create ($rrdfile, "--start", $time, "--step", 120,
  "DS:auth:GAUGE:600:0:99999", # auth = authenticated users
  "DS:guest:GAUGE:600:0:99999", # guest = guest users
  "RRA:MAX:0.5:1:1440", # 48 hours, 2 minute samples
  "RRA:MAX:0.5:30:240", # weekly, 10 days of 1 hour samples
  "RRA:MAX:0.5:48:336", # monthly, 8 weeks of 4 hour samples
  "RRA:MAX:0.5:288:730", # yearly, 2 years of 1 day samples
  "RRA:MAX:0.5:2016:1040", # 20 years of 1 week samples

My current working graphing:

RRDs::graph "$apgraph$graphfile48",
        "--title", $ap,
        "--start", "now-48h",
        "--vertical-label=Active Users",
        "AREA:a#FFCC33:Authenticated Users   ",
        "AREA:g#3366FF:Guest Users:STACK",

More information about the rrd-users mailing list