Skip to content

Commit edb12a5

Browse files
committed
MB-70370: Expose {Key,Seq}IndexReadTime and ReadIOAmp Histograms
This patch exposes these newly added histograms to prometheus. Change-Id: I9392d11d488c8d29f2324421a9cf8f5ce82861d7 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/239398 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Jim Walker <jim@couchbase.com>
1 parent 07070c1 commit edb12a5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

engines/ep/src/kvstore/magma-kvstore/magma-kvstore.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4002,6 +4002,18 @@ void MagmaKVStore::addTimingStats(const AddStatFn& add_stat,
40024002
histoStats.FlushTimeHisto,
40034003
add_stat,
40044004
c);
4005+
add_prefixed_stat(prefix,
4006+
"keyIndexReadTime",
4007+
histoStats.KeyStats.ReadTimeHisto,
4008+
add_stat,
4009+
c);
4010+
add_prefixed_stat(prefix,
4011+
"seqIndexReadTime",
4012+
histoStats.SeqStats.ReadTimeHisto,
4013+
add_stat,
4014+
c);
4015+
add_prefixed_stat(
4016+
prefix, "readIOAmp", histoStats.ReadIOAmpHisto, add_stat, c);
40054017
add_prefixed_stat(
40064018
prefix, "getStatsTime", histoStats.GetStatsTimeHisto, add_stat, c);
40074019
add_prefixed_stat(prefix,

0 commit comments

Comments
 (0)