简体   繁体   English

我们可以使用JMX监视Cassandra模式分歧吗

[英]Can we monitor Cassandra schema disagreement using JMX

I know that nodetool describecluster can give me information about schema disagreements in cassandra . 我知道nodetool describecluster可以为我提供有关cassandra中架构分歧的信息。 But, i am looking to see if that information is available via JMX .If it is available can some one point me fully-qualified package/metric name for this ? 但是,我正在寻找是否可以通过JMX获得该信息。如果可用,有人可以为此指定我完全限定的包装/度量名称吗?

I am trying setup alert for this using Prometheus . 我正在尝试使用Prometheus为此设置警报。

Yes, you can monitor it with JMX: 是的,您可以使用JMX对其进行监视:

ObjectName: org.apache.cassandra.db:type=StorageProxy
Attribute:  SchemaVersions

This will return a key/value pair, with a format similar to: 这将返回键/值对,其格式类似于:

eaceacea-eac7-eac6-eaca-eac75275b=[172.1.xx.xx, 172.1.xx.xx, 172.1.xx.xx]

All the nodes in the same cluster should match the UUID returned. 同一集群中的所有节点应与返回的UUID匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM