eborcyk
Contributor
Contributor

Non number MBean attributes

Hello-

I have written a custom JMX plugin and am trying to expose MBean attributes that do not return numerical data.

I have an MBean that returns a boolean. For example

boolean getStatisticsEnabled().

I also have attributes that return Stings and String arrays. What is the proper way to expose these through Hyperic. It seems that metrics only display numerical values.

Thanks

-Eric
0 Kudos
1 Reply
admin
Immortal
Immortal

You are correct, metrics are architected to collect and store only
double values. You can represent boolean values as 0 or 1, much like
we do with availability. Strings are usually returned through the log
tracking system, rather than collected as metrics.

Charles