Skip to content

Commit

Permalink
MINOR: Update doc for raft state metrics (apache#9342)
Browse files Browse the repository at this point in the history
Reviewers:  Jason Gustafson <[email protected]>
  • Loading branch information
guozhangwang authored and javierfreire committed Oct 8, 2020
1 parent b16c00d commit 3a4e544
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public KafkaRaftMetrics(Metrics metrics, String metricGrpPrefix, QuorumState sta
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";
Expand Down

0 comments on commit 3a4e544

Please sign in to comment.