From 4fa1ca85c13a130a7dc02a5355416eadf5a5979d Mon Sep 17 00:00:00 2001 From: Joe Handzik Date: Thu, 11 May 2017 09:04:49 -0500 Subject: [PATCH] Lowercase all metric labels Signed-Off-By: Joe Handzik --- sources/procfs.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/procfs.go b/sources/procfs.go index 1dbdd007..2d5dbb20 100644 --- a/sources/procfs.go +++ b/sources/procfs.go @@ -191,7 +191,7 @@ func (s *lustreSource) generateOSTMetricTemplates() error { } for path := range metricMap { for _, item := range metricMap[path] { - newMetric := newLustreProcMetric(item.filename, item.promName, "OST", path, item.helpText) + newMetric := newLustreProcMetric(item.filename, item.promName, "ost", path, item.helpText) s.lustreProcMetrics = append(s.lustreProcMetrics, newMetric) } } @@ -229,7 +229,7 @@ func (s *lustreSource) generateMDTMetricTemplates() error { } for path := range metricMap { for _, item := range metricMap[path] { - newMetric := newLustreProcMetric(item.filename, item.promName, "MDT", path, item.helpText) + newMetric := newLustreProcMetric(item.filename, item.promName, "mdt", path, item.helpText) s.lustreProcMetrics = append(s.lustreProcMetrics, newMetric) } } @@ -250,7 +250,7 @@ func (s *lustreSource) generateMGSMetricTemplates() error { } for path := range metricMap { for _, item := range metricMap[path] { - newMetric := newLustreProcMetric(item.filename, item.promName, "MGS", path, item.helpText) + newMetric := newLustreProcMetric(item.filename, item.promName, "mgs", path, item.helpText) s.lustreProcMetrics = append(s.lustreProcMetrics, newMetric) } } @@ -271,7 +271,7 @@ func (s *lustreSource) generateMDSMetricTemplates() error { } for path := range metricMap { for _, item := range metricMap[path] { - newMetric := newLustreProcMetric(item.filename, item.promName, "MDS", path, item.helpText) + newMetric := newLustreProcMetric(item.filename, item.promName, "mds", path, item.helpText) s.lustreProcMetrics = append(s.lustreProcMetrics, newMetric) } }