GAUGE negative values

View: New views
4 Messages — Rating Filter:   Alert me  

GAUGE negative values

by R Dicaire :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I understand the documentation correctly, type GAUGE cannot have
negative values input into the rrd database?

If such is the case do I need to perform some math on the actual value
to create a positive integer forst before inputting to rrd update?

Thanks
--
aRDy Music and Rick Dicaire present:
http://www.ardynet.com
http://www.ardynet.com:9000/ardymusic.ogg.m3u

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: GAUGE negative values

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi R,

GAUGE hasno problem with negative values if you do not add a
minimum of 0 when setting up the rrd file ... if you did, you can
change things later using rrdtool tune.

cheers
tobi

Today R Dicaire wrote:

> If I understand the documentation correctly, type GAUGE cannot have
> negative values input into the rrd database?
>
> If such is the case do I need to perform some math on the actual value
> to create a positive integer forst before inputting to rrd update?
>
> Thanks
>

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi@... ++41 62 775 9902 / sb: -9900

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: GAUGE negative values

by Pablo Sanchez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[ Comments below, in line ]

On Monday 29 June 2009 at 11:41 am, R Dicaire penned
about "[rrd-users] GAUGE negative values"

> If I understand the documentation correctly, type GAUGE cannot have
> negative values input into the rrd database?
>

Howdy,

Adding to what Tobi said, yes GAUGE has no issues with negative
values.  Below is an excerpt of my RRD creation.  I think the metrics
are obvious.  :)

   rrdtool create $GENERAL_FILE --step $COLLECTION_INTERVAL_5M \
      DS:temperature:GAUGE:$UNKNOWN_5M:-90:80 \
      DS:humidity:GAUGE:$UNKNOWN_5M:0:100 \
      DS:barometer:GAUGE:$UNKNOWN_5M:700:1050 \
      DS:daily_rain:GAUGE:$UNKNOWN_5M:0:1000 \
      DS:wind_chill:GAUGE:$UNKNOWN_5M:-100:1.67 \
      DS:humidex:GAUGE:$UNKNOWN_5M:9:80 \
      DS:dew_point:GAUGE:$UNKNOWN_5M:-100:80 \

Cheers,
--
Pablo Sanchez - Blueoak Database Engineering, Inc
Ph:    819.459.1926      Fax:   760.860.5225 (US)

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: GAUGE negative values

by A Darren Dunham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 29, 2009 at 11:41:56AM -0400, R Dicaire wrote:
> If I understand the documentation correctly, type GAUGE cannot have
> negative values input into the rrd database?

What part of the documentation suggests this?

> If such is the case do I need to perform some math on the actual value
> to create a positive integer forst before inputting to rrd update?

Nope.

--
Darren

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users