Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ce3a9a0

Browse files
committedSep 23, 2020
Changes elasticsearchClient to telemetryElasticsearchClient in monitoring
1 parent 873ec18 commit ce3a9a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎x-pack/plugins/monitoring/server/plugin.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class Plugin {
7474
private monitoringCore = {} as MonitoringCore;
7575
private legacyShimDependencies = {} as LegacyShimDependencies;
7676
private bulkUploader: IBulkUploader = {} as IBulkUploader;
77-
private elasticsearchClient: IClusterClient | undefined;
77+
private telemetryElasticsearchClient: IClusterClient | undefined;
7878

7979
constructor(initializerContext: PluginInitializerContext) {
8080
this.initializerContext = initializerContext;
@@ -148,7 +148,7 @@ export class Plugin {
148148
registerMonitoringCollection(
149149
plugins.telemetryCollectionManager,
150150
this.cluster,
151-
() => this.elasticsearchClient,
151+
() => this.telemetryElasticsearchClient,
152152
{
153153
maxBucketSize: config.ui.max_bucket_size,
154154
}
@@ -241,7 +241,7 @@ export class Plugin {
241241
// The new client should be inititalized with a similar config to `this.cluster` but, since we're not using
242242
// the new client in Monitoring Telemetry collection yet, setting the local client allos progress for now.
243243
// We will update the client in a follow up PR.
244-
this.elasticsearchClient = elasticsearch.client;
244+
this.telemetryElasticsearchClient = elasticsearch.client;
245245
}
246246

247247
stop() {

0 commit comments

Comments
 (0)
Please sign in to comment.