Skip to content

Commit

Permalink
Chore: Correct typo "per seconds" (#2050)
Browse files Browse the repository at this point in the history
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
  • Loading branch information
aknuds1 authored May 6, 2020
1 parent 06b5059 commit cc98d10
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/logql/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down
4 changes: 2 additions & 2 deletions pkg/logql/stats/stats.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/logql/stats/stats.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit cc98d10

Please sign in to comment.