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.
2 parents fd96442 + d26e134 commit 9b8bbe3Copy full SHA for 9b8bbe3
rules/manager.go
@@ -385,7 +385,7 @@ func (g *Group) GetEvaluationTimestamp() time.Time {
385
386
// setEvaluationTimestamp updates evaluationTimestamp to the timestamp of when the rule group was last evaluated.
387
func (g *Group) setEvaluationTimestamp(ts time.Time) {
388
- g.metrics.groupLastEvalTime.WithLabelValues(groupKey(g.file, g.name)).Set(float64(ts.Second()))
+ g.metrics.groupLastEvalTime.WithLabelValues(groupKey(g.file, g.name)).Set(float64(ts.UnixNano()) / 1e9)
389
390
g.mtx.Lock()
391
defer g.mtx.Unlock()
0 commit comments