Skip to content

Commit 000ef45

Browse files
author
beorn7
committed
Replaced http by HTTP if used as the name of the protocol in English.
1 parent b1e7299 commit 000ef45

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

prometheus/counter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (c *counter) Add(v float64) {
7474
// CounterVec is a Collector that bundles a set of Counters that all share the
7575
// same Desc, but have different values for their variable labels. This is used
7676
// if you want to count the same thing partitioned by various dimensions
77-
// (e.g. number of http requests, partitioned by response code and
77+
// (e.g. number of HTTP requests, partitioned by response code and
7878
// method). Create instances with NewCounterVec.
7979
//
8080
// CounterVec embeds MetricVec. See there for a full list of methods with

prometheus/examples_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func ExampleCounterVec() {
129129
httpReqs := prometheus.NewCounterVec(
130130
prometheus.CounterOpts{
131131
Name: "http_requests_total",
132-
Help: "How many HTTP requests processed, partitioned by status code and http method.",
132+
Help: "How many HTTP requests processed, partitioned by status code and HTTP method.",
133133
ConstLabels: prometheus.Labels{"env": *binaryVersion},
134134
},
135135
[]string{"code", "method"},
@@ -200,7 +200,7 @@ func ExampleRegister() {
200200
fmt.Println("taskCounter registered.")
201201
}
202202
// Don't forget to tell the HTTP server about the Prometheus handler.
203-
// (In a real program, you still need to start the http server...)
203+
// (In a real program, you still need to start the HTTP server...)
204204
http.Handle("/metrics", prometheus.Handler())
205205

206206
// Now you can start workers and give every one of them a pointer to
@@ -240,7 +240,7 @@ func ExampleRegister() {
240240

241241
// Prometheus will not allow you to ever export metrics with
242242
// inconsistent help strings or label names. After unregistering, the
243-
// unregistered metrics will cease to show up in the /metrics http
243+
// unregistered metrics will cease to show up in the /metrics HTTP
244244
// response, but the registry still remembers that those metrics had
245245
// been exported before. For this example, we will now choose a
246246
// different name. (In a real program, you would obviously not export

prometheus/histogram.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (h *histogram) Write(out *dto.Metric) error {
270270
// HistogramVec is a Collector that bundles a set of Histograms that all share the
271271
// same Desc, but have different values for their variable labels. This is used
272272
// if you want to count the same thing partitioned by various dimensions
273-
// (e.g. http request latencies, partitioned by status code and method). Create
273+
// (e.g. HTTP request latencies, partitioned by status code and method). Create
274274
// instances with NewHistogramVec.
275275
type HistogramVec struct {
276276
MetricVec

prometheus/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func nowSeries(t ...time.Time) nower {
4747
}
4848

4949
// InstrumentHandler wraps the given HTTP handler for instrumentation. It
50-
// registers four metric collectors (if not already done) and reports http
50+
// registers four metric collectors (if not already done) and reports HTTP
5151
// metrics to the (newly or already) registered collectors: http_requests_total
5252
// (CounterVec), http_request_duration_microseconds (Summary),
5353
// http_request_size_bytes (Summary), http_response_size_bytes (Summary). Each

prometheus/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func SetMetricFamilyInjectionHook(hook func() []*dto.MetricFamily) {
171171
}
172172

173173
// PanicOnCollectError sets the behavior whether a panic is caused upon an error
174-
// while metrics are collected and served to the http endpoint. By default, an
174+
// while metrics are collected and served to the HTTP endpoint. By default, an
175175
// internal server error (status code 500) is served with an error message.
176176
func PanicOnCollectError(b bool) {
177177
defRegistry.panicOnCollectError = b

prometheus/summary.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
// Note that the rank estimations cannot be aggregated in a meaningful way with
4040
// the Prometheus query language (i.e. you cannot average or add them). If you
4141
// need aggregatable quantiles (e.g. you want the 99th percentile latency of all
42-
// queries served across all instances of a service), check out the Histogram
42+
// queries served across all instances of a service), consider the Histogram
4343
// metric type. See the Prometheus documentation for more details.
4444
//
4545
// To create Summary instances, use NewSummary.
@@ -379,7 +379,7 @@ func (s quantSort) Less(i, j int) bool {
379379
// SummaryVec is a Collector that bundles a set of Summaries that all share the
380380
// same Desc, but have different values for their variable labels. This is used
381381
// if you want to count the same thing partitioned by various dimensions
382-
// (e.g. http request latencies, partitioned by status code and method). Create
382+
// (e.g. HTTP request latencies, partitioned by status code and method). Create
383383
// instances with NewSummaryVec.
384384
type SummaryVec struct {
385385
MetricVec

0 commit comments

Comments
 (0)