mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Remove metrics max bucket setting
PR #7451 introduced a way to set metrics max bucket settign in Kibana. This ain't good because it can destabilize Kibana and ES as well Fixes #8010
This commit is contained in:
parent
8c44757679
commit
80c3dcad89
1 changed files with 1 additions and 4 deletions
|
@ -11,7 +11,6 @@ module LogStash module Modules class KibanaConfig
|
|||
include LogStash::Util::Loggable
|
||||
|
||||
ALLOWED_DIRECTORIES = ["search", "visualization"]
|
||||
METRICS_MAX_BUCKETS = (24 * 60 * 60).freeze # 24 hours of events/sec buckets.
|
||||
attr_reader :index_name # not used when importing via kibana but for BWC with ElastsearchConfig
|
||||
|
||||
# We name it `modul` here because `module` has meaning in Ruby.
|
||||
|
@ -21,10 +20,8 @@ module LogStash module Modules class KibanaConfig
|
|||
@settings = settings
|
||||
@index_name = "kibana"
|
||||
@pattern_name = "#{@name}-*"
|
||||
@metrics_max_buckets = @settings.fetch("dashboards.metrics_max_buckets", METRICS_MAX_BUCKETS).to_i
|
||||
@kibana_settings = [
|
||||
KibanaSettings::Setting.new("defaultIndex", @pattern_name),
|
||||
KibanaSettings::Setting.new("metrics:max_buckets", @metrics_max_buckets)
|
||||
KibanaSettings::Setting.new("defaultIndex", @pattern_name)
|
||||
]
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue