Skip to content

Commit

Permalink
[Telemetry] Use GET / to fetch the Cluster UUID (elastic#145536)
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored Nov 18, 2022
1 parent 4ba6d1d commit 5a2c45e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export async function getClusterStats(esClient: ElasticsearchClient) {
* @param esClient Scoped Elasticsearch client
*/
export const getClusterUuids: ClusterDetailsGetter = async ({ esClient }) => {
const body = await esClient.cluster.stats({ timeout: TIMEOUT });
const body = await esClient.info({ filter_path: 'cluster_uuid' });
return [{ clusterUuid: body.cluster_uuid }];
};

0 comments on commit 5a2c45e

Please sign in to comment.