Cassandra驱动程序未公开指标

问题描述 投票:0回答:1

我创建了一个cassandra集群和会话。

  val newSession = Cluster.builder().addContactPoint("localhost")
            .build().newSession()
    newSession.execute("SELECT * from workout.competitorsentity")
    return newSession

但是,当我为此jvm进入jconsole时,看不到cassandra jvm指标。我究竟做错了什么?

enter image description here

cassandra jmx
1个回答
0
投票

您在驱动程序中看不到Cassandra度量标准-驱动程序仅公开其度量标准,并且它们位于树的cluster1-metrics部分下(有关更多详细信息,请参见driver documentation about metrics

[如果需要查看Cassandra指标,则需要将JConsole连接到Cassandra进程本身(-es)(默认情况下,它们仅在localhost接口上可用,因此,如果您要从另一台机器)。

© www.soinside.com 2019 - 2024. All rights reserved.