@@ -9,11 +9,10 @@ import (
9
9
10
10
type Metrics struct {
11
11
// writes
12
- bloomsTotal * prometheus.CounterVec // number of blooms created
13
- sbfCreationTime * prometheus.CounterVec // time spent creating sbfs
14
- bloomSize prometheus.Histogram // size of the bloom filter in bytes
15
- hammingWeightRatio prometheus.Histogram // ratio of the hamming weight of the bloom filter to the number of bits in the bloom filter
16
- estimatedCount prometheus.Histogram // estimated number of elements in the bloom filter
12
+ bloomsTotal prometheus.Counter // number of blooms created
13
+ bloomSize prometheus.Histogram // size of the bloom filter in bytes
14
+ hammingWeightRatio prometheus.Histogram // ratio of the hamming weight of the bloom filter to the number of bits in the bloom filter
15
+ estimatedCount prometheus.Histogram // estimated number of elements in the bloom filter
17
16
chunksIndexed * prometheus.CounterVec
18
17
chunksPerSeries prometheus.Histogram
19
18
blockSeriesIterated prometheus.Counter
@@ -51,9 +50,6 @@ const (
51
50
skipReasonErr = "err"
52
51
skipReasonOOB = "out_of_bounds"
53
52
54
- bloomCreationTypeIndexed = "indexed"
55
- bloomCreationTypeSkipped = "skipped"
56
-
57
53
recorderRequested = "requested"
58
54
recorderFound = "found"
59
55
recorderSkipped = "skipped"
@@ -63,16 +59,11 @@ const (
63
59
64
60
func NewMetrics (r prometheus.Registerer ) * Metrics {
65
61
return & Metrics {
66
- bloomsTotal : promauto .With (r ).NewCounterVec (prometheus.CounterOpts {
62
+ bloomsTotal : promauto .With (r ).NewCounter (prometheus.CounterOpts {
67
63
Namespace : constants .Loki ,
68
64
Name : "blooms_created_total" ,
69
65
Help : "Number of blooms created" ,
70
- }, []string {"type" }),
71
- sbfCreationTime : promauto .With (r ).NewCounterVec (prometheus.CounterOpts {
72
- Namespace : constants .Loki ,
73
- Name : "bloom_creation_time_total" ,
74
- Help : "Time spent creating scalable bloom filters" ,
75
- }, []string {"type" }),
66
+ }),
76
67
bloomSize : promauto .With (r ).NewHistogram (prometheus.HistogramOpts {
77
68
Namespace : constants .Loki ,
78
69
Name : "bloom_size" ,
0 commit comments