Skip to content

Commit

Permalink
Add help for metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Sep 15, 2023
1 parent b162606 commit e24d16f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/kava/opendb/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,19 +360,19 @@ func registerMetrics() {
Namespace: "rocksdb",
Subsystem: "filter",
Name: "bloom_filter_useful",
Help: "",
Help: "number of times bloom filter has avoided file reads, i.e., negatives.",
}, labels),
BloomFilterFullPositive: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{
Namespace: "rocksdb",
Subsystem: "filter",
Name: "bloom_filter_full_positive",
Help: "",
Help: "number of times bloom FullFilter has not avoided the reads.",
}, labels),
BloomFilterFullTruePositive: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{
Namespace: "rocksdb",
Subsystem: "filter",
Name: "bloom_filter_full_true_positive",
Help: "",
Help: "number of times bloom FullFilter has not avoided the reads and data actually exist.",
}, labels),

// LSM Tree Stats
Expand Down Expand Up @@ -405,19 +405,19 @@ func registerMetrics() {
Namespace: "rocksdb",
Subsystem: "lsm",
Name: "get_hit_l0",
Help: "",
Help: "number of Get() queries served by L0",
}, labels),
GetHitL1: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{
Namespace: "rocksdb",
Subsystem: "lsm",
Name: "get_hit_l1",
Help: "",
Help: "number of Get() queries served by L1",
}, labels),
GetHitL2AndUp: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{
Namespace: "rocksdb",
Subsystem: "lsm",
Name: "get_hit_l2_and_up",
Help: "",
Help: "number of Get() queries served by L2 and up",
}, labels),
}
}
Expand Down

0 comments on commit e24d16f

Please sign in to comment.