diff --git a/model/textparse/openmetricsparse.go b/model/textparse/openmetricsparse.go index ac4ed36fd9..8b83a1a61b 100644 --- a/model/textparse/openmetricsparse.go +++ b/model/textparse/openmetricsparse.go @@ -269,7 +269,7 @@ func (p *OpenMetricsParser) CreatedTimestamp() *int64 { } // We got a CT line here, but let's search if CT line is actually for our series, edge case. - peekWithoutNameLsetHash, buf = peekedLset.HashWithoutLabels(buf, labels.MetricName, "le", "quantile") + peekWithoutNameLsetHash, _ = peekedLset.HashWithoutLabels(buf, labels.MetricName, "le", "quantile") if peekWithoutNameLsetHash != currWithoutNameLsetHash { // CT line for a different series, for our series no CT. return nil @@ -278,6 +278,7 @@ func (p *OpenMetricsParser) CreatedTimestamp() *int64 { return &ct } } + func typeRequiresCT(t model.MetricType) bool { switch t { case model.MetricTypeCounter, model.MetricTypeSummary, model.MetricTypeHistogram: