mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape: add a link to troubleshooting docs to error message when duplicate scrape target with identical labels is skipped
This commit is contained in:
parent
5f04b00b2d
commit
0c1c1b79ba
1 changed files with 3 additions and 1 deletions
|
@ -266,7 +266,9 @@ func (sg *scraperGroup) update(sws []ScrapeWork) {
|
|||
sw := &sws[i]
|
||||
key := sw.key()
|
||||
if swsMap[key] {
|
||||
logger.Errorf("skipping duplicate scrape target with identical labels; endpoint=%s, labels=%s; make sure service discovery and relabeling is set up properly",
|
||||
logger.Errorf("skipping duplicate scrape target with identical labels; endpoint=%s, labels=%s; "+
|
||||
"make sure service discovery and relabeling is set up properly; "+
|
||||
"see also https://victoriametrics.github.io/vmagent.html#troubleshooting",
|
||||
sw.ScrapeURL, sw.LabelsString())
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue