diff --git a/pkg/storage/tsdb/bucketindex/index.go b/pkg/storage/tsdb/bucketindex/index.go index 987d528ed0..8ef1501550 100644 --- a/pkg/storage/tsdb/bucketindex/index.go +++ b/pkg/storage/tsdb/bucketindex/index.go @@ -209,7 +209,7 @@ func (m *BlockDeletionMark) GetDeletionTime() time.Time { return time.Unix(m.DeletionTime, 0) } -// ThanosMeta returns the Thanos deletion mark. +// ThanosDeletionMark returns the Thanos deletion mark. func (m *BlockDeletionMark) ThanosDeletionMark() *metadata.DeletionMark { return &metadata.DeletionMark{ ID: m.ID, diff --git a/pkg/storage/tsdb/config.go b/pkg/storage/tsdb/config.go index 8cb5f36a47..2d2458bd12 100644 --- a/pkg/storage/tsdb/config.go +++ b/pkg/storage/tsdb/config.go @@ -235,7 +235,7 @@ func (cfg *TSDBConfig) BlocksDir(userID string) string { return filepath.Join(cfg.Dir, userID) } -// IsShippingEnabled returns whether blocks shipping is enabled. +// IsBlocksShippingEnabled returns whether blocks shipping is enabled. func (cfg *TSDBConfig) IsBlocksShippingEnabled() bool { return cfg.ShipInterval > 0 } diff --git a/pkg/util/limiter/query_limiter.go b/pkg/util/limiter/query_limiter.go index aa2261f7e6..f05257499e 100644 --- a/pkg/util/limiter/query_limiter.go +++ b/pkg/util/limiter/query_limiter.go @@ -65,7 +65,7 @@ func QueryLimiterFromContextWithFallback(ctx context.Context) *QueryLimiter { return ql } -// AddSeriesBatch adds the batch of input series and returns an error if the limit is reached. +// AddSeries adds the batch of input series and returns an error if the limit is reached. func (ql *QueryLimiter) AddSeries(series ...[]cortexpb.LabelAdapter) error { // If the max series is unlimited just return without managing map if ql.maxSeriesPerQuery == 0 { diff --git a/pkg/util/metrics_helper.go b/pkg/util/metrics_helper.go index 532912dd94..0a823920fd 100644 --- a/pkg/util/metrics_helper.go +++ b/pkg/util/metrics_helper.go @@ -757,7 +757,7 @@ func GetSumOfHistogramSampleCount(families []*dto.MetricFamily, metricName strin return sum } -// GetLables returns list of label combinations used by this collector at the time of call. +// GetLabels returns list of label combinations used by this collector at the time of call. // This can be used to find and delete unused metrics. func GetLabels(c prometheus.Collector, filter map[string]string) ([]labels.Labels, error) { ch := make(chan prometheus.Metric, 16) diff --git a/tools/querytee/response_comparator.go b/tools/querytee/response_comparator.go index b20ae8e3d1..05c795ad05 100644 --- a/tools/querytee/response_comparator.go +++ b/tools/querytee/response_comparator.go @@ -39,7 +39,7 @@ type SamplesComparator struct { sampleTypesComparator map[string]SamplesComparatorFunc } -// RegisterSamplesComparator helps with registering custom sample types +// RegisterSamplesType helps with registering custom sample types func (s *SamplesComparator) RegisterSamplesType(samplesType string, comparator SamplesComparatorFunc) { s.sampleTypesComparator[samplesType] = comparator }