Commit cda9568 1 parent b13e1b7 commit cda9568 Copy full SHA for cda9568
File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -353,21 +353,6 @@ func (ps *PromScraper) extractMetricSeriesText(textScrapeResponse []byte) Series
353
353
// a metric's series are not on consecutive lines for histogram and summary metrics
354
354
// so a strings.Builder is kept in memory for each metric
355
355
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
371
356
372
357
// For native histograms, we need to map the base metric name to all its suffixes
373
358
histogramBaseMetrics := make (map [string ]bool )
You can’t perform that action at this time.
0 commit comments