mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 14:09:41 -08:00
Add comment
This commit is contained in:
parent
43ca652217
commit
3d8661b8d5
|
@ -432,6 +432,7 @@ type scrapeLoop struct {
|
||||||
|
|
||||||
// seriesCur and seriesPrev store the labels of series that were seen
|
// seriesCur and seriesPrev store the labels of series that were seen
|
||||||
// in the current and previous scrape.
|
// in the current and previous scrape.
|
||||||
|
// We hold two maps and swap them out to save allocations.
|
||||||
seriesCur map[string]labels.Labels
|
seriesCur map[string]labels.Labels
|
||||||
seriesPrev map[string]labels.Labels
|
seriesPrev map[string]labels.Labels
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue