diff --git a/cmd/prometheus/main_test.go b/cmd/prometheus/main_test.go index 5c6eab97eb..ee805674a9 100644 --- a/cmd/prometheus/main_test.go +++ b/cmd/prometheus/main_test.go @@ -59,7 +59,7 @@ func TestMain(m *testing.M) { os.Exit(exitCode) } -// As soon as prometheus starts responding to http request should be able to accept Interrupt signals for a gracefull shutdown. +// As soon as prometheus starts responding to http request should be able to accept Interrupt signals for a graceful shutdown. func TestStartupInterrupt(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode.") diff --git a/rules/manager.go b/rules/manager.go index 1e3311b3f6..35ce82ce80 100644 --- a/rules/manager.go +++ b/rules/manager.go @@ -81,7 +81,7 @@ var ( }) lastDuration = prometheus.NewDesc( prometheus.BuildFQName(namespace, "", "rule_group_last_duration_seconds"), - "The duration of the last rule group evaulation.", + "The duration of the last rule group evaluation.", []string{"rule_group"}, nil, ) diff --git a/scrape/scrape_test.go b/scrape/scrape_test.go index 3115a566b2..f9aae4dc90 100644 --- a/scrape/scrape_test.go +++ b/scrape/scrape_test.go @@ -434,7 +434,7 @@ func TestScrapeLoopStop(t *testing.T) { if len(appender.result) < 5*3 || len(appender.result)%5 != 0 { t.Fatalf("Expected at least 3 scrapes with 4 samples each, got %d samples", len(appender.result)) } - // All samples in a scrape must have the same timestmap. + // All samples in a scrape must have the same timestamp. var ts int64 for i, s := range appender.result { if i%5 == 0 { diff --git a/storage/remote/codec.go b/storage/remote/codec.go index 0fa25f36c0..4fcd0f2ce8 100644 --- a/storage/remote/codec.go +++ b/storage/remote/codec.go @@ -200,7 +200,7 @@ func (c *concreteSeriesSet) Err() error { return nil } -// concreteSeries implementes storage.Series. +// concreteSeries implements storage.Series. type concreteSeries struct { labels labels.Labels samples []*prompb.Sample diff --git a/storage/remote/queue_manager.go b/storage/remote/queue_manager.go index 7d52ed1eff..41e001c066 100644 --- a/storage/remote/queue_manager.go +++ b/storage/remote/queue_manager.go @@ -477,7 +477,7 @@ func (s *shards) sendSamples(samples model.Samples) { begin := time.Now() s.sendSamplesWithBackoff(samples) - // These counters are used to caclulate the dynamic sharding, and as such + // These counters are used to calculate the dynamic sharding, and as such // should be maintained irrespective of success or failure. s.qm.samplesOut.incr(int64(len(samples))) s.qm.samplesOutDuration.incr(int64(time.Since(begin))) diff --git a/web/api/v2/api.go b/web/api/v2/api.go index 1f0ea15395..d6b6c5e690 100644 --- a/web/api/v2/api.go +++ b/web/api/v2/api.go @@ -135,7 +135,7 @@ func labelsToProto(lset labels.Labels) pb.Labels { } // AdminDisabled implements the administration interface that informs -// that the API endpoints are disbaled. +// that the API endpoints are disabled. type AdminDisabled struct { }