mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
indicesToExport was ignored by index stats generation
This commit is contained in:
parent
5fff6c7109
commit
dd7c1e5eee
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ public class AgentService extends AbstractLifecycleComponent<AgentService> {
|
|||
|
||||
private Collection<Exporter> exporters;
|
||||
|
||||
private String[] indicesToExport = Strings.EMPTY_ARRAY;
|
||||
volatile private String[] indicesToExport = Strings.EMPTY_ARRAY;
|
||||
volatile private boolean exportShardStats;
|
||||
|
||||
private final BlockingQueue<Event> pendingEventsQueue;
|
||||
|
@ -204,7 +204,7 @@ public class AgentService extends AbstractLifecycleComponent<AgentService> {
|
|||
|
||||
private void exportIndicesStats() {
|
||||
logger.trace("local node is master, exporting indices stats");
|
||||
IndicesStatsResponse indicesStatsResponse = client.admin().indices().prepareStats().all().get();
|
||||
IndicesStatsResponse indicesStatsResponse = client.admin().indices().prepareStats().all().setIndices(indicesToExport).get();
|
||||
for (Exporter e : exporters) {
|
||||
try {
|
||||
e.exportIndicesStats(indicesStatsResponse);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue