mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-09-05 16:42:58 +02:00
Make polarplot metrics cluster specific
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
selectedScopes = {},
|
||||
sorting = {},
|
||||
isMetricSelectionOpen = false,
|
||||
selectedMetrics = getContext('cc-config').job_view_nodestats_selectedMetrics
|
||||
selectedMetrics = getContext('cc-config')[`job_view_nodestats_selectedMetrics:${job.cluster}`]
|
||||
|| getContext('cc-config')['job_view_nodestats_selectedMetrics']
|
||||
|
||||
for (let metric of allMetrics) {
|
||||
selectedScopes[metric] = maxScope(scopesForMetric(metric))
|
||||
@@ -116,7 +117,8 @@
|
||||
<br/>
|
||||
|
||||
<MetricSelection
|
||||
cluster={job.cluster}
|
||||
configName='job_view_nodestats_selectedMetrics'
|
||||
allMetrics={allMetrics}
|
||||
allMetrics={new Set(allMetrics)}
|
||||
bind:metrics={selectedMetrics}
|
||||
bind:isOpen={isMetricSelectionOpen} />
|
||||
|
Reference in New Issue
Block a user