<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Sorry if I wasn't clear, my english may not be perfect ...<div>
<br></div><div>So actually what I want is actually a graph showing a curve of the requests per time for a whole day (from 0 to 24). For example imagine I try to generate this kind of graph with 2 days of data : The first day there was an average of 10 requests from 8 to 9, and the second there was 20. I'd then like to see a point at 15 requests. But of course I'd like to generate it for a whole year or more.</div>
<div>To be clearer, what I'd like to do with this graph is being able to read that "as an average (on the whole year), there is about 400 requests around 1 pm, but only 20 around 3pm, so if I need to reboot the server for maintenance it would be less trouble to do it around 3pm.</div>
<div><br></div><div>By the way thank you for the tutorial link, gonna chech that out ;)</div></span><br><div class="gmail_quote">2010/11/26 Simon Hobson <span dir="ltr"><<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Jérémy Frere wrote:<br>
<br>
>I have a production.log file, containing the<br>
>requests details with date/hour of the request.<br>
>I easily parsed the lines to get the timestamp<br>
>of the request, and managed to of generate<br>
>graphs of the average requests per hour on one<br>
>day, week, month or year. But I couldn't manage<br>
>to get the average requests for one "typical<br>
>day", summarizing the yearly average of requests<br>
>in one single day.<br>
<br>
</div>I'm unclear what you are asking. Are you wanting<br>
a single number that says "average usage is X<br>
requests/day over the last year" ?<br>
To do that, you simply want to generate an<br>
"empty" graph and do no more than PRINT (not<br>
GPRINT) a VDEF which is the average rate times<br>
86400 and with start/end times covering a year.<br>
<br>
If you get a VDEF which is the average value of<br>
the year, then that will be the rate/second. To<br>
get rate/day you just need to multiply by 86400<br>
(seconds in a day) to get the rate/day.<br>
<br>
I'd also suggest you stufy Alex's tutorials at<br>
<a href="http://www.vandenbogaerdt.nl/rrdtool/" target="_blank">http://www.vandenbogaerdt.nl/rrdtool/</a><br>
In particular, the ones on "Computing amount of<br>
data transfered when you want the TOTAL amount",<br>
and "Rates, normalizing and consolidating".<br>
<br>
Also note that your primary data points start/end<br>
on well defined step boundaries. These are ALWAYS<br>
a multiple of the step period from unix epoch<br>
(midnight, 1st Jan 1970 UTC). Rrdtool always<br>
works in UTC internally.<br>
<br>
--<br>
Simon Hobson<br>
<br>
Visit <a href="http://www.magpiesnestpublishing.co.uk/" target="_blank">http://www.magpiesnestpublishing.co.uk/</a> for books by acclaimed<br>
author Gladys Hobson. Novels - poetry - short stories - ideal as<br>
Christmas stocking fillers. Some available as e-books.<br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
</blockquote></div><br>