[llvm] [CI] Add queue size, running count metrics (PR #122714)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 04:32:39 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)
----------------
Keenuts wrote:
![sample](https://github.com/user-attachments/assets/b3334b96-49f1-4681-820f-9b9be6a6f4d2)
Severity is "ERROR" today, since this program has no output on stdout, I wanted to verify if we could simply log to stdout and get the severity down to notice/info.
But if that's controversial, happy to revert this change so the rest of this patch can land.
https://github.com/llvm/llvm-project/pull/122714
More information about the llvm-commits
mailing list