{{#if scope.currentCluster.isReady}} {{#if showMonitoringV2Warning}} {{#banner-message color="bg-warning"}}
{{t 'banner.monitoringV2Warning' dashboardLink=scope.dashboardLink docsBase=scope.docsBase htmlSafe=true}}
{{/banner-message}} {{else}} {{#banner-message color="bg-warning"}}{{t 'banner.monitoring' dashboardLink=scope.dashboardLink docsBase=scope.docsBase htmlSafe=true}}
{{/banner-message}} {{/if}} {{/if}} {{#if canSaveMonitor}}{{t "monitoringPage.resourceLimitsHelp" docsBase=settings.docsBase htmlSafe=true}}
{{/if}} {{#if (and enabled scope.currentProject.enableProjectMonitoring (not scope.currentCluster.enableClusterMonitoring))}} {{#banner-message color="bg-warning"}}{{t "monitoringPage.clusterNotEnabled"}}
{{/banner-message}} {{/if}} {{#banner-message color="bg-info"}}{{#if enabled}} {{t (concat "monitoringPage.toUpdate." level)}} {{else}} {{t (concat "monitoringPage." level ".disabled")}} {{/if}}
{{/banner-message}} {{#if loading}}{{#if (and insufficientMemory insufficientCpu)}} {{t "monitoringPage.insufficientSize.total.all" cpu=minCpu memory=minMemory}} {{else if insufficientMemory}} {{t "monitoringPage.insufficientSize.total.memory" memory=minMemory}} {{else if insufficientCpu}} {{t "monitoringPage.insufficientSize.total.cpu" cpu=minCpu}} {{else if (and insufficientPrometheusCpu insufficientPrometheusMemory nodeSelectors.length)}} {{t "monitoringPage.insufficientSize.selectors.all" cpu=prometheusRequestCpu memory=prometheusRequestMemory}} {{else if (and insufficientPrometheusCpu insufficientPrometheusMemory)}} {{t "monitoringPage.insufficientSize.prometheus.all" cpu=prometheusRequestCpu memory=prometheusRequestMemory}} {{else if (and insufficientPrometheusCpu nodeSelectors.length)}} {{t "monitoringPage.insufficientSize.selectors.cpu" cpu=prometheusRequestCpu}} {{else if insufficientPrometheusCpu}} {{t "monitoringPage.insufficientSize.prometheus.cpu" cpu=prometheusRequestCpu}} {{else if (and insufficientPrometheusMemory nodeSelectors.length)}} {{t "monitoringPage.insufficientSize.selectors.memory" memory=prometheusRequestMemory}} {{else if insufficientPrometheusMemory}} {{t "monitoringPage.insufficientSize.prometheus.memory" memory=prometheusRequestMemory}} {{/if}}
{{/banner-message}} {{/if}}