Skip to content

Commit b80fc78

Browse files
Steffen Sieringvjsamuel
andauthored
Cherry-pick #19975 to 7.x: Fix starttime of metricsets on dataset endpoint for metricbeat (#20147)
(cherry picked from commit 88cda01) Co-authored-by: Vijay Samuel <[email protected]>
1 parent 91b0ba3 commit b80fc78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metricbeat/mb/module/wrapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (mw *Wrapper) Start(done <-chan struct{}) <-chan beat.Event {
142142
defer msw.close()
143143

144144
registry.Add(metricsPath, msw.Metrics(), monitoring.Full)
145-
monitoring.NewString(msw.Metrics(), "starttime").Set(common.Time{}.String())
145+
monitoring.NewString(msw.Metrics(), "starttime").Set(common.Time(time.Now()).String())
146146

147147
msw.run(done, out)
148148
}(msw)

0 commit comments

Comments
 (0)