[rrd-users] Re: DST

This is a discussion on [rrd-users] Re: DST within the RRD Users forums, part of the Networking and Network Related category; On Tue, Mar 29, 2005 at 08:02:45AM -0800, SWATTON, JEANINE wrote: > Question re: DSTs. > > I ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-29-2005
Martin Schuster
 
Posts: n/a
Default [rrd-users] Re: DST

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\
| <schuster@isja.org> www.tabr.org Microsoft is the question // \\
| <Douglas@karanet.at> 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/42498...-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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0