@@ -13,7 +13,6 @@ import (
13
13
"github.com/cortexproject/cortex/pkg/util/validation"
14
14
"github.com/go-kit/kit/log/level"
15
15
"github.com/prometheus/client_golang/prometheus"
16
- "github.com/prometheus/common/model"
17
16
"github.com/prometheus/prometheus/tsdb"
18
17
lbls "github.com/prometheus/prometheus/tsdb/labels"
19
18
"github.com/thanos-io/thanos/pkg/block/metadata"
@@ -275,7 +274,7 @@ func (i *Ingester) v2MetricsForLabelMatchers(ctx old_ctx.Context, req *client.Me
275
274
defer q .Close ()
276
275
277
276
// Run a query for each matchers set and collect all the results
278
- added := model. FingerprintSet {}
277
+ added := map [ string ] struct {} {}
279
278
result := & client.MetricsForLabelMatchersResponse {
280
279
Metric : make ([]* client.Metric , 0 ),
281
280
}
@@ -300,16 +299,16 @@ func (i *Ingester) v2MetricsForLabelMatchers(ctx old_ctx.Context, req *client.Me
300
299
// return the unique set of matching series, we do check if the series has
301
300
// already been added to the result
302
301
ls := seriesSet .At ().Labels ()
303
- fp := client . Fingerprint ( cortex_tsdb . FromLabelsToLegacyLabels ( ls ) )
304
- if _ , ok := added [fp ]; ok {
302
+ key := ls . String ( )
303
+ if _ , ok := added [key ]; ok {
305
304
continue
306
305
}
307
306
308
307
result .Metric = append (result .Metric , & client.Metric {
309
308
Labels : cortex_tsdb .FromLabelsToLabelAdapters (ls ),
310
309
})
311
310
312
- added [fp ] = struct {}{}
311
+ added [key ] = struct {}{}
313
312
}
314
313
315
314
// In case of any error while iterating the series, we break
0 commit comments