Skip to content

Commit

Permalink
added test messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Marcotte committed Aug 13, 2024
1 parent 566a1c6 commit ae5a5b2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit ae5a5b2

Please sign in to comment.