Dear Cactickers
Currently I have a script that returns some small values (1-5) every ca. 20 minutes. Other than that it returns 0. Now on my graphs I would like to see exactly the returned values. Therefore:
1) In the Data Source Item -> Data Source Type I have choosen GAUGE.
2) Data source step is 15
3) I have the following RRAs defined:
Name Steps Rows Timespan**
Hourly (1 Minute Average) 1 500 14400
Daily (5 Minute Average) 1 600 86400
Weekly (30 Minute Average) 6 700 604800
Monthly (2 Hour Average) 24 775 2678400
Yearly (1 Day Average) 288 797 33053184
4) Each RRA has choosen AVERAGE and MAX as consolidation functions.
5) In the graph template, consolidation function is AVERAGE.
Thus, I expect graphs Hourly and Daily to show the exact values that the script has returned. The step is defined as 1, which means that there will be always one value used for calculating the consolidation data point. So even though, there are plenty '0' around, the CDP that contains the non-zero value won't be affected by them. Is this right?
Although, in my graph the values are skewed, seem to be averaged. For example, if the script returns 1, the value in the Hourly graph is around 0.15 and in the daily graph around 0.04.
Do you have any idea why this is happening?
Cheers!
Values on the graph are skewed.
Moderators: Developers, Moderators
Re: Values on the graph are skewed.
it seems that you are running into a BYTES / BITS conversion issue, so 1 / 8 gives you 0,125 as result.
Or, also check that the data source type is set to GAUGE and not as COUNTER (which is the default).
hope this helps
Or, also check that the data source type is set to GAUGE and not as COUNTER (which is the default).
hope this helps
Re: Values on the graph are skewed.
Thanks for the reply mmerelles.
This the rrdtool command that is eventually called to produce a graph:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1346569574 \
--end=1346655974 \
--title='jvm_all_gt_gc_copy_count' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2012/09/02 07\:06\:14 To 2012/09/03 07\:06\:14\c" \
COMMENT:" \n" \
--vertical-label='' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/awsxgits01_mem_gced_major_249.rrd":copy_collection_cou:AVERAGE \
LINE1:a#FF0000FF:"GC copy collection count"
so it does not seem to me that there is the bytes / bits conversion happening. Also, the values on my graph are definetly greater than 0.125.
Also the data source type is set to GAUGE.
Any other ideas?
Cheers!
This the rrdtool command that is eventually called to produce a graph:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1346569574 \
--end=1346655974 \
--title='jvm_all_gt_gc_copy_count' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2012/09/02 07\:06\:14 To 2012/09/03 07\:06\:14\c" \
COMMENT:" \n" \
--vertical-label='' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/awsxgits01_mem_gced_major_249.rrd":copy_collection_cou:AVERAGE \
LINE1:a#FF0000FF:"GC copy collection count"
so it does not seem to me that there is the bytes / bits conversion happening. Also, the values on my graph are definetly greater than 0.125.
Also the data source type is set to GAUGE.
Any other ideas?
Cheers!
Re: Values on the graph are skewed.
It is not clear for me if it is just a graph problem or the data being stored in the rrd is already skewed which would result on a wrong graphic
Have you confirmed the values being stored on the rrd are ok as expected? in such case you haven't confirmed that yet:
rrdtool dump xxxxx.rrd > output.txt
edit the output.txt file, then go to the most granular section and confirm the records you do require for daily detailed graphs are being stored as expected
Have you confirmed the values being stored on the rrd are ok as expected? in such case you haven't confirmed that yet:
rrdtool dump xxxxx.rrd > output.txt
edit the output.txt file, then go to the most granular section and confirm the records you do require for daily detailed graphs are being stored as expected
Who is online
Users browsing this forum: No registered users and 3 guests