Skip to content

Commit

Permalink
kvserver: remove obsolete RaftEnqueuePending metric
Browse files Browse the repository at this point in the history
This metric was replaced by SendQueueSize of RaftTransportMetircs.

Release note: None
  • Loading branch information
pav-kv committed Aug 10, 2022
1 parent 5d51ab3 commit 827d310
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
12 changes: 0 additions & 12 deletions pkg/kv/kvserver/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,15 +968,6 @@ handling consumes writes.
Unit: metric.Unit_BYTES,
}

metaRaftEnqueuedPending = metric.Metadata{
Name: "raft.enqueued.pending",
Help: `Number of pending outgoing messages in the Raft Transport queue.
The queue is bounded in size, so instead of unbounded growth one would observe a
ceiling value in the tens of thousands.`,
Measurement: "Messages",
Unit: metric.Unit_COUNT,
}
metaRaftCoalescedHeartbeatsPending = metric.Metadata{
Name: "raft.heartbeats.pending",
Help: "Number of pending heartbeats and responses waiting to be coalesced",
Expand Down Expand Up @@ -1753,7 +1744,6 @@ type StoreMetrics struct {

RaftPausedFollowerCount *metric.Gauge

RaftEnqueuedPending *metric.Gauge
RaftCoalescedHeartbeatsPending *metric.Gauge

// Replica queue metrics.
Expand Down Expand Up @@ -2264,8 +2254,6 @@ func newStoreMetrics(histogramWindow time.Duration) *StoreMetrics {

RaftPausedFollowerCount: metric.NewGauge(metaRaftFollowerPaused),

RaftEnqueuedPending: metric.NewGauge(metaRaftEnqueuedPending),

// This Gauge measures the number of heartbeats queued up just before
// the queue is cleared, to avoid flapping wildly.
RaftCoalescedHeartbeatsPending: metric.NewGauge(metaRaftCoalescedHeartbeatsPending),
Expand Down
2 changes: 0 additions & 2 deletions pkg/kv/kvserver/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -3287,8 +3287,6 @@ func (s *Store) updateReplicationGauges(ctx context.Context) error {
s.metrics.ClosedTimestampMaxBehindNanos.Update(nanos)
}

s.metrics.RaftEnqueuedPending.Update(s.cfg.Transport.queuedMessageCount())

return nil
}

Expand Down
4 changes: 0 additions & 4 deletions pkg/ts/catalog/chart_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -1728,10 +1728,6 @@ var charts = []sectionDescription{
Title: "Commands Count",
Metrics: []string{"raft.commandsapplied"},
},
{
Title: "Enqueued",
Metrics: []string{"raft.enqueued.pending"},
},
{
Title: "Keys/Sec Avg.",
Metrics: []string{"rebalancing.writespersecond"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,6 @@ export const getNodeStatus = () => {
"queue.tsmaintenance.process.success": 3,
"queue.tsmaintenance.processingnanos": 174301000,
"raft.commandsapplied": 0,
"raft.enqueued.pending": 0,
"raft.entrycache.accesses": 485,
"raft.entrycache.bytes": 217172,
"raft.entrycache.hits": 331,
Expand Down

0 comments on commit 827d310

Please sign in to comment.