Skip to content

Commit

Permalink
Merge pull request #1954 from prometheus/superq/noisy_rapl
Browse files Browse the repository at this point in the history
Fix rapl collector log noise
  • Loading branch information
SuperQ authored Feb 5, 2021
2 parents a2b556a + dc5a94c commit 43b91ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions collector/rapl_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func (c *raplCollector) Update(ch chan<- prometheus.Metric) error {
level.Debug(c.logger).Log("msg", "Platform doesn't have powercap files present", "err", err)
return ErrNoData
}
if errors.Is(err, os.ErrPermission) {
level.Debug(c.logger).Log("msg", "Can't access powercap files", "err", err)
return ErrNoData
}
return fmt.Errorf("failed to retrieve rapl stats: %w", err)
}

Expand Down

0 comments on commit 43b91ac

Please sign in to comment.