From 958ea82988bac53670e9b9bc53f483fddc2eb609 Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Fri, 13 Apr 2018 22:07:27 +0200 Subject: [PATCH] Fix typos Signed-off-by: Karsten Weiss --- api/client_test.go | 2 +- prometheus/promhttp/http_test.go | 2 +- prometheus/push/push.go | 2 +- prometheus/registry.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/client_test.go b/api/client_test.go index 53226d7..b1bcfc9 100644 --- a/api/client_test.go +++ b/api/client_test.go @@ -89,7 +89,7 @@ func TestClientURL(t *testing.T) { address: "http://localhost:9090", endpoint: "/test/:param", args: map[string]string{ - "nonexistant": "content", + "nonexistent": "content", }, expected: "http://localhost:9090/test/:param", }, diff --git a/prometheus/promhttp/http_test.go b/prometheus/promhttp/http_test.go index aeaa0b4..24d2f8c 100644 --- a/prometheus/promhttp/http_test.go +++ b/prometheus/promhttp/http_test.go @@ -121,7 +121,7 @@ the_count 0 t.Errorf("got HTTP status code %d, want %d", got, want) } if got := logBuf.String(); got != wantMsg { - t.Errorf("got log message:\n%s\nwant log mesage:\n%s\n", got, wantMsg) + t.Errorf("got log message:\n%s\nwant log message:\n%s\n", got, wantMsg) } if got := writer.Body.String(); got != wantErrorBody { t.Errorf("got body:\n%s\nwant body:\n%s\n", got, wantErrorBody) diff --git a/prometheus/push/push.go b/prometheus/push/push.go index 02be52c..3721ff1 100644 --- a/prometheus/push/push.go +++ b/prometheus/push/push.go @@ -66,7 +66,7 @@ type Pusher struct { username, password string } -// New creates a new Pusher to push to the provided URL withe the provided job +// New creates a new Pusher to push to the provided URL with the provided job // name. You can use just host:port or ip:port as url, in which case “http://” // is added automatically. Alternatively, include the schema in the // URL. However, do not include the “/metrics/jobs/…” part. diff --git a/prometheus/registry.go b/prometheus/registry.go index bee3703..f8efd1f 100644 --- a/prometheus/registry.go +++ b/prometheus/registry.go @@ -437,7 +437,7 @@ collectLoop: )) default: if goroutineBudget <= 0 || len(collectors) == 0 { - // All collectors are aleady being worked on or + // All collectors are already being worked on or // we have already as many goroutines started as // there are collectors. Just process metrics // from now on.