kubernetes/vendor/github.com/google/cadvisor/metrics/prometheus.go

// asFloat64 converts a uint64 into a float64.
func asFloat64(v uint64) float64 {}

// asNanosecondsToSeconds converts nanoseconds into a float64 representing seconds.
func asNanosecondsToSeconds(v uint64) float64 {}

// fsValues is a helper method for assembling per-filesystem stats.
func fsValues(fsStats []info.FsStats, valueFn func(*info.FsStats) float64, timestamp time.Time) metricValues {}

// ioValues is a helper method for assembling per-disk and per-filesystem stats.
func ioValues(ioStats []info.PerDiskStats, ioType string, ioValueFn func(uint64) float64,
	fsStats []info.FsStats, valueFn func(*info.FsStats) float64, timestamp time.Time) metricValues {}

type containerMetric

func (cm *containerMetric) desc(baseLabels []string) *prometheus.Desc {}

type ContainerLabelsFunc

type PrometheusCollector

// NewPrometheusCollector returns a new PrometheusCollector. The passed
// ContainerLabelsFunc specifies which base labels will be attached to all
// exported metrics. If left to nil, the DefaultContainerLabels function
// will be used instead.
func NewPrometheusCollector(i infoProvider, f ContainerLabelsFunc, includedMetrics container.MetricSet, now clock.Clock, opts v2.RequestOptions) *PrometheusCollector {}

var versionInfoDesc

var startTimeDesc

var cpuPeriodDesc

var cpuQuotaDesc

var cpuSharesDesc

// Describe describes all the metrics ever exported by cadvisor. It
// implements prometheus.PrometheusCollector.
func (c *PrometheusCollector) Describe(ch chan<- *prometheus.Desc) {}

// Collect fetches the stats from all containers and delivers them as
// Prometheus metrics. It implements prometheus.PrometheusCollector.
func (c *PrometheusCollector) Collect(ch chan<- prometheus.Metric) {}

const ContainerLabelPrefix

const ContainerEnvPrefix

const LabelID

const LabelName

const LabelImage

// DefaultContainerLabels implements ContainerLabelsFunc. It exports the
// container name, first alias, image name as well as all its env and label
// values.
func DefaultContainerLabels(container *info.ContainerInfo) map[string]string {}

// BaseContainerLabels returns a ContainerLabelsFunc that exports the container
// name, first alias, image name as well as all its white listed env and label values.
func BaseContainerLabels(whiteList []string) func(container *info.ContainerInfo) map[string]string {}

func (c *PrometheusCollector) collectContainersInfo(ch chan<- prometheus.Metric) {}

func (c *PrometheusCollector) collectVersionInfo(ch chan<- prometheus.Metric) {}

const maxMemorySize

func specMemoryValue(v uint64) float64 {}

var invalidNameCharRE

// sanitizeLabelName replaces anything that doesn't match
// client_label.LabelNameRE with an underscore.
func sanitizeLabelName(name string) string {}

func getNumaStatsPerNode(nodeStats map[uint8]uint64, labels []string, timestamp time.Time) metricValues {}

func getPerCPUCorePerfEvents(s *info.ContainerStats) metricValues {}

func getPerCPUCoreScalingRatio(s *info.ContainerStats) metricValues {}

func getAggregatedCorePerfEvents(s *info.ContainerStats) metricValues {}

func getMinCoreScalingRatio(s *info.ContainerStats) metricValues {}