From ae5a5b2e3538da086efade55e8bf6bf27c6ca4f2 Mon Sep 17 00:00:00 2001 From: Mathis Marcotte Date: Tue, 13 Aug 2024 12:54:03 +0000 Subject: [PATCH] added test messages --- .../notebook-controller/controllers/culling_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/notebook-controller/controllers/culling_controller.go b/components/notebook-controller/controllers/culling_controller.go index 5d2e636f8c6..5939f2397a5 100644 --- a/components/notebook-controller/controllers/culling_controller.go +++ b/components/notebook-controller/controllers/culling_controller.go @@ -334,11 +334,12 @@ func updateNotebookLastActivityAnnotation(meta *metav1.ObjectMeta, log logr.Logg if testMetrics == nil { log.Info("Could not GET the TEST usage metrics. Will not update last-activity.") } else { - log.Info("TestMetricsFound. Will not update last-activity.") + log.Info(fmt.Sprintf("TestMetricsFound %s. Will not update last-activity.", testMetrics.Data.Result)) } //end test metrics cpuQuery := fmt.Sprintf("sum by(container) (node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"%s\", container=\"%s\"})", ns, nm) + log.Info(fmt.Sprintf("Test query %s. test 2 %s", cpuQuery, url.QueryEscape(cpuQuery))) cpuMetrics := getNotebookMetrics(nm, ns, url.QueryEscape(cpuQuery), log) if cpuMetrics == nil { log.Info("Could not GET the CPU usage metrics. Will not update last-activity.")