diff options
Diffstat (limited to 'collector/entropy_linux.go')
-rw-r--r-- | collector/entropy_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/entropy_linux.go b/collector/entropy_linux.go index e68eb95..3c42c3d 100644 --- a/collector/entropy_linux.go +++ b/collector/entropy_linux.go | |||
@@ -46,7 +46,7 @@ func NewEntropyCollector(logger log.Logger) (Collector, error) { | |||
46 | func (c *entropyCollector) Update(ch chan<- prometheus.Metric) error { | 46 | func (c *entropyCollector) Update(ch chan<- prometheus.Metric) error { |
47 | value, err := readUintFromFile(procFilePath("sys/kernel/random/entropy_avail")) | 47 | value, err := readUintFromFile(procFilePath("sys/kernel/random/entropy_avail")) |
48 | if err != nil { | 48 | if err != nil { |
49 | return fmt.Errorf("couldn't get entropy_avail: %s", err) | 49 | return fmt.Errorf("couldn't get entropy_avail: %w", err) |
50 | } | 50 | } |
51 | ch <- prometheus.MustNewConstMetric( | 51 | ch <- prometheus.MustNewConstMetric( |
52 | c.entropyAvail, prometheus.GaugeValue, float64(value)) | 52 | c.entropyAvail, prometheus.GaugeValue, float64(value)) |