@@ -12,7 +12,6 @@ import (
12
12
"github.com/cortexproject/cortex/pkg/util/validation"
13
13
"github.com/go-kit/kit/log/level"
14
14
"github.com/prometheus/client_golang/prometheus"
15
- "github.com/prometheus/common/model"
16
15
"github.com/prometheus/prometheus/tsdb"
17
16
lbls "github.com/prometheus/prometheus/tsdb/labels"
18
17
"github.com/thanos-io/thanos/pkg/block/metadata"
@@ -243,7 +242,7 @@ func (i *Ingester) v2MetricsForLabelMatchers(ctx old_ctx.Context, req *client.Me
243
242
defer q .Close ()
244
243
245
244
// Run a query for each matchers set and collect all the results
246
- added := model. FingerprintSet {}
245
+ added := map [ string ] struct {} {}
247
246
result := & client.MetricsForLabelMatchersResponse {
248
247
Metric : make ([]* client.Metric , 0 ),
249
248
}
@@ -268,16 +267,16 @@ func (i *Ingester) v2MetricsForLabelMatchers(ctx old_ctx.Context, req *client.Me
268
267
// return the unique set of matching series, we do check if the series has
269
268
// already been added to the result
270
269
ls := seriesSet .At ().Labels ()
271
- fp := client . Fingerprint ( cortex_tsdb . FromLabelsToLegacyLabels ( ls ) )
272
- if _ , ok := added [fp ]; ok {
270
+ key := ls . String ( )
271
+ if _ , ok := added [key ]; ok {
273
272
continue
274
273
}
275
274
276
275
result .Metric = append (result .Metric , & client.Metric {
277
276
Labels : cortex_tsdb .FromLabelsToLabelAdapters (ls ),
278
277
})
279
278
280
- added [fp ] = struct {}{}
279
+ added [key ] = struct {}{}
281
280
}
282
281
283
282
// In case of any error while iterating the series, we break
0 commit comments