• Kubernetes Submit Queue's avatar
    Merge pull request #51728 from derekwaynecarr/cadvisor-stats · b6545a08
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 51728, 49202)
    
    Enable CRI-O stats from cAdvisor
    
    **What this PR does / why we need it**:
    cAdvisor may support multiple container runtimes (docker, rkt, cri-o, systemd, etc.)
    
    As long as the kubelet continues to run cAdvisor, runtimes with native cAdvisor support may not want to run multiple monitoring agents to avoid performance regression in production.  Pending kubelet running a more light-weight monitoring solution, this PR allows remote runtimes to have their stats pulled from cAdvisor when cAdvisor is registered stats provider by introspection of the runtime endpoint.
    
    See issue https://github.com/kubernetes/kubernetes/issues/51798
    
    **Special notes for your reviewer**:
    cAdvisor will be bumped to pick up https://github.com/google/cadvisor/pull/1741
    
    At that time, CRI-O will support fetching stats from cAdvisor.
    
    **Release note**:
    ```release-note
    NONE
    ```
    b6545a08
server.go 31.5 KB