kubernetes/vendor/github.com/prometheus/client_golang/prometheus/go_collector_latest.go

const goGCHeapTinyAllocsObjects

const goGCHeapAllocsObjects

const goGCHeapFreesObjects

const goGCHeapFreesBytes

const goGCHeapAllocsBytes

const goGCHeapObjects

const goGCHeapGoalBytes

const goMemoryClassesTotalBytes

const goMemoryClassesHeapObjectsBytes

const goMemoryClassesHeapUnusedBytes

const goMemoryClassesHeapReleasedBytes

const goMemoryClassesHeapFreeBytes

const goMemoryClassesHeapStacksBytes

const goMemoryClassesOSStacksBytes

const goMemoryClassesMetadataMSpanInuseBytes

const goMemoryClassesMetadataMSPanFreeBytes

const goMemoryClassesMetadataMCacheInuseBytes

const goMemoryClassesMetadataMCacheFreeBytes

const goMemoryClassesProfilingBucketsBytes

const goMemoryClassesMetadataOtherBytes

const goMemoryClassesOtherBytes

var rmNamesForMemStatsMetrics

func bestEffortLookupRM(lookup []string) []metrics.Description {}

type goCollector

type rmMetricDesc

func matchRuntimeMetricsRules(rules []internal.GoCollectorRule) []rmMetricDesc {}

func defaultGoCollectorOptions() internal.GoCollectorOptions {}

// NewGoCollector is the obsolete version of collectors.NewGoCollector.
// See there for documentation.
//
// Deprecated: Use collectors.NewGoCollector instead.
func NewGoCollector(opts ...func(o *internal.GoCollectorOptions)) Collector {}

// Describe returns all descriptions of the collector.
func (c *goCollector) Describe(ch chan<- *Desc) {}

// Collect returns the current state of all metrics of the collector.
func (c *goCollector) Collect(ch chan<- Metric) {}

// unwrapScalarRMValue unwraps a runtime/metrics value that is assumed
// to be scalar and returns the equivalent float64 value. Panics if the
// value is not scalar.
func unwrapScalarRMValue(v metrics.Value) float64 {}

// exactSumFor takes a runtime/metrics metric name (that is assumed to
// be of kind KindFloat64Histogram) and returns its exact sum and whether
// its exact sum exists.
//
// The runtime/metrics API for histograms doesn't currently expose exact
// sums, but some of the other metrics are in fact exact sums of histograms.
func (c *goCollector) exactSumFor(rmName string) float64 {}

func memStatsFromRM(ms *runtime.MemStats, rm map[string]*metrics.Sample) {}

type batchHistogram

// newBatchHistogram creates a new batch histogram value with the given
// Desc, buckets, and whether or not it has an exact sum available.
//
// buckets must always be from the runtime/metrics package, following
// the same conventions.
func newBatchHistogram(desc *Desc, buckets []float64, hasSum bool) *batchHistogram {}

// update updates the batchHistogram from a runtime/metrics histogram.
//
// sum must be provided if the batchHistogram was created to have an exact sum.
// h.buckets must be a strict subset of his.Buckets.
func (h *batchHistogram) update(his *metrics.Float64Histogram, sum float64) {}

func (h *batchHistogram) Desc() *Desc {}

func (h *batchHistogram) Write(out *dto.Metric) error {}