Red Hat Bugzilla – Bug 857144
Display of epoch_milliseconds, epoch_seconds values support
Last modified: 2012-09-20 12:38:44 EDT
It appears setting the units for a measurement to 'epoch_milliseconds' doesn't format the value as an actual date/time when the value is displayed. Instead is displayed a large number.
description="last processing date"
I'm guessing there is some code missing in here to do the format:
I do see some code in:
but it seems like this is no longer used?
Could you please describe your use case? What plugin is it? Did you consider using the dataType="trait" attribute?
This is my own plugin.
My particular use case is this metric:
description="HBase last processing date"
I have a component that loads data periodically (say, every minute),
but regularly into HBase. This metric tracks the last time data was
completely loaded. I get this from parsing an actual string from a
As a trait, the value would change very frequently. RHQ would store a
new value for the trait, as a String, every time the metric was
But as a measurement, RHQ would instead store a 'double'. Storing as a
metric allows for a few different things as well:
1. Change formatting depending on the browser & user local time zone.
2. See trending. Ideally, the 'last time' would increase at a steady rate.
3. Alarm if the value does not change.
4. Alarm if the value is, say, 1 hour ago and the threshold is 10 minutes.
Alternatively, the metric could be defined as a relative time value:
description="For HBase, how many seconds ago was the
I don't really mind switching to relative time, but it seems
reasonable to support this in the UI.