Stack areas and line on the same graph

Tom Haddon <[email protected]> Thu, 01 May 2008 09:15:31 +0100
Newsgroups gmane.network.cricket.user
Message-ID <1209629731.6920.51.camel@hurlyburly>
Hi Folks,

I'm wondering if it's possible to have a number of "stacked" areas on a
graph (in my case, 6), as well as a line. The line should be the
absolute value for that metric.

I have been unable to get a config that works for this. I seem to be
able to get the stacked areas to show easy enough, but either the line
doesn't show at all or I get two lines for two metrics instead of just
one, as I'm hoping for. Here's the relevant snippet of my config:

targetType ch
    ds =
ch_one,ch_two_to_five,ch_six_to_fifteen,ch_sixteen_to_sixty,ch_over_sixty,ch_imports
    view = "CH Usage"
view "CH Usage"
    elements =
ch_one,ch_two_to_five,ch_six_to_fifteen,ch_sixteen_to_sixty,ch_over_sixty,ch_imports
    paint-nan = true
dataSource ch_one
    ds-source = field:%metrics%:%dbname%_ch_import_one
    rrd-ds-type = GAUGE
graph ch_one
    bytes = false
    si-units = false
    legend = "1"
    y-axis = "projects"
    draw-as = STACK
dataSource ch_two_to_five
    ds-source = field:%metrics%:%dbname%_ch_import_two_to_five
    rrd-ds-type = GAUGE
graph ch_two_to_five
    bytes = false
    si-units = false
    legend = "2-5"
    y-axis = "projects"
    draw-as = STACK
dataSource ch_six_to_fifteen
    ds-source = field:%metrics%:%dbname%_ch_import_six_to_fifteen
    rrd-ds-type = GAUGE
graph ch_six_to_fifteen
    bytes = false
    si-units = false
    legend = "6-15"
    y-axis = "projects"
    draw-as = STACK
dataSource ch_sixteen_to_sixty
    ds-source = field:%metrics%:%dbname%_ch_import_sixteen_to_sixty
    rrd-ds-type = GAUGE
graph ch_sixteen_to_sixty
    bytes = false
    si-units = false
    legend = "16-60"
    y-axis = "projects"
    draw-as = STACK
dataSource ch_over_sixty
    ds-source = field:%metrics%:%dbname%_ch_import_over_sixty
    rrd-ds-type = GAUGE
graph ch_over_sixty
    bytes = false
    si-units = false
    legend = "60+"
    y-axis = "projects"
    draw-as = STACK
dataSource ch_imports
    ds-source = field:%metrics%:%dbname%_ch_imports
    rrd-ds-type = GAUGE
graph ch_imports
    bytes = false
    si-units = false
    legend = "Imports"
    y-axis = "projects"
    draw-as = LINE2

I'm trying to have all except for ch_imports in stacked area, while
ch_imports would be a line.

Thanks, Tom


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone