Skip to content

Commit

Permalink
log metric values and active container ids
Browse files Browse the repository at this point in the history
Signed-off-by: MohammedAbdi <[email protected]>
  • Loading branch information
mamy-CS committed Jun 27, 2024
1 parent d9efbab commit c331094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controller/labelgroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c331094

Please sign in to comment.