diff --git a/pkg/archive/clusterConfig.go b/pkg/archive/clusterConfig.go index 0673a50..a68a530 100644 --- a/pkg/archive/clusterConfig.go +++ b/pkg/archive/clusterConfig.go @@ -55,7 +55,9 @@ func initClusterConfig() error { ml, ok := metricLookup[mc.Name] if !ok { - metricLookup[mc.Name] = schema.GlobalMetricListItem{Name: mc.Name, Scope: mc.Scope, Unit: mc.Unit} + metricLookup[mc.Name] = schema.GlobalMetricListItem{ + Name: mc.Name, Scope: mc.Scope, Unit: mc.Unit, Footprint: mc.Footprint, + } ml = metricLookup[mc.Name] } availability := schema.ClusterSupport{Cluster: cluster.Name} @@ -84,6 +86,7 @@ func initClusterConfig() error { if newMetric.Footprint { sc.Footprint = append(sc.Footprint, newMetric.Name) + ml.Footprint = true } if newMetric.Energy { sc.EnergyFootprint = append(sc.EnergyFootprint, newMetric.Name) diff --git a/pkg/schema/cluster.go b/pkg/schema/cluster.go index 5b2305e..ef1be89 100644 --- a/pkg/schema/cluster.go +++ b/pkg/schema/cluster.go @@ -88,6 +88,7 @@ type GlobalMetricListItem struct { Name string `json:"name"` Unit Unit `json:"unit"` Scope MetricScope `json:"scope"` + Footprint bool `json:"footprint"` Availability []ClusterSupport `json:"availability"` }