code: func (c *logMetricsCollector) Collect(ch chan<- prometheus.Metric) {
  	podStats, err := c.podStats()
  	if err != nil {
  		klog.Errorf("failed to get pod stats: %v", err)
  		return
  	}
  
  	for _, ps := range podStats {
  		for _, c := range ps.Containers {
  			if c.Logs != nil && c.Logs.UsedBytes != nil {
  				ch <- prometheus.MustNewConstMetric(
  					descLogSize,
  					prometheus.GaugeValue,
  					float64(*c.Logs.UsedBytes),
  					ps.PodRef.Namespace,
  					ps.PodRef.Name,
  					c.Name,
  				)
  			}
  		}
  	}
  }
docs: // Collect implements the prometheus.Collector interface.