Apply review comments

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
György Krajcsovits 2024-10-17 12:55:45 +02:00
parent 04b827dd77
commit 5ee698de2c
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ import (
"github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/model/labels"
) )
func TestNhcbParserOnOpenMetricsParser(t *testing.T) { func TestNHCBParserOnOMParser(t *testing.T) {
// The input is taken originally from TestOpenMetricsParse, with additional tests for the NHCBParser. // The input is taken originally from TestOpenMetricsParse, with additional tests for the NHCBParser.
input := `# HELP go_gc_duration_seconds A summary of the GC invocation durations. input := `# HELP go_gc_duration_seconds A summary of the GC invocation durations.
@ -446,7 +446,7 @@ foobar{quantile="0.99"} 150.1`
requireEntries(t, exp, got) requireEntries(t, exp, got)
} }
func TestNhcbParserMultiHOnOpenMetricsParser(t *testing.T) { func TestNHCBParserOMParser_MultipleHistograms(t *testing.T) {
// The input is taken originally from TestOpenMetricsParse, with additional tests for the NHCBParser. // The input is taken originally from TestOpenMetricsParse, with additional tests for the NHCBParser.
input := `# HELP something Histogram with _created between buckets and summary input := `# HELP something Histogram with _created between buckets and summary

View File

@ -179,8 +179,8 @@ func (m *Manager) reload() {
continue continue
} }
if scrapeConfig.ConvertClassicHistograms && m.opts.EnableCreatedTimestampZeroIngestion { if scrapeConfig.ConvertClassicHistograms && m.opts.EnableCreatedTimestampZeroIngestion {
// TODO(krajorama): lift this limitation // TODO(krajorama): fix https://github.com/prometheus/prometheus/issues/15137
m.logger.Error("error reloading target set", "err", "cannot convert classic histograms to native histograms with custom buckets and ingest created timestamp zero samples at the same time") m.logger.Error("error reloading target set", "err", "cannot convert classic histograms to native histograms with custom buckets and ingest created timestamp zero samples at the same time due to https://github.com/prometheus/prometheus/issues/15137")
continue continue
} }
m.metrics.targetScrapePools.Inc() m.metrics.targetScrapePools.Inc()