我试图了解通过jolokia从cassandra集群中获得的jmx指标,但是没有成功,
我已经使用此jmx api来获取写入延迟
/read/org.apache.cassandra.metrics:type=Table,keyspace=dummy,scope=dummydata,name=WriteLatency
请帮助我理解指标,无法从文档中获得清晰的解释。
在哪里可以像使用nodetool的tablestats一样从该指标获得延迟值
{'status': 200, 'value': {'RateUnit': 'events/second', 'FiveMinuteRate': 1087.2892929429897, 'Max': 25109.16, '99thPercentile': 88.148, 'Count': 857256, '95thPercentile': 61.214, '98thPercentile': 73.45700000000001, 'MeanRate': 800.769491978301, '999thPercentile': 219.342, 'FifteenMinuteRate': 675.9521666587659, 'Mean': 35.578490977930414, 'StdDev': 133.86544518871287, 'DurationUnit': 'microseconds', 'Min': 11.865, 'OneMinuteRate': 774.2469977163188, '50thPercentile': 29.521, '75thPercentile': 35.425000000000004}, 'timestamp': 1552375557, 'request': {'type': 'read', 'mbean': 'org.apache.cassandra.metrics:keyspace=dummy,name=WriteLatency,scope=dummytable,type=Table'}}
答案 0 :(得分:0)
通过JMX读取指标,您将获得更多详细信息。这是nodetool tablestats输出与jmx输出匹配的方式:
nodetool tablestats dummykeyspace.dummytable | grep "Local write count" = org.apache.cassandra.metrics:keyspace=dummykeyspace,name=WriteLatency,scope=dummytable,type=Table Count
nodetool tablestats dummykeyspace.dummytable | grep "Local write latency" = org.apache.cassandra.metrics:keyspace=dummykeyspace,name=WriteLatency,scope=dummytable,type=Table Mean
这里是Cassandra指标的概述,显示了收集的指标的类型以及每个表可使用的指标: https://cassandra.apache.org/doc/latest/operating/metrics.html
如该页面上所述,指标由此处记录的代码管理:https://metrics.dropwizard.io/4.0.0/manual/core.html,对于回答有关在多长时间内计算指标的问题最有用。