var descLogSize … type logMetricsCollector … var _ … // NewLogMetricsCollector implements the metrics.StableCollector interface and // exposes metrics about container's log volume size. func NewLogMetricsCollector(podStats func(ctx context.Context) ([]statsapi.PodStats, error)) metrics.StableCollector { … } // DescribeWithStability implements the metrics.StableCollector interface. func (c *logMetricsCollector) DescribeWithStability(ch chan<- *metrics.Desc) { … } // CollectWithStability implements the metrics.StableCollector interface. func (c *logMetricsCollector) CollectWithStability(ch chan<- metrics.Metric) { … }