From c331094b03aa53fd0103642b3a595c19a87f42ee Mon Sep 17 00:00:00 2001 From: MohammedAbdi Date: Thu, 27 Jun 2024 15:10:15 -0400 Subject: [PATCH] log metric values and active container ids Signed-off-by: MohammedAbdi --- internal/controller/labelgroup_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/controller/labelgroup_controller.go b/internal/controller/labelgroup_controller.go index c87f5a6..07ce93a 100644 --- a/internal/controller/labelgroup_controller.go +++ b/internal/controller/labelgroup_controller.go @@ -228,6 +228,8 @@ func (r *LabelGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) delete(labelGroup.Status.ActiveContainerIds, containerId) } } + r.Logger.V(5).Info(fmt.Sprintf("[Reconcile-Aggregating] metricValues: %#v", metricValues)) // trace + r.Logger.V(5).Info(fmt.Sprintf("[Reconcile-Aggregating] ActiveContainerIds: %#v", labelGroup.Status.ActiveContainerIds)) // trace // 3) Add the values of the remaining new containers to the total energy and update the list of active containers for containerId, newValue := range metricValues {