diff --git a/dashboard/pkg/epinio/pages/c/_cluster/dashboard.vue b/dashboard/pkg/epinio/pages/c/_cluster/dashboard.vue index f09c09a..b6173b6 100644 --- a/dashboard/pkg/epinio/pages/c/_cluster/dashboard.vue +++ b/dashboard/pkg/epinio/pages/c/_cluster/dashboard.vue @@ -156,9 +156,10 @@ export default Vue.extend({ } }, openMetricsDetails() { - const clusterMetricsLink = `/c/${ this.$store.getters['clusterId'] }/explorer#cluster-events`; - - this.$router.replace(clusterMetricsLink); + this.$router.replace({ + name: 'c-cluster-explorer', + params: { cluster: this.$store.getters['clusterId'] } + }); } }, computed: { diff --git a/dashboard/pkg/epinio/store/epinio-store/actions.ts b/dashboard/pkg/epinio/store/epinio-store/actions.ts index c589986..450bb50 100644 --- a/dashboard/pkg/epinio/store/epinio-store/actions.ts +++ b/dashboard/pkg/epinio/store/epinio-store/actions.ts @@ -235,14 +235,18 @@ export default { ...excludeInstances, ]; - try { - const nodeMetricsSchema = await dispatch(`cluster/request`, { url: `/k8s/clusters/${ clusterId }/v1/schemas/${ METRIC.NODE }` }, { root: true }); + const isSingleProduct = ctx.getters['isSingleProduct']; - if (nodeMetricsSchema) { - data.push(nodeMetricsSchema); + if (!isSingleProduct) { + try { + const nodeMetricsSchema = await dispatch(`cluster/request`, { url: `/k8s/clusters/${ clusterId }/v1/schemas/${ METRIC.NODE }` }, { root: true }); + + if (nodeMetricsSchema) { + data.push(nodeMetricsSchema); + } + } catch (e) { + console.warn(`Unable to fetch Node metrics schema for epinio cluster: ${ clusterId }`);// eslint-disable-line no-console } - } catch (e) { - console.warn(`Unable to fetch Node metrics schema for epinio cluster: ${ clusterId }`);// eslint-disable-line no-console } data.forEach((schema: any) => {