If you look at VisualVM metadata, it'll show that what's return is
java.lang.Object which is different than Meters or Counters.
Looking at the source for metrics-core, it seems that this is a feature
of Gauges because unlike Meters or Counters, Gauges can be of various types
-- long, double, etc. Cassandra source sets them up as longs, however the
JMXReporter class in metrics-core always exposes them as Objects.
On Mon, Aug 4, 2014 at 7:32 PM, Patricia Gorla patri...@thelastpickle.com
wrote:
Mike,
What metrics reporter are you using? How are you attempting to access the
metric?
On Sat, Aug 2, 2014 at 7:30 AM, mike maomao...@gmail.com wrote:
Dear All
We are trying to monitor Cassandra using JMX. The monitoring tool we
are using works fine for meters, However, if the metrcis are collected
using gauge, the data type is object, then, our tool treat it as a string
instead of a double. for example
org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Capacity
The Type of Attribute (Value) is java.lang.Object
is it possible to implement the datatype of gauge as numeric types
instead of object, or other way around for example using metric
reporter...etc?
Thanks a lot for any suggestion!
Best Regard!
Mike
--
Patricia Gorla
@patriciagorla
Consultant
Apache Cassandra Consulting
http://www.thelastpickle.com http://thelastpickle.com
--
*Ken Hancock *| System Architect, Advanced Advertising
SeaChange International
50 Nagog Park
Acton, Massachusetts 01720
ken.hanc...@schange.com | www.schange.com | NASDAQ:SEAC
http://www.schange.com/en-US/Company/InvestorRelations.aspx
Office: +1 (978) 889-3329 | [image: Google Talk:]
ken.hanc...@schange.com | [image:
Skype:]hancockks | [image: Yahoo IM:]hancockks [image: LinkedIn]
http://www.linkedin.com/in/kenhancock
[image: SeaChange International]
http://www.schange.com/This e-mail and any attachments may contain
information which is SeaChange International confidential. The information
enclosed is intended only for the addressees herein and may not be copied
or forwarded without permission from SeaChange International.