Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions logservice/eventstore/event_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ import (
)

var (
CounterKv = metrics.EventStoreReceivedEventCount.WithLabelValues("kv")
CounterResolved = metrics.EventStoreReceivedEventCount.WithLabelValues("resolved")
kvEventCount = metrics.EventStoreReceivedEventCount.WithLabelValues("kv")
resolvedEventCount = metrics.EventStoreReceivedEventCount.WithLabelValues("resolved")
scannedBytesMetrics = metrics.EventStoreScanBytes.WithLabelValues("scanned")
skippedBytesMetrics = metrics.EventStoreScanBytes.WithLabelValues("skipped")
)
Expand Down Expand Up @@ -612,7 +612,8 @@ func (e *eventStore) RegisterDispatcher(
subscriber.notifyFunc(ts, subStat.maxEventCommitTs.Load())
}
}
CounterResolved.Inc()
resolvedEventCount.Inc()
metrics.EventStoreNotifyDispatcherCount.Add(float64(len(subscribersData.subscribers)))
metrics.EventStoreNotifyDispatcherDurationHist.Observe(float64(time.Since(start).Seconds()))
}
}
Expand Down Expand Up @@ -1147,7 +1148,7 @@ func (e *eventStore) writeEvents(db *pebble.DB, events []eventWithCallback, enco
}
}
}
CounterKv.Add(float64(kvCount))
kvEventCount.Add(float64(kvCount))
metrics.EventStoreWriteBatchEventsCountHist.Observe(float64(kvCount))
metrics.EventStoreWriteBatchSizeHist.Observe(float64(batch.Len()))
metrics.EventStoreWriteBytes.Add(float64(batch.Len()))
Expand Down
Loading