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

Method pushCounter

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

Source from the content-addressed store, hash-verified

137}
138
139func (c *infinibandCollector) pushCounter(ch chan<- prometheus.Metric, name string, value *uint64, deviceName string, port string) {
140 if value != nil {
141 c.pushMetric(ch, name, *value, deviceName, port, prometheus.CounterValue)
142 }
143}
144
145func (c *infinibandCollector) Update(ch chan<- prometheus.Metric) error {
146 devices, err := c.fs.InfiniBandClass()

Callers 1

UpdateMethod · 0.95

Calls 1

pushMetricMethod · 0.95

Tested by

no test coverage detected