[rrd-users] How to generate nicely formatted columns in the legend graph?
K. de Jong
keesdejong+bugs at gmail.com
Fri Apr 14 16:07:30 CEST 2017
Hi,
Quick question, how can I create nice columns that won't mess up the layout
if numbers increment or decrements? Something like this:
http://martybugs.net/linux/rrdtool/images/traffic_detail.png
I'm not trying stuff like here below, but it doesn't handle changing
values, the columns shift position then...
40 "DEF:cpu_user_avg=$RRDCOLLECT/stat_cpu.rrd:cpu_user:AVERAGE" \
41 "DEF:cpu_nice_avg=$RRDCOLLECT/stat_cpu.rrd:cpu_nice:AVERAGE" \
42 "DEF:cpu_system_avg=$RRDCOLLECT/stat_cpu.rrd:cpu_system:AVERAGE"
\
43 "DEF:cpu_iowait_avg=$RRDCOLLECT/stat_cpu.rrd:cpu_iowait:AVERAGE"
\
44 "DEF:cpu_user_min=$RRDCOLLECT/stat_cpu.rrd:cpu_user:MIN" \
45 "DEF:cpu_nice_min=$RRDCOLLECT/stat_cpu.rrd:cpu_nice:MIN" \
46 "DEF:cpu_system_min=$RRDCOLLECT/stat_cpu.rrd:cpu_system:MIN" \
47 "DEF:cpu_iowait_min=$RRDCOLLECT/stat_cpu.rrd:cpu_iowait:MIN" \
48 "DEF:cpu_user_max=$RRDCOLLECT/stat_cpu.rrd:cpu_user:MAX" \
49 "DEF:cpu_nice_max=$RRDCOLLECT/stat_cpu.rrd:cpu_nice:MAX" \
50 "DEF:cpu_system_max=$RRDCOLLECT/stat_cpu.rrd:cpu_system:MAX" \
51 "DEF:cpu_iowait_max=$RRDCOLLECT/stat_cpu.rrd:cpu_iowait:MAX" \
52 "DEF:cpu_user_last=$RRDCOLLECT/stat_cpu.rrd:cpu_user:LAST" \
53 "DEF:cpu_nice_last=$RRDCOLLECT/stat_cpu.rrd:cpu_nice:LAST" \
54 "DEF:cpu_system_last=$RRDCOLLECT/stat_cpu.rrd:cpu_system:LAST" \
55 "DEF:cpu_iowait_last=$RRDCOLLECT/stat_cpu.rrd:cpu_iowait:LAST" \
56 "TEXTALIGN:left" \
57 "LINE1:cpu_user_avg$RED:User\: " \
58 "GPRINT:cpu_user_avg:AVERAGE:%3.1lf" \
59 "GPRINT:cpu_user_min:MIN:%3.1lf" \
60 "GPRINT:cpu_user_max:MAX:%3.1lf" \
61 "GPRINT:cpu_user_last:LAST:%3.1lf" \
62 "LINE1:cpu_nice_avg$GREEN:User (nice)\:" \
63 "GPRINT:cpu_nice_avg:AVERAGE:%3.1lf" \
64 "GPRINT:cpu_nice_min:MIN:%3.1lf" \
65 "GPRINT:cpu_nice_max:MAX:%3.1lf" \
66 "GPRINT:cpu_nice_last:LAST:%3.1lf" \
67 "COMMENT:\n" \
68 "LINE1:cpu_system_avg$BLUE:System\:" \
69 "GPRINT:cpu_system_avg:AVERAGE:%3.1lf" \
70 "GPRINT:cpu_system_min:MIN:%3.1lf" \
71 "GPRINT:cpu_system_max:MAX:%3.1lf" \
72 "GPRINT:cpu_system_last:LAST:%3.1lf" \
73 "LINE1:cpu_iowait_avg$MAGENTA:I/O\: " \
74 "GPRINT:cpu_iowait_avg:AVERAGE:%3.1lf" \
75 "GPRINT:cpu_iowait_min:MIN:%3.1lf" \
76 "GPRINT:cpu_iowait_max:MAX:%3.1lf" \
77 "GPRINT:cpu_iowait_last:LAST:%3.1lf"
--
Kind regards,
Kees de Jong | OpenPGP fingerprint: 0x0E45C98AB51428E6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20170414/7c97edbd/attachment.html>
More information about the rrd-users
mailing list