Re: RocksDB Number of Keys Metric

2018-09-06 Thread Andrey Zagrebin
Hi, afaik, the option is not exposed according to the current state of source code. I can see it to be useful and technically possible using: db.getLongProperty(stateColumnFamilyHandle, "rocksdb.estimate-num-keys”); Though couple of things come into my mind to take into account for this feature:

Re: RocksDB Number of Keys Metric

2018-09-03 Thread vino yang
Hi Ahmed, If you feel that this metric is necessary, you can create an issue in JIRA, then the problem may be more easily seen by the relevant people. If you need to answer this question, maybe it is more effective to ping @Andrey? Thanks, vino. Ahmed 于2018年9月2日周日 上午2:31写道: > Is there a clean

RocksDB Number of Keys Metric

2018-09-01 Thread Ahmed
Is there a clean way of exposing a metrics regarding the number of keys (even if it is an estimate using 'rocksdb.estimate-num-keys') in a rocksdb state store? RocksDBValueState is not public to users code. Best, Ahmed