Skip to content

Commit

Permalink
Fix starttime of metricsets on dataset endpoint for metricbeat (elast…
Browse files Browse the repository at this point in the history
  • Loading branch information
vjsamuel authored Jul 22, 2020
1 parent 16759ab commit 88cda01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/mb/module/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (mw *Wrapper) Start(done <-chan struct{}) <-chan beat.Event {
defer msw.close()

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

msw.run(done, out)
}(msw)
Expand Down

0 comments on commit 88cda01

Please sign in to comment.