Bug 534841 (RHQ-1599) - add descriptions to all metrics
Summary: add descriptions to all metrics
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-1599
Product: RHQ Project
Classification: Other
Component: Plugins
Version: unspecified
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: Joseph Marques
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-18 15:16 UTC by John Mazzitelli
Modified: 2014-11-09 22:48 UTC (History)
1 user (show)

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


Attachments (Terms of Use)

Description John Mazzitelli 2009-02-18 15:16:00 UTC
I noticed that some metrics in our plugins do not have descriptions. I noticed this because I hovered over one (Platform's Free Memory) and the tool tip told me "there is no description for this metric". We should go through all our plugins and add descriptions so users won't see that useless popup on our own plugins.

Comment 1 John Mazzitelli 2009-02-18 15:17:01 UTC
this is easy to do and should be done for 1.2

Comment 2 Heiko W. Rupp 2009-03-05 13:11:20 UTC
An alternative approach would be to just use the display name as description when no description is given.
Advantage is that this also works for plugins we don't have source for.
This can be easily done in the Metric Metadata  parser:

Index: rhq/modules/core/client-api/src/main/java/org/rhq/core/clientapi/agent/me
tadata/MetricsMetadataParser.java
===================================================================
--- rhq/modules/core/client-api/src/main/java/org/rhq/core/clientapi/agent/metad
ata/MetricsMetadataParser.java  (revision 3292)
+++ rhq/modules/core/client-api/src/main/java/org/rhq/core/clientapi/agent/metad
ata/MetricsMetadataParser.java  Thu Mar 05 14:08:26 CET 2009
@@ -111,12 +111,16 @@
             dataType), dataType, NumericType.valueOf(metricDescriptor.getMeasur
ementType().toUpperCase()),
             metricDescriptor.isDefaultOn(), collectionInterval, displayType);
 
-        definition.setDescription(metricDescriptor.getDescription());
         if (metricDescriptor.getDisplayName() != null) {
             definition.setDisplayName(metricDescriptor.getDisplayName());
         } else {
             definition.setDisplayName(StringUtils.deCamelCase(definition.getNam
e()));
         }
+        if (metricDescriptor.getDescription() != null) {
+            definition.setDescription(metricDescriptor.getDescription());
+        } else {
+            definition.setDescription(definition.getDisplayName());
+        }
 
         definition.setDestinationType(metricDescriptor.getDestinationType());

Comment 3 Heiko W. Rupp 2009-03-05 13:24:15 UTC
The patch from the last comment has been committed in rev3295

Comment 4 Joseph Marques 2009-03-05 16:16:06 UTC
granted, adding the name to the description field would give it some value, but since the name will always be displayed alongside the description it would only add redundancy for the sake of getting rid of empty table cells.  we should spend the necessary time to fill in all of the missing descriptions properly.

Comment 5 Heiko W. Rupp 2009-03-05 16:28:47 UTC
Ok.

Comment 6 Joseph Marques 2009-03-21 04:40:13 UTC
rev3473 - add descriptions to all metrics missing them;

Comment 7 Jeff Weiss 2009-03-31 15:04:02 UTC
I'm not going to be able to check every single metric, but I checked the one specifically mentioned in this jira (plat free mem) and will keep an eye out for other missing descriptions, and file issues separately.

Comment 8 Red Hat Bugzilla 2009-11-10 20:36:27 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1599



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