Skip to content

Commit

Permalink
Update metric names
Browse files Browse the repository at this point in the history
* arb_inbox_latest_batch
* arb_inbox_latest_batch_message
  • Loading branch information
joshuacolvin0 committed Oct 10, 2023
1 parent 62b9941 commit a778d57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arbnode/inbox_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
)

var (
inboxBatchGauge = metrics.NewRegisteredGauge("arb/inbox/batch", nil)
inboxMessageGauge = metrics.NewRegisteredGauge("arb/inbox/message", nil)
inboxLatestBatchGauge = metrics.NewRegisteredGauge("arb/inbox/latest/batch", nil)
inboxLatestBatchMessageGauge = metrics.NewRegisteredGauge("arb/inbox/latest/batch/message", nil)
)

type InboxTracker struct {
Expand Down Expand Up @@ -683,8 +683,8 @@ func (t *InboxTracker) AddSequencerBatches(ctx context.Context, client arbutil.L
"l1Block", latestL1Block,
"l1Timestamp", time.Unix(int64(latestTimestamp), 0),
)
inboxBatchGauge.Update(int64(pos))
inboxMessageGauge.Update(int64(newMessageCount))
inboxLatestBatchGauge.Update(int64(pos))
inboxLatestBatchMessageGauge.Update(int64(newMessageCount))

if t.validator != nil {
t.validator.ReorgToBatchCount(startPos)
Expand Down

0 comments on commit a778d57

Please sign in to comment.