mirror of
https://github.com/prometheus/prometheus.git
synced 2025-12-18 21:26:32 -05:00
Merge pull request #17530 from bboreham/faster-scrape-relabel
[PERF] Scraping: skip an unnecessary step when there are relabel rules
This commit is contained in:
commit
0711e89092
1 changed files with 2 additions and 6 deletions
|
|
@ -716,13 +716,9 @@ func mutateSampleLabels(lset labels.Labels, target *Target, honor bool, rc []*re
|
|||
}
|
||||
}
|
||||
|
||||
res := lb.Labels()
|
||||
relabel.ProcessBuilder(lb, rc...)
|
||||
|
||||
if len(rc) > 0 {
|
||||
res, _ = relabel.Process(res, rc...)
|
||||
}
|
||||
|
||||
return res
|
||||
return lb.Labels()
|
||||
}
|
||||
|
||||
func resolveConflictingExposedLabels(lb *labels.Builder, conflictingExposedLabels []labels.Label) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue