niket-goel commented on code in PR #12679: URL: https://github.com/apache/kafka/pull/12679#discussion_r978810724
########## 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> Review Comment: I was trying to remain true to the code. I agree that it is not the best description. Let me fix both. RE: the avg and max I think I made a mistake and picked up the sensor name instead of the metric name. this is tru for another few metrics here. Will fix all. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org