Discussion:
Question about graph scale and units
L P
2011-10-19 07:43:41 UTC
Permalink
L P [http://community.zenoss.org/people/GOM] created the discussion

"Question about graph scale and units"

To view the discussion, visit: http://community.zenoss.org/message/61965#61965

--------------------------------------------------------------
I'm having trouble getting the right units for some of my graphs.
Loading Image... Loading Image...

Essentially I have a Nagios-style data source:

redacted OK datapoint 94630 | redacted=94630;;;;

The problem is that "1.0" on the Y axis really reflects 100 (one hundred). No idea why the data is off by factor of 10.

I've actually fiddled with the graph definition a bit trying to get what I'm after. What I want it to say is something like "0" to "200", without the si units, and showing the real values from the check (without being off by *(-10) )

Anyone understand why this could happen and how to correct it?

Here's what the setup looks like:

*Data source:*
Loading Image... Loading Image...
*Data point:*
*Loading Image... Loading Image...*
*Graph Definition:*
*Loading Image... Loading Image...*
I changed the Y to 0, 1 trying to adjust the Y. Still the data shown is off by factor of -10

*Graph Point*
*Loading Image... Loading Image...
*
Forgive the "redactions". Understand that probably looks sort of insane.

*rrdtool info:*

rrd_version = "0003"
step = 60
last_update = 1319009170
ds[ds0].index = 0
ds[ds0].type = "DERIVE"
ds[ds0].minimal_heartbeat = 180
ds[ds0].min = 0.0000000000e+00
ds[ds0].max = 1.0000000000e+02
ds[ds0].last_ds = "94694"
ds[ds0].value = 1.7567606446e-01
ds[ds0].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 506
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 600
rra[1].cur_row = 389
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 8.0405398926e-02
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 600
rra[2].cur_row = 412
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 3.9707206559e-01
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 600
rra[3].cur_row = 524
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 4.4772179655e+00
rra[3].cdp_prep[0].unknown_datapoints = 1
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].cur_row = 324
rra[4].pdp_per_row = 6
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = 5.5253545695e-02
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 600
rra[5].cur_row = 122
rra[5].pdp_per_row = 24
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 6.1702723498e-02
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 600
rra[6].cur_row = 60
rra[6].pdp_per_row = 288
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 9.8553624547e-02
rra[6].cdp_prep[0].unknown_datapoints = 1

*Sample of the rrd data:*

    <rra>
        <cf> MAX </cf>
        <pdp_per_row> 288 </pdp_per_row> <!-- 17280 seconds -->


        <params>
        <xff> 5.0000000000e-01 </xff>
        </params>
        <cdp_prep>
            <ds>
            <primary_value> 2.4599590045e-01 </primary_value>
            <secondary_value> 1.5169713868e-02 </secondary_value>
            <value> 9.8553624547e-02 </value>
            <unknown_datapoints> 1 </unknown_datapoints>
            </ds>
        </cdp_prep>
        <database>
            <!-- 2011-06-21 02:36:00 PDT / 1308648960 --> <row><v> NaN </v></row>
            <!-- 2011-06-21 07:24:00 PDT / 1308666240 --> <row><v> NaN </v></row>
            <!-- 2011-06-21 12:12:00 PDT / 1308683520 --> <row><v> NaN </v></row>
            <!-- 2011-06-21 17:00:00 PDT / 1308700800 --> <row><v> NaN </v></row>
                ...
            <!-- 2011-10-16 12:12:00 PDT / 1318792320 --> <row><v> NaN </v></row>
            <!-- 2011-10-16 17:00:00 PDT / 1318809600 --> <row><v> 1.5422079788e-01 </v></row>
            <!-- 2011-10-16 21:48:00 PDT / 1318826880 --> <row><v> 1.2992281824e-01 </v></row>
            <!-- 2011-10-17 02:36:00 PDT / 1318844160 --> <row><v> 6.5458858960e-02 </v></row>
            <!-- 2011-10-17 07:24:00 PDT / 1318861440 --> <row><v> 6.5886740669e-02 </v></row>
            <!-- 2011-10-17 12:12:00 PDT / 1318878720 --> <row><v> 1.6210659727e-01 </v></row>
            <!-- 2011-10-17 17:00:00 PDT / 1318896000 --> <row><v> 2.4225769319e+00 </v></row>
            <!-- 2011-10-17 21:48:00 PDT / 1318913280 --> <row><v> 1.9872074442e-01 </v></row>
            <!-- 2011-10-18 02:36:00 PDT / 1318930560 --> <row><v> 9.8006705302e-02 </v></row>
            <!-- 2011-10-18 07:24:00 PDT / 1318947840 --> <row><v> 6.6096604365e-02 </v></row>
            <!-- 2011-10-18 12:12:00 PDT / 1318965120 --> <row><v> 4.3653869153e-01 </v></row>
            <!-- 2011-10-18 17:00:00 PDT / 1318982400 --> <row><v> 4.9173219146e-01 </v></row>
            <!-- 2011-10-18 21:48:00 PDT / 1318999680 --> <row><v> 2.4599590045e-01 </v></row>
        </database>
    </rra>
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61965#61965]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
omeganon
2011-10-19 17:05:34 UTC
Permalink
omeganon [http://community.zenoss.org/people/omeganon] created the discussion

"Re: Question about graph scale and units"

To view the discussion, visit: http://community.zenoss.org/message/61995#61995

--------------------------------------------------------------
I don't see any obvious reasons for it. With DERIVE, RRDtool is storing rates (objs/s); are you *sure* that you're really doing 1-200/s?

Note that your ds0 max is 100 so if you have any rates that are > 100/s, they will be logged as UNKNOWN --

ds[ds0].max = 1.0000000000e+02


--
Marc
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61995#61995]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
GOM
2011-10-19 20:10:57 UTC
Permalink
GOM [http://community.zenoss.org/people/GOM] created the discussion

"Re: Question about graph scale and units"

To view the discussion, visit: http://community.zenoss.org/message/62003#62003

--------------------------------------------------------------
Weird. Yeah absolutely sure the rate is 1-200/m (minute, cycle time 60). This is happening with my other graphs which use the same method of data collection as well. They all look like:

foo OK datapoint 5683 | foo=5683;;;;

For instance the data here is also DERIVE and reflects a deviation per cycle of ~0-10, but it seems to be recorded as 0m -10m. I can get rid of the si unit with the format option, but the data the graph shows is still off... So still seeking clues.

About the ds[ds0].max, do you think I can change that on the fly or should I have to recreate from scratch?

Cheers.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62003#62003]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
omeganon
2011-10-19 21:03:59 UTC
Permalink
omeganon [http://community.zenoss.org/people/omeganon] created the discussion

"Re: Question about graph scale and units"

To view the discussion, visit: http://community.zenoss.org/message/62004#62004

--------------------------------------------------------------
No matter what your cycle time, RRDTool always stores all COUNTERS and DERIVES as units/second, not units/minute or units/arbitraryinterval. It knows the last value it received and the timestamp of that last entry. It uses those to convert your current input into a per second value. That's just how RRDTool works when dealing with rates.

If your delta between cycle times is 1, then RRDTool stores 0.01 (1/60s = 0.01).
If your delta between cycle times is 100, then RRDTool stores 1.7 (100/60s = 1.7).
If your delta between cycle times is 200, then RRDTool stores 3.3 (200/60s = 3.3).

What I think you're looking for is to add an RPN to the graph to muliply the values by 60 (60,*).
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62004#62004]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
GOM
2011-11-06 00:01:51 UTC
Permalink
GOM [http://community.zenoss.org/people/GOM] created the discussion

"Re: Question about graph scale and units"

To view the discussion, visit: http://community.zenoss.org/message/62446#62446

--------------------------------------------------------------
I believe the "60, *" RPN is the solution.
Moreover, when using a cyle time of say 10 min / 600, using RPN of "600, *", etc.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62446#62446]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...