niket-goel commented on code in PR #12679:
URL: https://github.com/apache/kafka/pull/12679#discussion_r978811138
##########
docs/ops.html:
##########
@@ -1815,6 +1815,162 @@ <h4 class="anchor-heading"><a id="remote_jmx"
class="anchor-link"></a><a href="#
</tr>
</tbody></table>
+<h5 class="anchor-heading"><a id="kraft_monitoring" class="anchor-link"></a><a
href="#kraft_monitoring">KRaft Metrics</a></h5>
+All of the following metrics allow monitoring of the KRaft quourm and
+<table class="data-table">
+ <tbody>
+ <tr>
+ <th>Metric/Attribute name</th>
+ <th>Description</th>
+ <th>Mbean name</th>
+ </tr>
+ <tr>
+ <td>Current State</td>
+ <td>The current state of this member; possible values are leader,
candidate, voted, follower, unattached.</td>
+ <td>kafka.raft:type=raft-metrics,name=Current-state</td>
+ </tr>
+ <tr>
+ <td>Current Leader</td>
+ <td>The current quorum leader's id; -1 indicates unknown.</td>
+ <td>kafka.raft:type=raft-metrics,name=current-leader</td>
+ </tr>
+ <tr>
+ <td>Current Voted</td>
+ <td>The current voted leader's id; -1 indicates not voted for anyone.</td>
+ <td>kafka.raft:type=raft-metrics,name=current-vote</td>
+ </tr>
+ <tr>
+ <td>Current Epoch</td>
+ <td>The current quorum epoch.</td>
+ <td>kafka.raft:type=raft-metrics,name=current-epoch</td>
+ </tr>
+ <tr>
+ <td>High Watermark</td>
+ <td>The high watermark maintained on this member; -1 if it is unknown.</td>
+ <td>kafka.raft:type=raft-metrics,name=high-watermark</td>
+ </tr>
+ <tr>
+ <td>Log End Offset</td>
+ <td>The current raft log end offset.</td>
+ <td>kafka.raft:type=raft-metrics,name=log-end-offset</td>
+ </tr>
+ <tr>
+ <td>Election Latency</td>
+ <td>The time in milliseconds to elect a new leader.</td>
+ <td>kafka.raft:type=raft-metrics,name=election-latency</td>
+ </tr>
+ <tr>
+ <td>Fetch Records</td>
+ <td>The average number of records fetched from the leader of the raft
quorum.</td>
+ <td>kafka.raft:type=raft-metrics,name=fetch-records</td>
Review Comment:
The description in code says that it is. Let me verify the value and update
both of needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]