On Tue, Mar 29, 2005 at 08:02:45AM -0800, SWATTON, JEANINE wrote: > Question re: DSTs. > > I would like to get data from a socket every 2 seconds (packet data) and > get the number of packets received every second. Since the packet data > is available only every 2 seconds, I was planning on getting the 1st set > of data, and dividing it by 2, then the next 2 seconds, getting that > data, divide it by 2, then get the difference between the 1st set and > the 2nd set. Then store that into the database. > That is one possibility, but if your interval is not exactly 2s, it will give you inaccurate results. > I guess I am not sure what DST to use. If I use COUNTER or GAUGE? I > believe Counter stores the actual value but the amount has to be > than > the previous amount stored. > COUNTER would be the correct DST to use. The amount has to be greater _or equal_ the previous amount, and it automatically does the substraction and division you would otherwise have to do yourself. hth, -- +------------------------------------------------------------------* .-. | Martin Schuster Microsoft is not the answer /v\ | www.tabr.org Microsoft is the question // \\ | ICQ# 20511117 "Linux!" is the answer /( )\ +--------------------------------------------------------------* ^^-^^ -- Attached file removed by Ecartis and put at URL below -- -- Type: application/pgp-signature -- Desc: Digital signature -- Size: 190 bytes -- URL : http://www.ee.ethz.ch/~slist/p/4249821927950-signature.asc -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi