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

Method Update

collector/netclass_linux.go:67–72  ·  view source on GitHub ↗
(ch chan<- prometheus.Metric)

Source from the content-addressed store, hash-verified

65}
66
67func (c *netClassCollector) Update(ch chan<- prometheus.Metric) error {
68 if *netclassNetlink {
69 return c.netClassRTNLUpdate(ch)
70 }
71 return c.netClassSysfsUpdate(ch)
72}
73
74func (c *netClassCollector) netClassSysfsUpdate(ch chan<- prometheus.Metric) error {
75 netClass, err := c.getNetClassInfo()

Callers

nothing calls this directly

Calls 2

netClassRTNLUpdateMethod · 0.95
netClassSysfsUpdateMethod · 0.95

Tested by

no test coverage detected