Skip to content

Commit

Permalink
Add current Raft state metric to the exported metrics (#10533)
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Scholz <[email protected]>
  • Loading branch information
scholzj authored Sep 4, 2024
1 parent c12ed36 commit fd74272
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packaging/examples/metrics/kafka-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ data:
- pattern: "kafka.server<type=raft-metrics><>(.+-total|.+-max):"
name: kafka_server_raftmetrics_$1
type: COUNTER
- pattern: "kafka.server<type=raft-metrics><>(current-state): (.+)"
name: kafka_server_raftmetrics_$1
value: 1
type: UNTYPED
labels:
$1: "$2"
- pattern: "kafka.server<type=raft-metrics><>(.+):"
name: kafka_server_raftmetrics_$1
type: GAUGE
Expand Down

0 comments on commit fd74272

Please sign in to comment.