Commit 787eb1e9 authored by Ganesh Vernekar's avatar Ganesh Vernekar Committed by Goutham Veeramachaneni
Browse files

Set rule_group_last_duration_seconds to seconds (#5153)


Signed-off-by: default avatarGanesh Vernekar <cs15btech11018@iith.ac.in>
parent 410ee9e0
......@@ -369,7 +369,7 @@ func (g *Group) GetEvaluationDuration() time.Duration {
// setEvaluationDuration sets the time in seconds the last evaluation took.
func (g *Group) setEvaluationDuration(dur time.Duration) {
g.metrics.groupLastDuration.WithLabelValues(groupKey(g.file, g.name)).Set(float64(dur))
g.metrics.groupLastDuration.WithLabelValues(groupKey(g.file, g.name)).Set(dur.Seconds())
g.mtx.Lock()
defer g.mtx.Unlock()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment