[rrd-users] Graph of rails requests average hour by hour, as a "typical day"
jeremy.frere at crisalid.com
Mon Nov 29 14:20:21 CET 2010
Sorry if I wasn't clear, my english may not be perfect ...
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.
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.
By the way thank you for the tutorial link, gonna chech that out ;)
2010/11/26 Simon Hobson <linux at thehobsons.co.uk>
> Jérémy Frere wrote:
> >I have a production.log file, containing the
> >requests details with date/hour of the request.
> >I easily parsed the lines to get the timestamp
> >of the request, and managed to of generate
> >graphs of the average requests per hour on one
> >day, week, month or year. But I couldn't manage
> >to get the average requests for one "typical
> >day", summarizing the yearly average of requests
> >in one single day.
> I'm unclear what you are asking. Are you wanting
> a single number that says "average usage is X
> requests/day over the last year" ?
> To do that, you simply want to generate an
> "empty" graph and do no more than PRINT (not
> GPRINT) a VDEF which is the average rate times
> 86400 and with start/end times covering a year.
> If you get a VDEF which is the average value of
> the year, then that will be the rate/second. To
> get rate/day you just need to multiply by 86400
> (seconds in a day) to get the rate/day.
> I'd also suggest you stufy Alex's tutorials at
> In particular, the ones on "Computing amount of
> data transfered when you want the TOTAL amount",
> and "Rates, normalizing and consolidating".
> Also note that your primary data points start/end
> on well defined step boundaries. These are ALWAYS
> a multiple of the step period from unix epoch
> (midnight, 1st Jan 1970 UTC). Rrdtool always
> works in UTC internally.
> Simon Hobson
> Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
> author Gladys Hobson. Novels - poetry - short stories - ideal as
> Christmas stocking fillers. Some available as e-books.
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rrd-users