Skip to content

Commit

Permalink
Heartbeat: add datastream fields to synthetics (#26774) (#26783)
Browse files Browse the repository at this point in the history
(cherry picked from commit 70a639f)

Co-authored-by: Vignesh Shanmugam <vignesh.shanmugam22@gmail.com>
  • Loading branch information
mergify[bot] and vigneshshanmugam committed Jul 8, 2021
1 parent cef7ce3 commit 85bcd49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions heartbeat/monitors/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ func newCommonPublishConfigs(info beat.Info, cfg *common.Config) (pipetool.Confi
fields := clientCfg.Processing.Fields.Clone()
fields.Put("event.dataset", dataset)

if settings.DataStream != nil {
fields.Put("data_stream", settings.DataStream)
}

meta := clientCfg.Processing.Meta.Clone()
if settings.Pipeline != "" {
meta.Put("pipeline", settings.Pipeline)
Expand Down

0 comments on commit 85bcd49

Please sign in to comment.