Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Stack Monitoring] Fix displaying ES version for external collection #131194

Merged
merged 8 commits into from
May 16, 2022
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];
miltonhultgren marked this conversation as resolved.
Show resolved Hide resolved
const clusterUuid = cluster.cluster_uuid || cluster.elasticsearch?.cluster?.id;
const clusterStatsLegacy = cluster.cluster_stats;
const clusterStatsMB = cluster.elasticsearch?.cluster?.stats;
Expand Down