mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 14:17:12 +02:00
Apply suggestions from code review
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com> Signed-off-by: George Krajcsovits <krajorama@users.noreply.github.com>
This commit is contained in:
parent
0a40a09da5
commit
a1700aab3a
@ -635,7 +635,7 @@ type ScrapeConfig struct {
|
||||
ScrapeProtocols []ScrapeProtocol `yaml:"scrape_protocols,omitempty"`
|
||||
// Whether to scrape a classic histogram that is also exposed as a native histogram.
|
||||
ScrapeClassicHistograms bool `yaml:"scrape_classic_histograms,omitempty"`
|
||||
// Whether to convert a scraped classic histogram into a native histogram with custom buckets.
|
||||
// Whether to convert all scraped classic histograms into a native histogram with custom buckets.
|
||||
ConvertClassicHistograms bool `yaml:"convert_classic_histograms,omitempty"`
|
||||
// File to which scrape failures are logged.
|
||||
ScrapeFailureLogFile string `yaml:"scrape_failure_log_file,omitempty"`
|
||||
|
@ -40,7 +40,7 @@ var newTestParserFns = map[string]newParser{
|
||||
"omtext": func(b []byte, st *labels.SymbolTable) Parser {
|
||||
return NewOpenMetricsParser(b, st, WithOMParserCTSeriesSkipped())
|
||||
},
|
||||
"nhcb_over_omtext": func(b []byte, st *labels.SymbolTable) Parser {
|
||||
"omtext_with_nhcb": func(b []byte, st *labels.SymbolTable) Parser {
|
||||
p := NewOpenMetricsParser(b, st, WithOMParserCTSeriesSkipped())
|
||||
return NewNHCBParser(p, st, false)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user