From cc98d10d74e7963f0c6f40d704cbcff30bf40455 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Wed, 6 May 2020 14:52:27 +0200 Subject: [PATCH] Chore: Correct typo "per seconds" (#2050) Signed-off-by: Arve Knudsen --- docs/api.md | 2 +- pkg/logql/metrics.go | 2 +- pkg/logql/stats/stats.pb.go | 4 ++-- pkg/logql/stats/stats.proto | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api.md b/docs/api.md index 7bb66d29f368..86046a2d2d94 100644 --- a/docs/api.md +++ b/docs/api.md @@ -888,7 +888,7 @@ The example belows show all possible statistics returned with their respective d "totalDuplicates": 0 // Total of duplicates removed from replication }, "summary": { - "bytesProcessedPerSeconds": 0, // Total of bytes processed per seconds + "bytesProcessedPerSeconds": 0, // Total of bytes processed per second "execTime": 0, // Total execution time in seconds (float) "linesProcessedPerSeconds": 0, // Total lines processed per second "totalBytesProcessed":0, // Total amount of bytes processed overall for this request diff --git a/pkg/logql/metrics.go b/pkg/logql/metrics.go index 6eb2703e63e9..83af61a39342 100644 --- a/pkg/logql/metrics.go +++ b/pkg/logql/metrics.go @@ -27,7 +27,7 @@ var ( bytesPerSeconds = promauto.NewHistogramVec(prometheus.HistogramOpts{ Namespace: "loki", Name: "logql_querystats_bytes_processed_per_seconds", - Help: "Distribution of bytes processed per seconds for LogQL queries.", + Help: "Distribution of bytes processed per second for LogQL queries.", // 50MB 100MB 200MB 400MB 600MB 800MB 1GB 2GB 3GB 4GB 5GB 6GB 7GB 8GB 9GB 10GB 15GB 20GB Buckets: []float64{50 * 1e6, 100 * 1e6, 400 * 1e6, 600 * 1e6, 800 * 1e6, 1 * 1e9, 2 * 1e9, 3 * 1e9, 4 * 1e9, 5 * 1e9, 6 * 1e9, 7 * 1e9, 8 * 1e9, 9 * 1e9, 10 * 1e9, 15 * 1e9, 20 * 1e9}, }, []string{"status_code", "type", "range", "latency_type"}) diff --git a/pkg/logql/stats/stats.pb.go b/pkg/logql/stats/stats.pb.go index 3d171f0a66a1..270e63aaf28a 100644 --- a/pkg/logql/stats/stats.pb.go +++ b/pkg/logql/stats/stats.pb.go @@ -87,9 +87,9 @@ func (m *Result) GetIngester() Ingester { // Summary is the summary of a query statistics. type Summary struct { - // Total bytes processed per seconds. + // Total bytes processed per second. BytesProcessedPerSeconds int64 `protobuf:"varint,1,opt,name=bytesProcessedPerSeconds,proto3" json:"bytesProcessedPerSeconds"` - // Total lines processed per seconds. + // Total lines processed per second. LinesProcessedPerSeconds int64 `protobuf:"varint,2,opt,name=linesProcessedPerSeconds,proto3" json:"linesProcessedPerSeconds"` // Total bytes processed. TotalBytesProcessed int64 `protobuf:"varint,3,opt,name=totalBytesProcessed,proto3" json:"totalBytesProcessed"` diff --git a/pkg/logql/stats/stats.proto b/pkg/logql/stats/stats.proto index 9319c6cc8cc5..13a9b89966d3 100644 --- a/pkg/logql/stats/stats.proto +++ b/pkg/logql/stats/stats.proto @@ -18,9 +18,9 @@ message Result { // Summary is the summary of a query statistics. message Summary { - // Total bytes processed per seconds. + // Total bytes processed per second. int64 bytesProcessedPerSeconds = 1 [(gogoproto.jsontag) = "bytesProcessedPerSeconds"]; - // Total lines processed per seconds. + // Total lines processed per second. int64 linesProcessedPerSeconds = 2 [(gogoproto.jsontag) = "linesProcessedPerSeconds"]; // Total bytes processed. int64 totalBytesProcessed = 3 [(gogoproto.jsontag) = "totalBytesProcessed"];