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

Errors showing up with metricbeats and mongodb 3.4 #2990

Closed
ctindel opened this issue Nov 13, 2016 · 1 comment
Closed

Errors showing up with metricbeats and mongodb 3.4 #2990

ctindel opened this issue Nov 13, 2016 · 1 comment
Assignees
Labels

Comments

@ctindel
Copy link
Contributor

ctindel commented Nov 13, 2016

I'm running with metricbeats 5.0 and mongodb 3.4 and seeing these errors in the metricbeat logs file. For example, if you're using the wiredtiger storage engine (which was added in mongodb 3.0 but became default in 3.2 then there is backgroundFlushing server statistic, that only exists with the mmapv1 storage engine).

I think these just need some love to update for newer mongodb metric and deal with conditional metrics that may not existed in various mongodb configs.

https://docs.mongodb.com/manual/reference/command/serverStatus/

2016-11-13T03:57:36Z ERR Error accessing sub-dictionary backgroundFlushing
2016-11-13T03:57:36Z ERR Error accessing sub-dictionary dur
2016-11-13T03:57:36Z ERR Error on field 'bytes': Key not found
2016-11-13T03:57:36Z ERR Error on field 'write_backs_queued': Key not found
2016-11-13T03:57:46Z ERR Error accessing sub-dictionary backgroundFlushing
2016-11-13T03:57:46Z ERR Error accessing sub-dictionary dur
2016-11-13T03:57:46Z ERR Error on field 'bytes': Key not found
2016-11-13T03:57:46Z ERR Error on field 'write_backs_queued': Key not found
2016-11-13T03:57:56Z ERR Error accessing sub-dictionary backgroundFlushing
2016-11-13T03:57:56Z ERR Error accessing sub-dictionary dur
2016-11-13T03:57:56Z ERR Error on field 'write_backs_queued': Key not found
2016-11-13T03:57:56Z ERR Error on field 'bytes': Key not found

@tsg tsg self-assigned this Nov 14, 2016
@Zhomart
Copy link

Zhomart commented Nov 14, 2016

Same with mongodb 3.2.9. As Rufin pointed out, it seems like quite a few of the statistics fields were removed or moved.

tsg pushed a commit to tsg/beats that referenced this issue Nov 14, 2016
Several fields are not reported when the storage engine is set to
wiredTiger, so marking them as optional. Fixes elastic#2990.
@ruflin ruflin closed this as completed in e9a506f Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants