mirror of https://github.com/prometheus/prometheus
fix some comments typos (#4059)
parent
cbfb207cca
commit
464e747f1e
|
@ -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.")
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -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 {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue