Jesse Becker wrote:
> This is subtle, actually, and requires some background  The RRD files
> are created by gmetad when received (gmetric sends the information as
> defined in gmond.conf, gmetric picks that information up from gmond).
> Metrics sent via gmetric also have a "slope" attribute defined as
> follows:
>     -s, --slope=STRING  Either zero|positive|negative|both  (default=`both')
>
> If you dig around in the gmetad code, there's a very short section
> that determines if GAUGE or COUNTER will be used, and it uses this
> "slope" attribute.  Specifically, COUNTER is used for slope=positive,
> and GAUGE for everything else.
>
> So, try using --slope=positive when you call gmetric.  (Technically,
> you might need to call it only once when the rrd is created.)
>   
I'm sorry to report that this did not work for me.   Executed the 
following commands and all created RRDs set to GAUGE with an large 
initial value. This messes up scaling in the graphs and will involve 
explanations to those who will read the data.

Can anybody see from my examples below why I am not getting anywere?  
I'm using Ganglia 3.0.6-1.el5.

Thanks,
</edg>

 From history:
  gmetric -nweb_test -v 100 -t int32 -uHits --slope=positive
  gmetric -nweb_test_n -v 100 -t int32 -uHits --slope=negative
  gmetric -nweb_test_z -v 100 -t int32 -uHits --slope=zero
  gmetric -nweb_test_b -v 100 -t int32 -uHits --slope=both

web_test_b.rrd
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 15 </step> <!-- Seconds -->
        <lastupdate> 1224268687 </lastupdate> <!-- 2008-10-17 11:38:07 
PDT -->

        <ds>
                <name> sum </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 120 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 100 </last_ds>
                <value> 7.0000000000e+02 </value>
                <unknown_sec> 0 </unknown_sec>
web_test_n.rrd
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 15 </step> <!-- Seconds -->
        <lastupdate> 1224268687 </lastupdate> <!-- 2008-10-17 11:38:07 
PDT -->

        <ds>
                <name> sum </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 120 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 100 </last_ds>
                <value> 7.0000000000e+02 </value>
                <unknown_sec> 0 </unknown_sec>
web_test.rrd
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 15 </step> <!-- Seconds -->
        <lastupdate> 1224268687 </lastupdate> <!-- 2008-10-17 11:38:07 
PDT -->

        <ds>
                <name> sum </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 120 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 100 </last_ds>
                <value> 7.0000000000e+02 </value>
                <unknown_sec> 0 </unknown_sec>
web_test_z.rrd
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 15 </step> <!-- Seconds -->
        <lastupdate> 1224268687 </lastupdate> <!-- 2008-10-17 11:38:07 
PDT -->

        <ds>
                <name> sum </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 120 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 100 </last_ds>
                <value> 7.0000000000e+02 </value>
                <unknown_sec> 0 </unknown_sec>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to