Prometheus: Reduce memory allocations in QueryData.processExemplars (#63373)

* tsdb/prometheus/querydata: Reduce memory allocations in QueryData.processExemplars

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2023-03-22 10:59:39 +01:00
committed by GitHub
parent 6d5242e54c
commit f7ee42d871
6 changed files with 41 additions and 27 deletions
+2 -1
View File
@@ -47,7 +47,8 @@ func (r ResultType) String() string {
type Exemplar struct {
SeriesLabels map[string]string
Labels map[string]string
Fields []*data.Field
RowIdx int
Value float64
Timestamp time.Time
}