MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / mustNewConstMetric

Method mustNewConstMetric

metric/diskstats_linux.go:43–48  ·  view source on GitHub ↗
(value float64, labels ...string)

Source from the content-addressed store, hash-verified

41}
42
43func (d *typedFactorDesc) mustNewConstMetric(value float64, labels ...string) prometheus.Metric {
44 if d.factor != 0 {
45 value *= d.factor
46 }
47 return prometheus.MustNewConstMetric(d.desc, d.valueType, value, labels...)
48}
49
50type diskstatsCollector struct {
51 ignoredDevicesPattern *regexp.Regexp

Callers 1

UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected