mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Fix common english misspellings
This commit is contained in:
parent
e2c12dcdb5
commit
29ced0090f
|
@ -241,7 +241,7 @@ func reloadConfig(filename string, rls ...Reloadable) (err error) {
|
|||
}
|
||||
}
|
||||
if failed {
|
||||
return fmt.Errorf("one or more errors occured while applying the new configuration (-config.file=%s)", filename)
|
||||
return fmt.Errorf("one or more errors occurred while applying the new configuration (-config.file=%s)", filename)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ func (e *ParseErr) Error() string {
|
|||
return fmt.Sprintf("parse error at line %d, char %d: %s", e.Line, e.Pos, e.Err)
|
||||
}
|
||||
|
||||
// ParseStmts parses the input and returns the resulting statements or any occuring error.
|
||||
// ParseStmts parses the input and returns the resulting statements or any occurring error.
|
||||
func ParseStmts(input string) (Statements, error) {
|
||||
p := newParser(input)
|
||||
|
||||
|
|
|
@ -1366,9 +1366,9 @@ var testExpr = []struct {
|
|||
fail: true,
|
||||
errMsg: "expected type vector in call to function \"floor\", got scalar",
|
||||
}, {
|
||||
input: "non_existant_function_far_bar()",
|
||||
input: "non_existent_function_far_bar()",
|
||||
fail: true,
|
||||
errMsg: "unknown function with name \"non_existant_function_far_bar\"",
|
||||
errMsg: "unknown function with name \"non_existent_function_far_bar\"",
|
||||
}, {
|
||||
input: "rate(some_metric)",
|
||||
fail: true,
|
||||
|
|
|
@ -137,7 +137,7 @@ func TestScrapePoolReload(t *testing.T) {
|
|||
ScrapeInterval: model.Duration(3 * time.Second),
|
||||
ScrapeTimeout: model.Duration(2 * time.Second),
|
||||
}
|
||||
// On starting to run, new loops created on reload check whether their preceeding
|
||||
// On starting to run, new loops created on reload check whether their preceding
|
||||
// equivalents have been stopped.
|
||||
newLoop := func(ctx context.Context, s scraper, app, reportApp storage.SampleAppender) loop {
|
||||
l := &testLoop{}
|
||||
|
@ -163,7 +163,7 @@ func TestScrapePoolReload(t *testing.T) {
|
|||
}
|
||||
|
||||
// Reloading a scrape pool with a new scrape configuration must stop all scrape
|
||||
// loops and start new ones. A new loop must not be started before the preceeding
|
||||
// loops and start new ones. A new loop must not be started before the preceding
|
||||
// one terminated.
|
||||
|
||||
for i := 0; i < numTargets; i++ {
|
||||
|
|
|
@ -145,7 +145,7 @@ func TestMatches(t *testing.T) {
|
|||
matchers: metric.LabelMatchers{
|
||||
newMatcher(metric.Equal, "all", "const"),
|
||||
newMatcher(metric.NotEqual, "label1", "test_0"),
|
||||
newMatcher(metric.Equal, "not_existant", ""),
|
||||
newMatcher(metric.Equal, "not_existent", ""),
|
||||
},
|
||||
expected: fingerprints[10:],
|
||||
},
|
||||
|
|
|
@ -40,7 +40,7 @@ func NewClient(address string, timeout time.Duration) (*Client, error) {
|
|||
// grpc.Dial() returns immediately and doesn't error when the server is
|
||||
// unreachable when not passing in the WithBlock() option. The client then
|
||||
// will continuously try to (re)establish the connection in the background.
|
||||
// So this will only return here if some other uncommon error occured.
|
||||
// So this will only return here if some other uncommon error occurred.
|
||||
return nil, err
|
||||
}
|
||||
return &Client{
|
||||
|
|
Loading…
Reference in a new issue