Add MmapStats when using rocksdb storage engine (#3930)
This commit is contained in:
parent
2fe2622327
commit
4218eb7367
|
@ -135,7 +135,7 @@ func (d *MongodbData) AddDefaultStats() {
|
||||||
}
|
}
|
||||||
d.addStat(statLine, DefaultClusterStats)
|
d.addStat(statLine, DefaultClusterStats)
|
||||||
d.addStat(statLine, DefaultShardStats)
|
d.addStat(statLine, DefaultShardStats)
|
||||||
if d.StatLine.StorageEngine == "mmapv1" {
|
if d.StatLine.StorageEngine == "mmapv1" || d.StatLine.StorageEngine == "rocksdb" {
|
||||||
d.addStat(statLine, MmapStats)
|
d.addStat(statLine, MmapStats)
|
||||||
} else if d.StatLine.StorageEngine == "wiredTiger" {
|
} else if d.StatLine.StorageEngine == "wiredTiger" {
|
||||||
for key, value := range WiredTigerStats {
|
for key, value := range WiredTigerStats {
|
||||||
|
|
Loading…
Reference in New Issue