-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Metricbeat MongoDB module improvements #2999
Conversation
Several fields are not reported when the storage engine is set to wiredTiger, so marking them as optional. Fixes elastic#2990.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -31,7 +31,7 @@ var schema = s.Schema{ | |||
"ms": c.Int("last_ms"), | |||
}, | |||
"last_finished": c.Time("last_finished"), | |||
}), | |||
}, c.DictOptional), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
I'm going to do the dashboards in a separate PR. |
07594bf
to
727e468
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -27,8 +27,8 @@ func TestFetch(t *testing.T) { | |||
available := event["connections"].(common.MapStr)["available"].(int64) | |||
assert.True(t, available > 0) | |||
|
|||
commits := event["journaling"].(common.MapStr)["commits"].(int64) | |||
assert.True(t, commits >= 0) | |||
page_faults := event["extra_info"].(common.MapStr)["page_faults"].(int64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable name is quite python-like ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed :)
* Favored a few actionable metrics. * Use mongo 3.4 in our integration tests
727e468
to
7e6452d
Compare
Planning the following TODOs: