On Fri, 27 Oct 2000 lemming@xxxxxxxxxxxxxxxxxxx wrote:
>
> 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.
You should definately be able to replay/fetch them all with one pmFetch.
But note that for metrics collected using pmlogger at different sampling
rates, you will get a "staggered start" of metrics being available at
the beginning of the archive. Perhaps try replaying by starting at a time
stamp that is advanced forward from the start by (at least) an interval
equal to the longest sample time.
>
> 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 :( )
Could you send me a copy of your archive for me to test?
>
> 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)
I don't really see what's wrong with the debug stuff below. Can you please
explain in more detail?
thanks
-- Mark
>
>
> 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
>
|