From f10c665d33fc008c00c823d31e93ad8b5f52fb82 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Mon, 13 May 2019 11:44:12 -0500 Subject: [PATCH] Cleanup uname Update call (#1342) Make collector a pointer for consistency. Fixes: https://github.com/prometheus/node_exporter/issues/1300 Signed-off-by: Ben Kochie --- collector/uname.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/uname.go b/collector/uname.go index e9a633f9..8e91e5f8 100644 --- a/collector/uname.go +++ b/collector/uname.go @@ -53,7 +53,7 @@ func newUnameCollector() (Collector, error) { return &unameCollector{}, nil } -func (c unameCollector) Update(ch chan<- prometheus.Metric) error { +func (c *unameCollector) Update(ch chan<- prometheus.Metric) error { uname, err := getUname() if err != nil { return err