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

[mongo] add tcmalloc metrics #1979

Merged
merged 2 commits into from
Oct 29, 2015
Merged

[mongo] add tcmalloc metrics #1979

merged 2 commits into from
Oct 29, 2015

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Oct 16, 2015

Rebased of #1832 on master, thanks a lot @benmccann !

My two cents:
Split the metric list in multiple parts:

  • COMMON_METRICS: default metrics to collect
  • V2_ONLY_METRICS: metrics available in MongoDB 2.x only
  • TCMALLOC_METRICS: TCMalloc memory allocator metrics

It's easier to assess the check coverage in our CI, and gives more
control on the level of metric collection.

Create a collect_tcmalloc_metrics option (default to False).

@yannmh yannmh self-assigned this Oct 16, 2015
@yannmh yannmh added this to the 5.6.0 milestone Oct 16, 2015
yannmh pushed a commit that referenced this pull request Oct 16, 2015
[[email protected]] rebased on #1979 → `collect_wiredtiger_metrics`
option.
@yannmh yannmh force-pushed the yann/collect_tcmalloc branch from b0fc02d to 8863ba8 Compare October 16, 2015 11:59
yannmh pushed a commit that referenced this pull request Oct 16, 2015
[[email protected]] rebased on #1979 → `collect_wiredtiger_metrics`
option.
"uptime": GAUGE,
}

V2_ONLY_METRICS = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is the entire list of metrics available only in mongo 2.x. E.g. I don't think that Mongo 3.x will return "cursors.totalOpen" or "cursors.timedOut"

Copy link
Member Author

Choose a reason for hiding this comment

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

I just ran some tests against a MongoDB 2.6 and 3.0 instances, the V2_ONLY_METRICS seens exhaustive.
cursors.totalOpen or cursors.timedOut are still part of MongoDB 3.0 as stated in the MongoDB 3.0 documentation

Ben McCann and others added 2 commits October 29, 2015 17:44
[[email protected]] rebased to sync with MongoDB last changes
Split the metric list in multiple parts:
* `COMMON_METRICS`: default metrics to collect
* `V2_ONLY_METRICS`: metrics available in MongoDB 2.x only
* `TCMALLOC_METRICS`: TCMalloc memory allocator metrics

It's easier to assess the check coverage in our CI, and gives more
control on the level of metric collection.

Create a `collect_tcmalloc_metrics` option (default to False).

Extends #1832, thanks a lot @benmccann !
@yannmh yannmh force-pushed the yann/collect_tcmalloc branch from 8863ba8 to ba8760e Compare October 29, 2015 21:44
@yannmh
Copy link
Member Author

yannmh commented Oct 29, 2015

Thanks for your feedback @benmccann. I adressed your comments and rebased the PR.

It's ready to be merged now 🚢

yannmh added a commit that referenced this pull request Oct 29, 2015
@yannmh yannmh merged commit 5858f3f into master Oct 29, 2015
@yannmh yannmh deleted the yann/collect_tcmalloc branch October 29, 2015 22:05
yannmh pushed a commit that referenced this pull request Oct 29, 2015
[[email protected]] rebased on #1979 → `collect_wiredtiger_metrics`
option.
yannmh pushed a commit that referenced this pull request Oct 30, 2015
[[email protected]] rebased on #1979 → `collect_wiredtiger_metrics`
option.
yannmh pushed a commit that referenced this pull request Nov 2, 2015
[[email protected]] rebased on #1979 → `wiredtiger` option.
yannmh pushed a commit that referenced this pull request Dec 21, 2015
[[email protected]] rebased on #1979 → `wiredtiger` option.
yannmh pushed a commit that referenced this pull request Dec 21, 2015
[[email protected]] rebased on #1979
**Additional changes:**
* Add the corresponding `wiredtiger` option in `additional_metrics`
* More friendly WiredTiger metric aliases
* Switch some WiredTiger metric types from `gauge` to `rate`
yannmh pushed a commit that referenced this pull request Dec 22, 2015
[[email protected]] rebased on #1979
**Additional changes:**
* Add the corresponding `wiredtiger` option in `additional_metrics`
* More friendly WiredTiger metric aliases
* Switch some WiredTiger metric types from `gauge` to `rate`
yannmh pushed a commit that referenced this pull request Dec 22, 2015
[[email protected]] rebased on #1979
**Additional changes:**
* Add the corresponding `wiredtiger` option in `additional_metrics`
* More friendly WiredTiger metric aliases
* Switch some WiredTiger metric types from `gauge` to `rate`
yannmh pushed a commit that referenced this pull request Dec 22, 2015
[[email protected]] rebased on #1979
**Additional changes:**
* Add the corresponding `wiredtiger` option in `additional_metrics`
* More friendly WiredTiger metric aliases
* Switch some WiredTiger metric types from `gauge` to `rate`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants