Skip to content

Commit

Permalink
Removing xpack monitoring API params
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Jul 16, 2020
1 parent ff785d1 commit 9c34759
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions libbeat/monitoring/report/elasticsearch/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ const logSelector = "monitoring"

var errNoMonitoring = errors.New("xpack monitoring not available")

// default x-pack monitoring api parameters
var defaultXPackParams = map[string]string{
"system_id": "beats",
"system_api_version": "7",
}

func init() {
report.RegisterReporterFactory("elasticsearch", makeReporter)
}
Expand Down Expand Up @@ -377,11 +371,6 @@ func getClusterUUID() string {
func makeClientParams(config config) map[string]string {
params := map[string]string{}

if config.Format == report.FormatXPackMonitoringBulk {
for k, v := range defaultXPackParams {
params[k] = v
}
}
for k, v := range config.Params {
params[k] = v
}
Expand Down

0 comments on commit 9c34759

Please sign in to comment.