func asFloat64(v uint64) float64 { … }
func asNanosecondsToSeconds(v uint64) float64 { … }
func fsValues(fsStats []info.FsStats, valueFn func(*info.FsStats) float64, timestamp time.Time) metricValues { … }
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 …
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 …
func (c *PrometheusCollector) Describe(ch chan<- *prometheus.Desc) { … }
func (c *PrometheusCollector) Collect(ch chan<- prometheus.Metric) { … }
const ContainerLabelPrefix …
const ContainerEnvPrefix …
const LabelID …
const LabelName …
const LabelImage …
func DefaultContainerLabels(container *info.ContainerInfo) map[string]string { … }
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 …
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 { … }