From 07b69f92e6698f09c94e0ce37b245ff0f582e97e Mon Sep 17 00:00:00 2001 From: Joe Handzik Date: Thu, 20 Apr 2017 13:43:34 -0500 Subject: [PATCH] Reset metricType to single This fixes issue #19. Signed-Off-By: Joe Handzik --- sources/procfs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/procfs.go b/sources/procfs.go index 41d62da9..38baa885 100644 --- a/sources/procfs.go +++ b/sources/procfs.go @@ -167,6 +167,7 @@ func (s *lustreSource) Update(ch chan<- prometheus.Metric) (err error) { continue } for _, path := range paths { + metricType = "single" switch metric.name { case "brw_stats": err = s.parseBRWStats(metric.source, "brw_stats", path, metric.helpText, func(nodeType string, brwOperation string, brwSize string, nodeName string, name string, helpText string, value uint64) {