Skip to content

Commit

Permalink
Fixiing URI in call to logstash.GetVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Jun 27, 2019
1 parent 6a9324a commit 1409c55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metricbeat/module/logstash/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
}

if ms.XPack {
logstashVersion, err := logstash.GetVersion(http, nodePath)
logstashVersion, err := logstash.GetVersion(http, ms.HostData().SanitizedURI+nodePath)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/logstash/node_stats/node_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
}

if ms.XPack {
logstashVersion, err := logstash.GetVersion(http, nodeStatsPath)
logstashVersion, err := logstash.GetVersion(http, ms.HostData().SanitizedURI+nodeStatsPath)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 1409c55

Please sign in to comment.