Method
pushCounter
(ch chan<- prometheus.Metric, name string, value *uint64, deviceName string, port string)
Source from the content-addressed store, hash-verified
| 137 | } |
| 138 | |
| 139 | func (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 | |
| 145 | func (c *infinibandCollector) Update(ch chan<- prometheus.Metric) error { |
| 146 | devices, err := c.fs.InfiniBandClass() |
Tested by
no test coverage detected