pcp
[Top] [All Lists]

Getting differently-sampled values from PCP archive

To: pcp@xxxxxxxxxxx
Subject: Getting differently-sampled values from PCP archive
From: lemming@xxxxxxxxxxxxxxxxxxx
Date: Fri, 27 Oct 2000 11:22:14 +0200
Sender: owner-pcp@xxxxxxxxxxx
   Hello, it is me again ;)

   While developing PCPMON, I have come to a thing I believe is not my fault: I
have archive with metrics 'apache.total_accesses' (A) and 'apache.total_kbytes'
(B) gathered every 5 minutes and 'apache.busy_servers' (C) gathered every 30
seconds.  (There are also another metrics but they don't matter now).

   When I want to create graph from these metrics, I am trying to get them all
with one pmFetch(). But the fetch returns relevant data only for metric C, for
metrics A and B it returns nonsense (see below). However, when I remove C from
the graph, data are gathered OK.

   What is interesting - it "doesn't work" only in forward mode, in
interpolation mode the values are OK (but values at end/beginning of the archive
are irrelevant :( )

   Debug outputs with explanation are below. What do you think? Can I do
somethink to make it work. (I have used pcp 2.1.10)

                                                        Michal


  There is debug output I got when gathering all three metrics. The 'Gathering
for' value is an unix timestamp (secs.usecs):

Gathering for 972368157.0
Gathering for 972368277.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=64.000000
Gathering for 972368337.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=64.000000
Gathering for 972368397.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=47.000000
Gathering for 972368457.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=38.000000
Gathering for 972368517.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=47.000000
Gathering for 972368577.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=40.000000
Gathering for 972368637.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=60.000000
Gathering for 972368697.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=43.000000
Gathering for 972368757.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=34.000000
Gathering for 972368817.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=37.000000
Gathering for 972368877.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=43.000000
Gathering for 972368937.0
apache.total_accesses=135075376.000000
apache.total_kbytes=135075344.000000
apache.busy_servers=36.000000

And now follows data for only first two metrics - they are OK.

Gathering for 972368157.0
Gathering for 972368277.0
apache.total_accesses=215047.000000
apache.total_kbytes=290007.000000
Gathering for 972368337.0
apache.total_accesses=215047.000000
apache.total_kbytes=290007.000000
Gathering for 972368397.0
apache.total_accesses=215047.000000
apache.total_kbytes=290007.000000
Gathering for 972368457.0
apache.total_accesses=215047.000000
apache.total_kbytes=290007.000000
Gathering for 972368517.0
apache.total_accesses=215047.000000
apache.total_kbytes=290007.000000
Gathering for 972368577.0
apache.total_accesses=215047.000000
apache.total_kbytes=290007.000000
Gathering for 972368637.0
apache.total_accesses=217342.000000
apache.total_kbytes=293630.000000
Gathering for 972368697.0
apache.total_accesses=217342.000000
apache.total_kbytes=293630.000000
Gathering for 972368757.0
apache.total_accesses=217342.000000
apache.total_kbytes=293630.000000
Gathering for 972368817.0
apache.total_accesses=217342.000000
apache.total_kbytes=293630.000000
Gathering for 972368877.0
apache.total_accesses=217342.000000
apache.total_kbytes=293630.000000
Gathering for 972368937.0
apache.total_accesses=219576.000000
apache.total_kbytes=297111.000000

<Prev in Thread] Current Thread [Next in Thread>