Remove typo

Signed-off-by: Sevag Hanssian <sevag.hanssian@gmail.com>
This commit is contained in:
Sevag Hanssian 2018-10-31 15:31:37 -07:00
parent e6fe89ce22
commit c5bdd15ac3
No known key found for this signature in database
GPG Key ID: 15472D208B254CF4
1 changed files with 1 additions and 1 deletions

View File

@ -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, ","))