Skip to content

Commit 9b8bbe3

Browse files
authored
Merge pull request prometheus#5187 from prometheus/beorn7/release
Merge v2.7 bugfixes into master
2 parents fd96442 + d26e134 commit 9b8bbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func (g *Group) GetEvaluationTimestamp() time.Time {
385385

386386
// setEvaluationTimestamp updates evaluationTimestamp to the timestamp of when the rule group was last evaluated.
387387
func (g *Group) setEvaluationTimestamp(ts time.Time) {
388-
g.metrics.groupLastEvalTime.WithLabelValues(groupKey(g.file, g.name)).Set(float64(ts.Second()))
388+
g.metrics.groupLastEvalTime.WithLabelValues(groupKey(g.file, g.name)).Set(float64(ts.UnixNano()) / 1e9)
389389

390390
g.mtx.Lock()
391391
defer g.mtx.Unlock()

0 commit comments

Comments
 (0)