Skip to content

Commit

Permalink
[Ingest Manager] Log level reloadable from fleet (elastic#22690)
Browse files Browse the repository at this point in the history
[Ingest Manager] Log level reloadable from fleet (elastic#22690)
  • Loading branch information
michalpristas committed Nov 26, 2020
1 parent ca9550f commit 7fabe99
Show file tree
Hide file tree
Showing 26 changed files with 422 additions and 695 deletions.
5 changes: 3 additions & 2 deletions libbeat/cmd/instance/beat.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import (
"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/libbeat/cfgfile"
"github.com/elastic/beats/v7/libbeat/cloudid"
"github.com/elastic/beats/v7/libbeat/cmd/instance/metrics"
"github.com/elastic/beats/v7/libbeat/common"
"github.com/elastic/beats/v7/libbeat/common/file"
"github.com/elastic/beats/v7/libbeat/common/reload"
Expand Down Expand Up @@ -235,7 +236,7 @@ func NewBeat(name, indexPrefix, v string, elasticLicensed bool) (*Beat, error) {
Name: hostname,
Hostname: hostname,
ID: id,
EphemeralID: ephemeralID,
EphemeralID: metrics.EphemeralID(),
},
Fields: fields,
}
Expand Down Expand Up @@ -314,7 +315,7 @@ func (b *Beat) createBeater(bt beat.Creator) (beat.Beater, error) {
reg = monitoring.Default.NewRegistry("libbeat")
}

err = setupMetrics(b.Info.Beat)
err = metrics.SetupMetrics(b.Info.Beat)
if err != nil {
return nil, err
}
Expand Down
348 changes: 0 additions & 348 deletions libbeat/cmd/instance/metrics.go

This file was deleted.

Loading

0 comments on commit 7fabe99

Please sign in to comment.