From c5bdd15ac3223ee284d9b4587d3582b819fac1c1 Mon Sep 17 00:00:00 2001 From: Sevag Hanssian Date: Wed, 31 Oct 2018 15:31:37 -0700 Subject: [PATCH] Remove typo Signed-off-by: Sevag Hanssian --- prometheus/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/registry.go b/prometheus/registry.go index 693b47b..cc83725 100644 --- a/prometheus/registry.go +++ b/prometheus/registry.go @@ -562,7 +562,7 @@ func (r *Registry) WriteToTextfile(path string) error { case dto.MetricType_GAUGE: value := strconv.FormatFloat(metric.GetGauge().GetValue(), 'f', -1, 64) labelString := fmt.Sprintf("{%s}", strings.Join(labelStrings, ",")) - output = append(output, fmt.Sprintf("%s%s %is%s", metricFamily.GetName(), labelString, value, timestampString)) + output = append(output, fmt.Sprintf("%s%s %s%s", metricFamily.GetName(), labelString, value, timestampString)) case dto.MetricType_UNTYPED: value := strconv.FormatFloat(metric.GetUntyped().GetValue(), 'f', -1, 64) labelString := fmt.Sprintf("{%s}", strings.Join(labelStrings, ","))