MCPcopy
hub / github.com/prometheus/node_exporter / pushMetric

Method pushMetric

collector/infiniband_linux.go:135–137  ·  view source on GitHub ↗
(ch chan<- prometheus.Metric, name string, value uint64, deviceName string, port string, valueType prometheus.ValueType)

Source from the content-addressed store, hash-verified

133}
134
135func (c *infinibandCollector) pushMetric(ch chan<- prometheus.Metric, name string, value uint64, deviceName string, port string, valueType prometheus.ValueType) {
136 ch <- prometheus.MustNewConstMetric(c.metricDescs[name], valueType, float64(value), deviceName, port)
137}
138
139func (c *infinibandCollector) pushCounter(ch chan<- prometheus.Metric, name string, value *uint64, deviceName string, port string) {
140 if value != nil {

Callers 2

pushCounterMethod · 0.95
UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected