Fix metrics configuration via catalog (#4252)

This commit is contained in:
Jan Jansen authored and GitHub committed 2021-11-04 09:33:52 -04:00
1 parent a93108c103
commit 0e1df10488
1 file changed
+5
+5
View File
@@ -192,6 +192,11 @@ export class ClusterManager extends Singleton {
cluster.accessibleNamespaces = entity.spec.accessibleNamespaces;
}
if (entity.spec.metrics.source !== "local") {
cluster.preferences.prometheusProvider ||= { type: entity.spec.metrics?.prometheus?.type ?? "" };
cluster.preferences.prometheus = entity.spec.metrics.prometheus.address;
}
this.updateEntityFromCluster(cluster);
}
}