Bug 535475 (RHQ-2166) - missing LateCollections metric in rhq agent plugin
Summary: missing LateCollections metric in rhq agent plugin
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-2166
Product: RHQ Project
Classification: Other
Component: Plugins
Version: unspecified
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-18 17:56 UTC by John Mazzitelli
Modified: 2014-11-09 22:49 UTC (History)
1 user (show)

Fixed In Version: 1.3
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2009-06-18 17:56:00 UTC
We are missing a "late collections" metric defined in the agent plugin.

From rhq-agent plugin's descriptor (note: 4 metrics):

         <metric property="CurrentlyScheduleMeasurements" displayType="summary"
                 description="The total number of active measurement schedules currently being collected by this RHQ Agent"/>
         <metric property="MeasurementsCollected" measurementType="trendsup" displayType="summary"
                 description="The total number of measurements collected since this RHQ Agent was started"/>
         <metric property="TotalTimeCollectingMeasurements" displayType="summary" units="milliseconds" measurementType="trendsup"
                 description="The amount of time this RHQ Agent has spent collecting measurements since it was started"/>
         <metric property="FailedCollections" displayType="summary" measurementType="trendsup"
                 description="The number of individual measurement collections that have failed since this RHQ Agent was started"/>

but the MeasurementManagerMBean has this (notice the getLateCollections method)

public interface MeasurementManagerMBean {

    long getMeasurementsCollected(); // metric #2 above
    long getMeasurementsCollectedPerMinute(); // ignored, we use getMeasurementsCollected in the descriptor above
    long getCurrentlyScheduleMeasurements(); // metric #1 above
    long getTotalTimeCollectingMeasurements(); // metric #3 above
    long getNextExpectedCollectionTime(); // ignored, we do not collect this
    long getLateCollections(); // WHY DOESN'T THE PLUGIN DEFINE A <metric> FOR THIS?????
    long getFailedCollections(); // metric #4 above


Comment 1 John Mazzitelli 2009-06-18 17:59:01 UTC
added this to rhq-plugin.xml for the agent plugin:

         <metric property="LateCollections" displayType="summary" measurementType="trendsup"
                 description="The number of individual measurement collections that have fallen behind from their desired schedule"/>


Comment 2 Jeff Weiss 2009-06-29 18:06:04 UTC
This metric now appears under Measurement Subsystem.  rev4181

Comment 3 Red Hat Bugzilla 2009-11-10 20:59:07 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2166



Note You need to log in before you can comment on or make changes to this bug.