Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some metrics #2323

Merged
merged 2 commits into from Sep 21, 2017
Merged

Add some metrics #2323

merged 2 commits into from Sep 21, 2017

Conversation

huachaohuang
Copy link
Contributor

No description provided.

STORE_ENGINE_NUM_SNAPSHOTS_GAUGE.set(n as f64);
}
if let Some(t) = engine.get_property_int(ROCKSDB_OLDEST_SNAPSHOT_TIME) {
let d = time::get_time().sec.checked_sub(t as i64).unwrap_or(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the time is second?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Contributor

@siddontang siddontang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

@iamxy
Copy link
Collaborator

iamxy commented Sep 20, 2017

/rebuild


pub const ENGINE_TICKER_TYPES: &'static [TickerType] = &[
TickerType::BlockCacheMiss,
TickerType::BlockCacheHit,
TickerType::BlockCacheAdd,
TickerType::BlockCacheAddFailures,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get the failure reason?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seem can't

@zhangjinpeng87
Copy link
Member

LGTM

@huachaohuang huachaohuang merged commit 032513c into master Sep 21, 2017
@huachaohuang huachaohuang deleted the huachao/statistics branch September 21, 2017 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants