Bug 535971 (RHQ-370)

Summary: support better formatting for metrics with epoch-millis units
Product: [Other] RHQ Project Reporter: Jaroslaw Kijanowski <jkijanow>
Component: MonitoringAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: asantos, ccrouch, cwelton, hrupp, jshaughn, mharvey
Target Milestone: ---Keywords: FutureFeature, Improvement
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-370
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-12 19:34:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot_2.png none

Description Jaroslaw Kijanowski 2008-04-24 10:49:00 UTC
look at HibernateSessionFactory StartTime metric:

StartTime in the jmx-console is
1209032489124
but the metrics show
1,209,000,000,000.0

Comment 1 Heiko W. Rupp 2008-06-11 13:37:57 UTC
I think the displayed value is correct, but the formatting of the epoch_millis a little confusing.

What bothers me more is that this constant value (actually the start time stays constant as long as Hibernate / JBossAS is running) is a metric and no trait.

Comment 2 Red Hat Bugzilla 2009-11-10 21:07:55 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-370
Imported an attachment (id=368817)


Comment 3 wes hayutin 2010-02-16 21:09:14 UTC
Mass move to component = Monitoring

Comment 5 Joseph Marques 2010-12-20 22:19:31 UTC
currently, we don't support formatting Traits because they are string values and don't have associated units.  heiko, can you ballpark an estimate for how long it would take to enable supports units for traits (plugin descriptor [making sure it's forward compatible], parsing, db upgrade, metadata upgrade, units scaling, & ui display.

Comment 6 Heiko W. Rupp 2011-01-05 13:47:28 UTC
Units are already in the plugin descriptor, parsed and stored in the DB.

Getting the unit and formatting it would need a change in the query for traits to include the units from the definition and then if units!=0 to call the appropriate formatter like for numeric data. 
In addition the return type of some methods need to be changed (possibly to a composite).
CLI probably also needs an update.
I'd say: without CLI around 2 days. CLI at least one more day.