type PrometheusCollector …
func NewPrometheusCollector(collectorName string, configFile []byte, metricCountLimit int, containerHandler container.ContainerHandler, httpClient *http.Client) (*PrometheusCollector, error) { … }
func (collector *PrometheusCollector) Name() string { … }
func (collector *PrometheusCollector) GetSpec() []v1.MetricSpec { … }
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 { … }
func (collector *PrometheusCollector) Collect(metrics map[string][]v1.MetricVal) (time.Time, map[string][]v1.MetricVal, error) { … }