[rrd-users] Re: 2 wishes in creating archives
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Wed Jun 12 22:46:33 MEST 2002
Stefan Huelbrock wrote:
> 2nd problem seems to be bigger and is harder to explain (at least I guess):
> I plot (at least part of the graphs) with rather high res (1minute scale). And because I'm depending on the
> squids access-log I get really "fuzzy" Values, that means big differences from timestep to timestep.
> (Reason behind this is that the access log reports a transfer as it is completed, not while it's in progress. That
> means that with a E1-line I sometimes get legal values that are far beyond the legal limit of 15MBytes/min
Doesn't squid also log the amount of time needed to complete a request?
There may be multiple requests in parallel so you cannot just enter
the data at the time you see it in the log. What you can do however
is process the log in the following manner:
1) determine the largest amount of time a request can take. There will
be some timeout value (for instance: one hour)
2) collect all entries from the log that
a) you didn't process before
b) are describing requests 'n' seconds ago or earlier (where n is
calculated in step 1)
3) for each request: the rate is the amount of bytes (column 5?) divided
by the amount of time (column 2 in ms?)
Calculate the total rate for each second by summing up all rates
during each second; update the database which should have GAUGE and
'--step 1'. You use gauge because you calculated the rate yourself.
You use a one-second step time to get high granularity of your input.
The RRA can then store an average of 60 steps per row, no need to
have that in a higher resolution than you're going to display.
I think a process like this may help to get more appropriate values.
There's some programming to do but it should be possible.
HTH
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list