From 000ef4515784d72897cad9042f47acaea7d92255 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Thu, 19 Feb 2015 15:34:04 +0100 Subject: [PATCH] Replaced http by HTTP if used as the name of the protocol in English. --- prometheus/counter.go | 2 +- prometheus/examples_test.go | 6 +++--- prometheus/histogram.go | 2 +- prometheus/http.go | 2 +- prometheus/registry.go | 2 +- prometheus/summary.go | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/prometheus/counter.go b/prometheus/counter.go index d715ee0..f8d633f 100644 --- a/prometheus/counter.go +++ b/prometheus/counter.go @@ -74,7 +74,7 @@ func (c *counter) Add(v float64) { // CounterVec is a Collector that bundles a set of Counters that all share the // same Desc, but have different values for their variable labels. This is used // if you want to count the same thing partitioned by various dimensions -// (e.g. number of http requests, partitioned by response code and +// (e.g. number of HTTP requests, partitioned by response code and // method). Create instances with NewCounterVec. // // CounterVec embeds MetricVec. See there for a full list of methods with diff --git a/prometheus/examples_test.go b/prometheus/examples_test.go index a82d32c..5e62967 100644 --- a/prometheus/examples_test.go +++ b/prometheus/examples_test.go @@ -129,7 +129,7 @@ func ExampleCounterVec() { httpReqs := prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "http_requests_total", - Help: "How many HTTP requests processed, partitioned by status code and http method.", + Help: "How many HTTP requests processed, partitioned by status code and HTTP method.", ConstLabels: prometheus.Labels{"env": *binaryVersion}, }, []string{"code", "method"}, @@ -200,7 +200,7 @@ func ExampleRegister() { fmt.Println("taskCounter registered.") } // Don't forget to tell the HTTP server about the Prometheus handler. - // (In a real program, you still need to start the http server...) + // (In a real program, you still need to start the HTTP server...) http.Handle("/metrics", prometheus.Handler()) // Now you can start workers and give every one of them a pointer to @@ -240,7 +240,7 @@ func ExampleRegister() { // Prometheus will not allow you to ever export metrics with // inconsistent help strings or label names. After unregistering, the - // unregistered metrics will cease to show up in the /metrics http + // unregistered metrics will cease to show up in the /metrics HTTP // response, but the registry still remembers that those metrics had // been exported before. For this example, we will now choose a // different name. (In a real program, you would obviously not export diff --git a/prometheus/histogram.go b/prometheus/histogram.go index 7f3da39..f2fe510 100644 --- a/prometheus/histogram.go +++ b/prometheus/histogram.go @@ -270,7 +270,7 @@ func (h *histogram) Write(out *dto.Metric) error { // HistogramVec is a Collector that bundles a set of Histograms that all share the // same Desc, but have different values for their variable labels. This is used // if you want to count the same thing partitioned by various dimensions -// (e.g. http request latencies, partitioned by status code and method). Create +// (e.g. HTTP request latencies, partitioned by status code and method). Create // instances with NewHistogramVec. type HistogramVec struct { MetricVec diff --git a/prometheus/http.go b/prometheus/http.go index 818c90f..dac92fd 100644 --- a/prometheus/http.go +++ b/prometheus/http.go @@ -47,7 +47,7 @@ func nowSeries(t ...time.Time) nower { } // InstrumentHandler wraps the given HTTP handler for instrumentation. It -// registers four metric collectors (if not already done) and reports http +// registers four metric collectors (if not already done) and reports HTTP // metrics to the (newly or already) registered collectors: http_requests_total // (CounterVec), http_request_duration_microseconds (Summary), // http_request_size_bytes (Summary), http_response_size_bytes (Summary). Each diff --git a/prometheus/registry.go b/prometheus/registry.go index 505a4aa..f0aa392 100644 --- a/prometheus/registry.go +++ b/prometheus/registry.go @@ -171,7 +171,7 @@ func SetMetricFamilyInjectionHook(hook func() []*dto.MetricFamily) { } // PanicOnCollectError sets the behavior whether a panic is caused upon an error -// while metrics are collected and served to the http endpoint. By default, an +// while metrics are collected and served to the HTTP endpoint. By default, an // internal server error (status code 500) is served with an error message. func PanicOnCollectError(b bool) { defRegistry.panicOnCollectError = b diff --git a/prometheus/summary.go b/prometheus/summary.go index f93cb35..93e7b6b 100644 --- a/prometheus/summary.go +++ b/prometheus/summary.go @@ -39,7 +39,7 @@ import ( // Note that the rank estimations cannot be aggregated in a meaningful way with // the Prometheus query language (i.e. you cannot average or add them). If you // need aggregatable quantiles (e.g. you want the 99th percentile latency of all -// queries served across all instances of a service), check out the Histogram +// queries served across all instances of a service), consider the Histogram // metric type. See the Prometheus documentation for more details. // // To create Summary instances, use NewSummary. @@ -379,7 +379,7 @@ func (s quantSort) Less(i, j int) bool { // SummaryVec is a Collector that bundles a set of Summaries that all share the // same Desc, but have different values for their variable labels. This is used // if you want to count the same thing partitioned by various dimensions -// (e.g. http request latencies, partitioned by status code and method). Create +// (e.g. HTTP request latencies, partitioned by status code and method). Create // instances with NewSummaryVec. type SummaryVec struct { MetricVec