| 
           httpHealthCheckPort, err := findRandomTCPPort()  | 
        
        
           | 
           if err != nil {  | 
        
        
           | 
           	return nil, fmt.Errorf("could not find port for http health check: %w", err)  | 
        
        
           | 
           }  | 
        
    
   
 
We find a random TCP port for the health check extension, this is and should continue to be the default behavior.
We should allow specifying a fixed port however for cases where users may need to whitelist the new port in local iptables or firewall rules.
Probably this belongs in the agent.monitoring section alongside the same port specification used for scrape prometheus metrics from collector internal telemetry that is being introduced in. #9928