Skip to content
代码片段 群组 项目
未验证 提交 5146c5a6 编辑于 作者: Guozhang Wang's avatar Guozhang Wang 提交者: GitHub
浏览文件

MINOR: Update doc for raft state metrics (#9342)

Reviewers:  Jason Gustafson <jason@confluent.io>
上级 e0f215bb
No related branches found
No related tags found
无相关合并请求
......@@ -64,7 +64,7 @@ public class KafkaRaftMetrics implements AutoCloseable {
this.numUnknownVoterConnections = 0;
this.logEndOffset = new OffsetAndEpoch(0L, 0);
this.currentStateMetricName = metrics.metricName("current-state", metricGroupName, "The current state of this member; possible values are leader, candidate, follower, observer");
this.currentStateMetricName = metrics.metricName("current-state", metricGroupName, "The current state of this member; possible values are leader, candidate, voted, follower, unattached");
Gauge<String> stateProvider = (mConfig, currentTimeMs) -> {
if (state.isLeader()) {
return "leader";
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册