fix some comments typos (#4059)

pull/4043/merge
Mario Trangoni 2018-04-08 11:51:54 +02:00 committed by Brian Brazil
parent cbfb207cca
commit 464e747f1e
6 changed files with 6 additions and 6 deletions

View File

@ -59,7 +59,7 @@ func TestMain(m *testing.M) {
os.Exit(exitCode) 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) { func TestStartupInterrupt(t *testing.T) {
if testing.Short() { if testing.Short() {
t.Skip("skipping test in short mode.") t.Skip("skipping test in short mode.")

View File

@ -81,7 +81,7 @@ var (
}) })
lastDuration = prometheus.NewDesc( lastDuration = prometheus.NewDesc(
prometheus.BuildFQName(namespace, "", "rule_group_last_duration_seconds"), 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"}, []string{"rule_group"},
nil, nil,
) )

View File

@ -434,7 +434,7 @@ func TestScrapeLoopStop(t *testing.T) {
if len(appender.result) < 5*3 || len(appender.result)%5 != 0 { 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)) 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 var ts int64
for i, s := range appender.result { for i, s := range appender.result {
if i%5 == 0 { if i%5 == 0 {

View File

@ -200,7 +200,7 @@ func (c *concreteSeriesSet) Err() error {
return nil return nil
} }
// concreteSeries implementes storage.Series. // concreteSeries implements storage.Series.
type concreteSeries struct { type concreteSeries struct {
labels labels.Labels labels labels.Labels
samples []*prompb.Sample samples []*prompb.Sample

View File

@ -477,7 +477,7 @@ func (s *shards) sendSamples(samples model.Samples) {
begin := time.Now() begin := time.Now()
s.sendSamplesWithBackoff(samples) 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. // should be maintained irrespective of success or failure.
s.qm.samplesOut.incr(int64(len(samples))) s.qm.samplesOut.incr(int64(len(samples)))
s.qm.samplesOutDuration.incr(int64(time.Since(begin))) s.qm.samplesOutDuration.incr(int64(time.Since(begin)))

View File

@ -135,7 +135,7 @@ func labelsToProto(lset labels.Labels) pb.Labels {
} }
// AdminDisabled implements the administration interface that informs // AdminDisabled implements the administration interface that informs
// that the API endpoints are disbaled. // that the API endpoints are disabled.
type AdminDisabled struct { type AdminDisabled struct {
} }