aboutsummaryrefslogtreecommitdiff
path: root/node_exporter.go
diff options
context:
space:
mode:
authorJulius Volz <julius@soundcloud.com>2015-06-22 13:32:08 +0200
committerJulius Volz <julius@soundcloud.com>2015-06-22 13:32:31 +0200
commite60674406899ac36940fa456141888d2d0069e43 (patch)
tree954c4c86dc348e934cd1afac4b7ee2bd8020680d /node_exporter.go
parent484eedbf015f1848e9a5412c55a3c4bdfdf8a685 (diff)
downloadprometheus_node_collector-e60674406899ac36940fa456141888d2d0069e43.tar.bz2
prometheus_node_collector-e60674406899ac36940fa456141888d2d0069e43.tar.xz
prometheus_node_collector-e60674406899ac36940fa456141888d2d0069e43.zip
Make logging of collector executions less verbose.
This fixes https://github.com/prometheus/node_exporter/issues/86
Diffstat (limited to 'node_exporter.go')
-rw-r--r--node_exporter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_exporter.go b/node_exporter.go
index dcd6bb4..c15b464 100644
--- a/node_exporter.go
+++ b/node_exporter.go
@@ -94,10 +94,10 @@ func Execute(name string, c collector.Collector, ch chan<- prometheus.Metric) {
94 var result string 94 var result string
95 95
96 if err != nil { 96 if err != nil {
97 log.Infof("ERROR: %s failed after %fs: %s", name, duration.Seconds(), err) 97 log.Errorf("ERROR: %s collector failed after %fs: %s", name, duration.Seconds(), err)
98 result = "error" 98 result = "error"
99 } else { 99 } else {
100 log.Infof("OK: %s success after %fs.", name, duration.Seconds()) 100 log.Debugf("OK: %s collector succeeded after %fs.", name, duration.Seconds())
101 result = "success" 101 result = "success"
102 } 102 }
103 scrapeDurations.WithLabelValues(name, result).Observe(duration.Seconds()) 103 scrapeDurations.WithLabelValues(name, result).Observe(duration.Seconds())