[llvm] [CI] Add queue size, running count metrics (PR #122714)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 10:29:40 PST 2025


================
@@ -164,16 +230,19 @@ def main():
     # Enter the main loop. Every five minutes we wake up and dump metrics for
     # the relevant jobs.
     while True:
-        current_metrics = get_metrics(github_repo, workflows_to_track)
+        current_metrics = get_per_workflow_metrics(github_repo, workflows_to_track)
+        current_metrics += get_sampled_workflow_metrics(github_repo)
         if len(current_metrics) == 0:
-            print("No metrics found to upload.", file=sys.stderr)
-            continue
+            print("No metrics found to upload.", file=sys.stdout)
 
         upload_metrics(current_metrics, grafana_metrics_userid, grafana_api_key)
-        print(f"Uploaded {len(current_metrics)} metrics", file=sys.stderr)
+        print(f"Uploaded {len(current_metrics)} metrics", file=sys.stdout)
----------------
boomanaiden154 wrote:

Is there a reason you've changed this to `stdout`? I think `stderr makes more sense here given it's for debug logging rather than any actual application output.

https://github.com/llvm/llvm-project/pull/122714


More information about the llvm-commits mailing list