kubernetes/vendor/github.com/google/cadvisor/collector/prometheus_collector.go

type PrometheusCollector

// Returns a new collector using the information extracted from the configfile
func NewPrometheusCollector(collectorName string, configFile []byte, metricCountLimit int, containerHandler container.ContainerHandler, httpClient *http.Client) (*PrometheusCollector, error) {}

// Returns name of the collector
func (collector *PrometheusCollector) Name() string {}

func (collector *PrometheusCollector) GetSpec() []v1.MetricSpec {}

// metricType converts Prometheus metric type to cadvisor metric type.
// If there is no mapping then just return the name of the Prometheus metric type.
func metricType(t rawmodel.MetricType) v1.MetricType {}

type prometheusLabels

func labelSetToLabelPairs(labels model.Metric) prometheusLabels {}

func (s prometheusLabels) Len() int      {}

func (s prometheusLabels) Swap(i, j int) {}

type byName

func (s byName) Less(i, j int) bool {}

func prometheusLabelSetToCadvisorLabels(promLabels model.Metric) map[string]string {}

func prometheusLabelSetToCadvisorLabel(promLabels model.Metric) string {}

// Returns collected metrics and the next collection time of the collector
func (collector *PrometheusCollector) Collect(metrics map[string][]v1.MetricVal) (time.Time, map[string][]v1.MetricVal, error) {}