diff --git a/scrape/scrape.go b/scrape/scrape.go index 071edfca5f..119f482484 100644 --- a/scrape/scrape.go +++ b/scrape/scrape.go @@ -1556,7 +1556,7 @@ func (sl *scrapeLoop) append(app storage.Appender, b []byte, contentType string, metadataChanged bool ) - exemplars := make([]exemplar.Exemplar, 1) + exemplars := make([]exemplar.Exemplar, 0, 1) // updateMetadata updates the current iteration's metadata object and the // metadataChanged value if we have metadata in the scrape cache AND the