We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea5c67 commit 06e7126Copy full SHA for 06e7126
internal/cortex/querier/queryrange/query_bytes_fetched.go
@@ -32,9 +32,13 @@ func sumQueryBytesFetched(responses ...Response) uint64 {
32
}
33
34
func QueryBytesFetchedPrometheusResponseHeaders(responses ...Response) []*PrometheusResponseHeader {
35
+ n := sumQueryBytesFetched(responses...)
36
+ if n == 0 {
37
+ return nil
38
+ }
39
return []*PrometheusResponseHeader{{
40
Name: QueryBytesFetchedHeaderName,
- Values: []string{strconv.FormatUint(sumQueryBytesFetched(responses...), 10)},
41
+ Values: []string{strconv.FormatUint(n, 10)},
42
}}
43
44
0 commit comments