Skip to content

Commit

Permalink
Fixes a usage of deprecated 'http.enabled' to the new 'api.enabled'
Browse files Browse the repository at this point in the history
  • Loading branch information
andsel committed Nov 8, 2021
1 parent 55e7a26 commit b6b92da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(global_stats, snapshot, cluster_uuid)
@snapshot = snapshot
@metric_store = @snapshot.metric_store
@cluster_uuid = cluster_uuid
@webserver_enabled = LogStash::SETTINGS.get_value("http.enabled")
@webserver_enabled = LogStash::SETTINGS.get_value("api.enabled")
end

def make(agent, extended_performance_collection=true, collection_interval=10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
global_stats = {"uuid" => "00001" }
sut = described_class.new(global_stats, collector.snapshot_metric, nil)
LogStash::SETTINGS.set_value("monitoring.enabled", false)
LogStash::SETTINGS.set_value("api.http.enabled", webserver_enabled)
LogStash::SETTINGS.set_value("api.4enabled", webserver_enabled)

monitoring_evt = sut.make(agent, true)
json = JSON.parse(monitoring_evt.to_json)
Expand Down

0 comments on commit b6b92da

Please sign in to comment.