mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
Made marvel.agent.shard_stats.enabled
dynamically updatable
Relates to #20
This commit is contained in:
parent
dd6b0acb49
commit
fe16ee700e
1 changed files with 7 additions and 0 deletions
|
@ -124,6 +124,7 @@ public class AgentService extends AbstractLifecycleComponent<AgentService> imple
|
|||
nodeSettingsService.addListener(this);
|
||||
dynamicSettings.addDynamicSetting(SETTINGS_INTERVAL);
|
||||
dynamicSettings.addDynamicSetting(SETTINGS_INDICES + ".*"); // array settings
|
||||
dynamicSettings.addDynamicSetting(SETTINGS_SHARD_STATS_ENABLED);
|
||||
}
|
||||
|
||||
protected void applyIntervalSettings() {
|
||||
|
@ -202,6 +203,12 @@ public class AgentService extends AbstractLifecycleComponent<AgentService> imple
|
|||
logger.info("sampling indices updated to [{}]", Strings.arrayToCommaDelimitedString(indices));
|
||||
indicesToExport = indices;
|
||||
}
|
||||
|
||||
Boolean shardsExport = settings.getAsBoolean(SETTINGS_SHARD_STATS_ENABLED, null);
|
||||
if (shardsExport != null) {
|
||||
logger.info("updating " + SETTINGS_SHARD_STATS_ENABLED + " to [" + shardsExport + "]");
|
||||
exportShardStats = shardsExport;
|
||||
}
|
||||
}
|
||||
|
||||
class ExportingWorker implements Runnable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue