From afaff7e116169d8423e8d90bbfc58470ce24382c Mon Sep 17 00:00:00 2001 From: crawfordxx Date: Mon, 16 Mar 2026 12:29:02 +0800 Subject: [PATCH] Fix typos in comments and metric help strings - limt -> limit (storage/remote/queue_manager.go metric help text) - exluded -> excluded (tsdb/compact.go comment) - wont -> won't (tsdb/head.go comment) Signed-off-by: crawfordxx --- storage/remote/queue_manager.go | 2 +- tsdb/compact.go | 2 +- tsdb/head.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/remote/queue_manager.go b/storage/remote/queue_manager.go index e650b0b5fd..a4f4fcd08e 100644 --- a/storage/remote/queue_manager.go +++ b/storage/remote/queue_manager.go @@ -325,7 +325,7 @@ func newQueueManagerMetrics(r prometheus.Registerer, rn, e string) *queueManager Namespace: namespace, Subsystem: subsystem, Name: "max_samples_per_send", - Help: "The maximum number of samples to be sent, in a single request, to the remote storage. Note that, when sending of exemplars over remote write is enabled, exemplars count towards this limt.", + Help: "The maximum number of samples to be sent, in a single request, to the remote storage. Note that, when sending of exemplars over remote write is enabled, exemplars count towards this limit.", ConstLabels: constLabels, }) diff --git a/tsdb/compact.go b/tsdb/compact.go index 7091d34d50..eafa7d53e3 100644 --- a/tsdb/compact.go +++ b/tsdb/compact.go @@ -171,7 +171,7 @@ type LeveledCompactorOptions struct { // MergeFunc is used for merging series together in vertical compaction. By default storage.NewCompactingChunkSeriesMerger(storage.ChainedSeriesMerge) is used. MergeFunc storage.VerticalChunkSeriesMergeFunc - // BlockExcludeFilter is used to decide which blocks are exluded from compactions. + // BlockExcludeFilter is used to decide which blocks are excluded from compactions. BlockExcludeFilter BlockExcludeFilterFunc // EnableOverlappingCompaction enables compaction of overlapping blocks. In Prometheus it is always enabled. diff --git a/tsdb/head.go b/tsdb/head.go index 33a32cad8a..df2f7045b4 100644 --- a/tsdb/head.go +++ b/tsdb/head.go @@ -757,7 +757,7 @@ func (h *Head) Init(minValidTime int64) error { snapIdx, snapOffset = -1, 0 // If this fails, data will be recovered from WAL. - // Hence we wont lose any data (given WAL is not corrupt). + // Hence we won't lose any data (given WAL is not corrupt). mmappedChunks, oooMmappedChunks, lastMmapRef, err = h.removeCorruptedMmappedChunks(err) if err != nil { return err