Skip to content

Commit a91330e

Browse files
committed
Query-Frontend: cortex_query_seconds_total now return seconds not nanoseconds.
Signed-off-by: Wing924 <[email protected]>
1 parent a344bd5 commit a91330e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master / unreleased
44

55
* [ENHANCEMENT] Memberlist: add status page with available details about memberlist-based KV store and memberlist cluster. It's also possible to view KV values in Go struct or JSON format, or download for inspection. #3575
6+
* [BUGFIX] Query-Frontend: `cortex_query_seconds_total` now return seconds not nanoseconds.
67

78
## 1.6.0-rc.0 in progress
89

pkg/frontend/transport/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (f *Handler) reportQueryStats(r *http.Request, queryString url.Values, quer
152152
}
153153

154154
// Track stats.
155-
f.querySeconds.WithLabelValues(userID).Add(float64(stats.LoadWallTime()))
155+
f.querySeconds.WithLabelValues(userID).Add(stats.LoadWallTime().Seconds())
156156

157157
// Log stats.
158158
logMessage := append([]interface{}{

0 commit comments

Comments
 (0)