• Kubernetes Submit Queue's avatar
    Merge pull request #59906 from abhi/log_stats · 742c9b15
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 54191, 59374, 59824, 55032, 59906). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Adding per container stats for CRI runtimes
    
    **What this PR does / why we need it**
    
    This commit aims to collect per container log stats. The change was proposed as a part of #55905. The change includes change the log path from /var/pod/<pod uid>/containername_attempt.log to /var/pod/<pod uid>/containername/containername_attempt.log. The logs are collected by reusing volume package to collect metrics from the log path.
    Fixes #55905
    
    **Special notes for your reviewer:**
    cc @Random-Liu
    
    **Release note:**
    
    ```
    Adding container log stats for CRI runtimes.
    ```
    742c9b15
stats_provider.go 6.6 KB