azure-pipelines-agent: [BUG]: Agent Resource Metrics Redirection Issue

What happened?

The recent addition of agent resource metrics makes monitoring log output almost impossible with system.debug enabled. The page while watching the logs constantly switches to the resource metrics.

If we click back on the task to look at the logs it keeps bringing me to the metrics. Can we add a way to disable this? Or use a different flag than system.debug? It makes monitoring out pipeline runs impossible and we value the extra output from system.debug but don’t want to continually be redirected to these metrics every few seconds that it updates.

Versions

3.771.1

Both Ubuntu in Docker and Windows

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 20.04 / Windows Server 2019

Version controll system

No response

Relevant log output

##[debug]Agent running environment resource - Disk: available:12911852.00MB out of 14532478.00MB, Memory: used 88MB out of 515552MB, CPU: usage 3.99
##[debug]Agent running environment resource - Disk: available:12911845.00MB out of 14532478.00MB, Memory: used 88MB out of 515552MB, CPU: usage 3.93
##[debug]Agent running environment resource - Disk: available:12911831.00MB out of 14532478.00MB, Memory: used 88MB out of 515552MB, CPU: usage 3.81
##[debug]Agent running environment resource - Disk: available:12911823.00MB out of 14532478.00MB, Memory: used 88MB out of 515552MB, CPU: usage 3.70
##[debug]Agent running environment resource - Disk: available:12911813.00MB out of 14532478.00MB, Memory: used 88MB out of 515552MB, CPU: usage 3.63

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Hi @kirill-ivlev, why was this closed, could you please reopen? This bug still exists and nothing has been merged/deployed to fix it. I think this is the PR to fix it, but no idea if it works - https://github.com/microsoft/azure-pipelines-agent/pull/4486

Monitoring running pipeline logs is still a very poor experience with this resource metrics feature/bug.