Skip to content

Commit

Permalink
[Stack Monitoring] Fix displaying ES version for external collection (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonhultgren committed Apr 28, 2022
1 parent 48ed43d commit 3c71d9c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export function getClustersSummary(
} = cluster;

const license = cluster.license || cluster.elasticsearch?.cluster?.stats?.license;
const version = cluster.version || cluster.elasticsearch?.version;
const version =
cluster.version || (cluster.elasticsearch?.cluster?.stats?.nodes?.versions || [])[0];
const clusterUuid = cluster.cluster_uuid || cluster.elasticsearch?.cluster?.id;
const clusterStatsLegacy = cluster.cluster_stats;
const clusterStatsMB = cluster.elasticsearch?.cluster?.stats;
Expand Down

0 comments on commit 3c71d9c

Please sign in to comment.