|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
question about some grafical adds on rrd
hi, i have problem, because i must add to my grafs somtink like this: http://oss.oetiker.ch/rrdtool/gallery/energy_graph.png (this futter witch numerical max and min values).
meybe sombady send me a line to create graf witch that ?? fenks and soory for my english
_______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
|
rrd graph issuesHi all, I've been working with my graph for awhile to try to figure out why
I get values greater than 100% for my graph, which isn't possible. Here is my graph definition rrdtool.graph('cpu.png', '--start','now-3600', '--end','now', '--upper-limit','100', '--lower-limit', '0', 'DEF:uj=cpu.rrd:user:AVERAGE', #define number of jiffies 'DEF:nj=cpu.rrd:nice:AVERAGE',#which are the number of ticks 'DEF:sj=cpu.rrd:sys:AVERAGE', 'DEF:ij=cpu.rrd:idle:AVERAGE', 'CDEF:tj=uj,nj,+,sj,+,ij,+', 'CDEF:bo=uj,UN,0,uj,IF,0,GT,UNKN,INF,IF', 'AREA:bo#DDDDDD:', 'CDEF:usr=100,uj,*,tj,/', 'CDEF:nic=100,nj,*,tj,/', 'CDEF:sys=100,sj,*,tj,/', 'CDEF:idl=100,ij,*,tj,/', 'CDEF:tot=100,tj,*,tj,/', 'AREA:nic#0040A2:Nice', 'VDEF:maxN=nic,MAXIMUM', 'VDEF:minN=nic,MINIMUM', 'VDEF:avgN=nic,AVERAGE', 'GPRINT:maxN: Max %6.2lf%%', 'GPRINT:minN: Min %6.2lf%%', 'GPRINT:avgN: Avg %6.2lf%%\l', 'AREA:sys#90C5CC:System:STACK', 'LINE2:1#70A5AC::STACK', 'VDEF:maxS=sys,MAXIMUM', 'VDEF:minS=sys,MINIMUM', 'VDEF:avgS=sys,AVERAGE', 'GPRINT:maxS:Max %6.2lf%%', 'GPRINT:minS: Min %6.2lf%%', 'GPRINT:avgS: Avg %6.2lf%%\l', 'AREA:usr#B0E5EC:User:STACK', 'LINE2:1#90C5CC::STACK', 'VDEF:maxU=usr,MAXIMUM', 'VDEF:minU=usr,MINIMUM', 'VDEF:avgU=usr,AVERAGE', 'GPRINT:maxU: Max %6.2lf%%', 'GPRINT:minU: Min %6.2lf%%', 'GPRINT:avgU: Avg %6.2lf%%\l', 'AREA:idl#0000ff:Idle:STACK', 'VDEF:maxI=idl,MAXIMUM', 'VDEF:minI=idl,MINIMUM', 'VDEF:avgI=idl,AVERAGE', 'GPRINT:maxI: Max %6.2lf%%', 'GPRINT:minI: Min %6.2lf%%', 'GPRINT:avgI: Avg %6.2lf%%\l', '--vertical-label','Ticks', '--title','Hourly CPU Usage', 'COMMENT:' + cur_date + '') As you can tell I have 4 data sources being graphed, and I contvert these DERIVE DST into percentages so the maximum percentage is 100%, and I'm getting a graph that graph above 100%. Also I've put a limit on the graph to try to cope with this issue, Max 100 Min 0 and it starts off good but once it updates then the limit doesn't apply anymore. I'm not sure what's going on here and why, when the values aren't greated than 100 (they're about 98 or 99). Does it have anything to do with the STACK command? Please any help would be appreciated! _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
|
Re: question about some grafical adds on rrdOMG!
I've tried to understand you... I think I have... You need to use the GPRINT function to print the MAX and MIN RRAs... Something like this at you rrdtool graph command: "GPRINT:%ds%:MIN:Minimum\:%6.0lf\l" "GPRINT:%ds%:MAX:Maximum\:%6.0lf\l" Overwrite "%ds%" with the desired data source 2008/7/3 Grzegorz Gorol <g.gorol@...>: > hi, i have problem, because i must add to my grafs somtink like this: > http://oss.oetiker.ch/rrdtool/gallery/energy_graph.png (this futter witch > numerical max and min values). > > meybe sombady send me a line to create graf witch that ?? > > fenks and soory for my english > > -- > Grzegorz "Raskolnikov" Gorol > cell: +48 506917029 > www:http://gorol.pl > http://knps.az.pl > > _______________________________________________ > rrd-users mailing list > rrd-users@... > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users > > -- []'s LĂvio Zanol Puppim _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
|
Re: rrd graph issuesSo what I've gathered from working with this, is once I removed the
stack and turned the line into an area it all seem to work out. Therefore I assume, and please correct me if I'm wrong, but when you use STACK the width of the line value is added so that in may case where it should of displayed 99% instead it displayed a value above 100%, is there a way to get around this so that I can still create the beautiful graph I want but not have the STACK affect my final displayed values? Emily Ann Chouinard wrote: > Hi all, I've been working with my graph for awhile to try to figure > out why I get values greater than 100% for my graph, which isn't > possible. Here is my graph definition > rrdtool.graph('cpu.png', > '--start','now-3600', > '--end','now', > '--upper-limit','100', > '--lower-limit', '0', > 'DEF:uj=cpu.rrd:user:AVERAGE', #define number of jiffies > 'DEF:nj=cpu.rrd:nice:AVERAGE',#which are the number of ticks > 'DEF:sj=cpu.rrd:sys:AVERAGE', > 'DEF:ij=cpu.rrd:idle:AVERAGE', > 'CDEF:tj=uj,nj,+,sj,+,ij,+', > 'CDEF:bo=uj,UN,0,uj,IF,0,GT,UNKN,INF,IF', > 'AREA:bo#DDDDDD:', > 'CDEF:usr=100,uj,*,tj,/', > 'CDEF:nic=100,nj,*,tj,/', > 'CDEF:sys=100,sj,*,tj,/', > 'CDEF:idl=100,ij,*,tj,/', > 'CDEF:tot=100,tj,*,tj,/', > 'AREA:nic#0040A2:Nice', > 'VDEF:maxN=nic,MAXIMUM', > 'VDEF:minN=nic,MINIMUM', > 'VDEF:avgN=nic,AVERAGE', > 'GPRINT:maxN: Max %6.2lf%%', > 'GPRINT:minN: Min %6.2lf%%', > 'GPRINT:avgN: Avg %6.2lf%%\l', > 'AREA:sys#90C5CC:System:STACK', > 'LINE2:1#70A5AC::STACK', > 'VDEF:maxS=sys,MAXIMUM', > 'VDEF:minS=sys,MINIMUM', > 'VDEF:avgS=sys,AVERAGE', > 'GPRINT:maxS:Max %6.2lf%%', > 'GPRINT:minS: Min %6.2lf%%', > 'GPRINT:avgS: Avg %6.2lf%%\l', > 'AREA:usr#B0E5EC:User:STACK', > 'LINE2:1#90C5CC::STACK', > 'VDEF:maxU=usr,MAXIMUM', > 'VDEF:minU=usr,MINIMUM', > 'VDEF:avgU=usr,AVERAGE', > 'GPRINT:maxU: Max %6.2lf%%', > 'GPRINT:minU: Min %6.2lf%%', > 'GPRINT:avgU: Avg %6.2lf%%\l', > 'AREA:idl#0000ff:Idle:STACK', > 'VDEF:maxI=idl,MAXIMUM', > 'VDEF:minI=idl,MINIMUM', > 'VDEF:avgI=idl,AVERAGE', > 'GPRINT:maxI: Max %6.2lf%%', > 'GPRINT:minI: Min %6.2lf%%', > 'GPRINT:avgI: Avg %6.2lf%%\l', > '--vertical-label','Ticks', > '--title','Hourly CPU Usage', > 'COMMENT:' + cur_date + '') > As you can tell I have 4 data sources being graphed, and I contvert > these DERIVE DST into percentages so the maximum percentage is 100%, > and I'm getting a graph that graph above 100%. Also I've put a limit > on the graph to try to cope with this issue, Max 100 Min 0 and it > starts off good but once it updates then the limit doesn't apply > anymore. I'm not sure what's going on here and why, when the values > aren't greated than 100 (they're about 98 or 99). Does it have > anything to do with the STACK command? Please any help would be > appreciated! > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > rrd-users mailing list > rrd-users@... > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users > _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
|
Re: rrd graph issuesEmily Chouinard wrote:
>So what I've gathered from working with this, is once I removed the >stack and turned the line into an area it all seem to work out. >Therefore I assume, and please correct me if I'm wrong, but when you use >STACK the width of the line value is added so that in may case where it >should of displayed 99% instead it displayed a value above 100% If you use STACK then whatever you are drawing is stacked on top of the last plot - ie the last plot is used as the baseline and your values are added. If you don't use stack, then the values are plotted from 0 as a baseline. >is >there a way to get around this so that I can still create the beautiful >graph I want but not have the STACK affect my final displayed values? I'm not 100% sure what you are trying to achieve - I think you are trying to draw an area for Nice, then a line 1% above it, then an area above that for Sys, another line 1% above that, and so on with User and Idle. Since you are drawing three lines, each value 1 stacked on top of Nice, Sys, and User, then the total will always be 103%. Why not draw a line at value 0 ? If that doesn't work, then you could draw the stacked areas, then go back and draw lines at Nice, Nice+Sys, and Nice+Sys+User. _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
| Free Forum Powered by Nabble | Forum Help |