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
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"/>
This metric now appears under Measurement Subsystem. rev4181
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2166