Skip to content

Commit cda9568

Browse files
committed
clean-up merge issues
1 parent b13e1b7 commit cda9568

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pkg/scrape/scraper.go

-15
Original file line numberDiff line numberDiff line change
@@ -353,21 +353,6 @@ func (ps *PromScraper) extractMetricSeriesText(textScrapeResponse []byte) Series
353353
// a metric's series are not on consecutive lines for histogram and summary metrics
354354
// so a strings.Builder is kept in memory for each metric
355355
metricLines := make(map[string]*strings.Builder)
356-
357-
// For native histograms, we need to map the base metric name to all its suffixes
358-
histogramBaseMetrics := make(map[string]bool)
359-
360-
// First pass: identify histogram base metrics
361-
for _, line := range lines {
362-
if strings.HasPrefix(line, "# TYPE") {
363-
parts := strings.Fields(line)
364-
if len(parts) >= 4 && parts[3] == "histogram" {
365-
histogramBaseMetrics[parts[2]] = true
366-
}
367-
}
368-
}
369-
370-
// Second pass: collect all lines
371356

372357
// For native histograms, we need to map the base metric name to all its suffixes
373358
histogramBaseMetrics := make(map[string]bool)

0 commit comments

Comments
 (0)