-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbloom_filter_metrics.go
47 lines (40 loc) · 1.12 KB
/
bloom_filter_metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package multi_tier_caching
import "github.com/prometheus/client_golang/prometheus"
var (
bloomCapacityGauge = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "bloom_filter_capacity",
Help: "Current capacity of the Bloom filter",
},
)
bloomCountGauge = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "bloom_filter_element_count",
Help: "Approximate number of elements in the Bloom filter",
},
)
bloomHashFunctionsGauge = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "bloom_filter_hash_functions",
Help: "Number of hash functions used in the Bloom filter",
},
)
bloomFalsePositiveGauge = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "bloom_filter_false_positive_rate",
Help: "Estimated false positive rate of the Bloom filter",
},
)
bloomLoadFactorGauge = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "bloom_filter_load_factor",
Help: "Current load factor of the Bloom filter",
},
)
bloomLastAdjustmentGauge = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "bloom_filter_last_adjustment_timestamp",
Help: "Timestamp of last Bloom filter adjustment",
},
)
)