Red Hat Bugzilla – Bug 535971
support better formatting for metrics with epoch-millis units
Last modified: 2014-05-12 15:34:32 EDT
look at HibernateSessionFactory StartTime metric:
StartTime in the jmx-console is
but the metrics show
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.
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-370
Imported an attachment (id=368817)
Mass move to component = Monitoring
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.
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.