mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape: mention in scrape error message that scrape errors can be disabled by -promscrape.suppressScrapeErrors
command-line flag
This commit is contained in:
parent
22baf8fe25
commit
9d79d11a6c
1 changed files with 3 additions and 1 deletions
|
@ -221,7 +221,9 @@ func (sw *scrapeWork) run(stopCh <-chan struct{}) {
|
|||
|
||||
func (sw *scrapeWork) logError(s string) {
|
||||
if !*suppressScrapeErrors {
|
||||
logger.ErrorfSkipframes(1, "error when scraping %q from job %q with labels %s: %s", sw.Config.ScrapeURL, sw.Config.Job(), sw.Config.LabelsString(), s)
|
||||
logger.ErrorfSkipframes(1, "error when scraping %q from job %q with labels %s: %s; "+
|
||||
"scrape errors can be disabled by -promscrape.suppressScrapeErrors command-line flag",
|
||||
sw.Config.ScrapeURL, sw.Config.Job(), sw.Config.LabelsString(), s)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue