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 <crawfordxx@users.noreply.github.com>
This commit is contained in:
crawfordxx 2026-03-16 12:29:02 +08:00
parent 8b25b26a76
commit afaff7e116
3 changed files with 3 additions and 3 deletions

View File

@ -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,
})

View File

@ -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.

View File

@ -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